bcm6368.dtsi 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /dts-v1/;
  3. #include <dt-bindings/clock/bcm6368-clock.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. #include <dt-bindings/interrupt-controller/bcm6368-interrupt-controller.h>
  7. #include <dt-bindings/interrupt-controller/irq.h>
  8. #include <dt-bindings/leds/common.h>
  9. #include <dt-bindings/reset/bcm6368-reset.h>
  10. / {
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. compatible = "brcm,bcm6368";
  14. aliases {
  15. nflash = &nflash;
  16. pflash = &pflash;
  17. pinctrl = &pinctrl;
  18. serial0 = &uart0;
  19. serial1 = &uart1;
  20. spi0 = &lsspi;
  21. };
  22. chosen {
  23. bootargs = "earlycon";
  24. stdout-path = "serial0:115200n8";
  25. };
  26. clocks {
  27. periph_osc: periph-osc {
  28. compatible = "fixed-clock";
  29. #clock-cells = <0>;
  30. clock-frequency = <50000000>;
  31. clock-output-names = "periph";
  32. };
  33. };
  34. cpus {
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. brcm,bmips-cbr-reg = <0xff400000>;
  38. mips-hpt-frequency = <200000000>;
  39. cpu@0 {
  40. compatible = "brcm,bmips4350", "mips,mips4Kc";
  41. device_type = "cpu";
  42. reg = <0>;
  43. };
  44. cpu@1 {
  45. compatible = "brcm,bmips4350", "mips,mips4Kc";
  46. device_type = "cpu";
  47. reg = <1>;
  48. };
  49. };
  50. cpu_intc: interrupt-controller {
  51. #address-cells = <0>;
  52. compatible = "mti,cpu-interrupt-controller";
  53. interrupt-controller;
  54. #interrupt-cells = <1>;
  55. };
  56. memory@0 {
  57. device_type = "memory";
  58. reg = <0 0>;
  59. };
  60. ubus {
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. compatible = "simple-bus";
  64. ranges;
  65. periph_clk: clock-controller@10000004 {
  66. compatible = "brcm,bcm6368-clocks";
  67. reg = <0x10000004 0x4>;
  68. #clock-cells = <1>;
  69. };
  70. pll_cntl: syscon@10000008 {
  71. compatible = "syscon", "simple-mfd";
  72. reg = <0x10000008 0x4>;
  73. native-endian;
  74. syscon-reboot {
  75. compatible = "syscon-reboot";
  76. offset = <0x0>;
  77. mask = <0x1>;
  78. };
  79. };
  80. periph_rst: reset-controller@10000010 {
  81. compatible = "brcm,bcm6345-reset";
  82. reg = <0x10000010 0x4>;
  83. #reset-cells = <1>;
  84. };
  85. ext_intc0: interrupt-controller@10000018 {
  86. #address-cells = <1>;
  87. compatible = "brcm,bcm6345-ext-intc";
  88. reg = <0x10000018 0x4>;
  89. interrupt-controller;
  90. #interrupt-cells = <2>;
  91. interrupt-parent = <&periph_intc>;
  92. interrupts = <BCM6368_IRQ_EXT0>,
  93. <BCM6368_IRQ_EXT1>,
  94. <BCM6368_IRQ_EXT2>,
  95. <BCM6368_IRQ_EXT3>;
  96. };
  97. ext_intc1: interrupt-controller@1000001c {
  98. #address-cells = <1>;
  99. compatible = "brcm,bcm6345-ext-intc";
  100. reg = <0x1000001c 0x4>;
  101. interrupt-controller;
  102. #interrupt-cells = <2>;
  103. interrupt-parent = <&periph_intc>;
  104. interrupts = <BCM6368_IRQ_EXT4>,
  105. <BCM6368_IRQ_EXT5>;
  106. };
  107. periph_intc: interrupt-controller@10000020 {
  108. #address-cells = <1>;
  109. compatible = "brcm,bcm6345-l1-intc";
  110. reg = <0x10000020 0x10>,
  111. <0x10000030 0x10>;
  112. interrupt-controller;
  113. #interrupt-cells = <1>;
  114. interrupt-parent = <&cpu_intc>;
  115. interrupts = <2>, <3>;
  116. };
  117. wdt: watchdog@1000005c {
  118. compatible = "brcm,bcm7038-wdt";
  119. reg = <0x1000005c 0xc>;
  120. clocks = <&periph_osc>;
  121. timeout-sec = <30>;
  122. };
  123. gpio_cntl: syscon@10000080 {
  124. #address-cells = <1>;
  125. #size-cells = <1>;
  126. compatible = "brcm,bcm6368-gpio-sysctl",
  127. "syscon", "simple-mfd";
  128. reg = <0x10000080 0x80>;
  129. ranges = <0 0x10000080 0x80>;
  130. native-endian;
  131. gpio: gpio@0 {
  132. compatible = "brcm,bcm6368-gpio";
  133. reg-names = "dirout", "dat";
  134. reg = <0x0 0x8>, <0x8 0x8>;
  135. gpio-controller;
  136. gpio-ranges = <&pinctrl 0 0 38>;
  137. #gpio-cells = <2>;
  138. };
  139. pinctrl: pinctrl@18 {
  140. compatible = "brcm,bcm6368-pinctrl";
  141. reg = <0x18 0x4>, <0x38 0x4>;
  142. pinctrl_analog_afe_0: analog_afe_0-pins {
  143. function = "analog_afe_0";
  144. pins = "gpio0";
  145. };
  146. pinctrl_analog_afe_1: analog_afe_1-pins {
  147. function = "analog_afe_1";
  148. pins = "gpio1";
  149. };
  150. pinctrl_sys_irq: sys_irq-pins {
  151. function = "sys_irq";
  152. pins = "gpio2";
  153. };
  154. pinctrl_serial_led: serial_led-pins {
  155. pinctrl_serial_led_data: serial_led_data-pins {
  156. function = "serial_led_data";
  157. pins = "gpio3";
  158. };
  159. pinctrl_serial_led_clk: serial_led_clk-pins {
  160. function = "serial_led_clk";
  161. pins = "gpio4";
  162. };
  163. };
  164. pinctrl_inet_led: inet_led-pins {
  165. function = "inet_led";
  166. pins = "gpio5";
  167. };
  168. pinctrl_ephy0_led: ephy0_led-pins {
  169. function = "ephy0_led";
  170. pins = "gpio6";
  171. };
  172. pinctrl_ephy1_led: ephy1_led-pins {
  173. function = "ephy1_led";
  174. pins = "gpio7";
  175. };
  176. pinctrl_ephy2_led: ephy2_led-pins {
  177. function = "ephy2_led";
  178. pins = "gpio8";
  179. };
  180. pinctrl_ephy3_led: ephy3_led-pins {
  181. function = "ephy3_led";
  182. pins = "gpio9";
  183. };
  184. pinctrl_robosw_led_data: robosw_led_data-pins {
  185. function = "robosw_led_data";
  186. pins = "gpio10";
  187. };
  188. pinctrl_robosw_led_clk: robosw_led_clk-pins {
  189. function = "robosw_led_clk";
  190. pins = "gpio11";
  191. };
  192. pinctrl_robosw_led0: robosw_led0-pins {
  193. function = "robosw_led0";
  194. pins = "gpio12";
  195. };
  196. pinctrl_robosw_led1: robosw_led1-pins {
  197. function = "robosw_led1";
  198. pins = "gpio13";
  199. };
  200. pinctrl_usb_device_led: usb_device_led-pins {
  201. function = "usb_device_led";
  202. pins = "gpio14";
  203. };
  204. pinctrl_pci: pci-pins {
  205. pinctrl_pci_req1: pci_req1-pins {
  206. function = "pci_req1";
  207. pins = "gpio16";
  208. };
  209. pinctrl_pci_gnt1: pci_gnt1-pins {
  210. function = "pci_gnt1";
  211. pins = "gpio17";
  212. };
  213. pinctrl_pci_intb: pci_intb-pins {
  214. function = "pci_intb";
  215. pins = "gpio18";
  216. };
  217. pinctrl_pci_req0: pci_req0-pins {
  218. function = "pci_req0";
  219. pins = "gpio19";
  220. };
  221. pinctrl_pci_gnt0: pci_gnt0-pins {
  222. function = "pci_gnt0";
  223. pins = "gpio20";
  224. };
  225. };
  226. pinctrl_pcmcia: pcmcia-pins {
  227. pinctrl_pcmcia_cd1: pcmcia_cd1-pins {
  228. function = "pcmcia_cd1";
  229. pins = "gpio22";
  230. };
  231. pinctrl_pcmcia_cd2: pcmcia_cd2-pins {
  232. function = "pcmcia_cd2";
  233. pins = "gpio23";
  234. };
  235. pinctrl_pcmcia_vs1: pcmcia_vs1-pins {
  236. function = "pcmcia_vs1";
  237. pins = "gpio24";
  238. };
  239. pinctrl_pcmcia_vs2: pcmcia_vs2-pins {
  240. function = "pcmcia_vs2";
  241. pins = "gpio25";
  242. };
  243. };
  244. pinctrl_ebi_cs2: ebi_cs2-pins {
  245. function = "ebi_cs2";
  246. pins = "gpio26";
  247. };
  248. pinctrl_ebi_cs3: ebi_cs3-pins {
  249. function = "ebi_cs3";
  250. pins = "gpio27";
  251. };
  252. pinctrl_spi_cs2: spi_cs2-pins {
  253. function = "spi_cs2";
  254. pins = "gpio28";
  255. };
  256. pinctrl_spi_cs3: spi_cs3-pins {
  257. function = "spi_cs3";
  258. pins = "gpio29";
  259. };
  260. pinctrl_spi_cs4: spi_cs4-pins {
  261. function = "spi_cs4";
  262. pins = "gpio30";
  263. };
  264. pinctrl_spi_cs5: spi_cs5-pins {
  265. function = "spi_cs5";
  266. pins = "gpio31";
  267. };
  268. pinctrl_uart1: uart1-pins {
  269. function = "uart1";
  270. pins = "uart1_grp";
  271. };
  272. };
  273. ephy_rst: reset-controller@3c {
  274. compatible = "brcm,bcm6345-reset";
  275. reg = <0x3c 0x4>;
  276. #reset-cells = <1>;
  277. };
  278. };
  279. leds: led-controller@100000d0 {
  280. #address-cells = <1>;
  281. #size-cells = <0>;
  282. compatible = "brcm,bcm6358-leds";
  283. reg = <0x100000d0 0x8>;
  284. status = "disabled";
  285. };
  286. uart0: serial@10000100 {
  287. compatible = "brcm,bcm6345-uart";
  288. reg = <0x10000100 0x18>;
  289. interrupt-parent = <&periph_intc>;
  290. interrupts = <BCM6368_IRQ_UART0>;
  291. clocks = <&periph_osc>;
  292. clock-names = "periph";
  293. status = "disabled";
  294. };
  295. uart1: serial@10000120 {
  296. compatible = "brcm,bcm6345-uart";
  297. reg = <0x10000120 0x18>;
  298. interrupt-parent = <&periph_intc>;
  299. interrupts = <BCM6368_IRQ_UART1>;
  300. clocks = <&periph_osc>;
  301. clock-names = "periph";
  302. status = "disabled";
  303. };
  304. nflash: nand@10000200 {
  305. #address-cells = <1>;
  306. #size-cells = <0>;
  307. compatible = "brcm,nand-bcm6368",
  308. "brcm,brcmnand-v2.1",
  309. "brcm,brcmnand";
  310. reg = <0x10000200 0x180>,
  311. <0x10000600 0x200>,
  312. <0x10000070 0x10>;
  313. reg-names = "nand",
  314. "nand-cache",
  315. "nand-int-base";
  316. interrupt-parent = <&periph_intc>;
  317. interrupts = <BCM6368_IRQ_NAND>;
  318. clocks = <&periph_clk BCM6368_CLK_NAND>;
  319. clock-names = "nand";
  320. status = "disabled";
  321. };
  322. lsspi: spi@10000800 {
  323. #address-cells = <1>;
  324. #size-cells = <0>;
  325. compatible = "brcm,bcm6358-spi";
  326. reg = <0x10000800 0x70c>;
  327. interrupt-parent = <&periph_intc>;
  328. interrupts = <BCM6368_IRQ_SPI>;
  329. clocks = <&periph_clk BCM6368_CLK_SPI>;
  330. clock-names = "spi";
  331. resets = <&periph_rst BCM6368_RST_SPI>;
  332. status = "disabled";
  333. };
  334. pci: pci@10001000 {
  335. compatible = "brcm,bcm6348-pci";
  336. reg = <0x10001000 0x200>;
  337. #address-cells = <3>;
  338. #size-cells = <2>;
  339. device_type = "pci";
  340. bus-range = <0x00 0x01>;
  341. ranges = <0x2000000 0 0x30000000 0x30000000 0 0x8000000>,
  342. <0x1000000 0 0x08000000 0x08000000 0 0x0010000>;
  343. linux,pci-probe-only = <1>;
  344. interrupt-parent = <&periph_intc>;
  345. interrupts = <BCM6368_IRQ_MPI>;
  346. resets = <&periph_rst BCM6368_RST_MPI>;
  347. reset-names = "pci";
  348. pinctrl-names = "default";
  349. pinctrl-0 = <&pinctrl_pci>;
  350. brcm,remap;
  351. status = "disabled";
  352. };
  353. ehci: usb@10001500 {
  354. compatible = "brcm,bcm6368-ehci", "generic-ehci";
  355. reg = <0x10001500 0x100>;
  356. big-endian;
  357. spurious-oc;
  358. interrupt-parent = <&periph_intc>;
  359. interrupts = <BCM6368_IRQ_EHCI>;
  360. phys = <&usbh 0>;
  361. phy-names = "usb";
  362. status = "disabled";
  363. };
  364. ohci: usb@10001600 {
  365. compatible = "brcm,bcm6368-ohci", "generic-ohci";
  366. reg = <0x10001600 0x100>;
  367. big-endian;
  368. no-big-frame-no;
  369. interrupt-parent = <&periph_intc>;
  370. interrupts = <BCM6368_IRQ_OHCI>;
  371. phys = <&usbh 0>;
  372. phy-names = "usb";
  373. status = "disabled";
  374. };
  375. usbh: usb-phy@10001700 {
  376. compatible = "brcm,bcm6368-usbh-phy";
  377. reg = <0x10001700 0x38>;
  378. #phy-cells = <1>;
  379. clocks = <&periph_clk BCM6368_CLK_USBH>;
  380. clock-names = "usbh";
  381. resets = <&periph_rst BCM6368_RST_USBH>;
  382. status = "disabled";
  383. };
  384. random: rng@10004180 {
  385. compatible = "brcm,bcm6368-rng";
  386. reg = <0x10004180 0x14>;
  387. clocks = <&periph_clk BCM6368_CLK_IPSEC>;
  388. clock-names = "ipsec";
  389. resets = <&periph_rst BCM6368_RST_IPSEC>;
  390. };
  391. ethernet: ethernet@10006800 {
  392. compatible = "brcm,bcm6368-enetsw";
  393. reg = <0x10006800 0x80>,
  394. <0x10006a00 0x80>,
  395. <0x10006c00 0x80>;
  396. reg-names = "dma",
  397. "dma-channels",
  398. "dma-sram";
  399. interrupt-parent = <&periph_intc>;
  400. interrupts = <BCM6368_IRQ_ENETSW_RX_DMA0>,
  401. <BCM6368_IRQ_ENETSW_TX_DMA0>;
  402. interrupt-names = "rx",
  403. "tx";
  404. clocks = <&periph_clk BCM6368_CLK_SWPKT_USB>,
  405. <&periph_clk BCM6368_CLK_SWPKT_SAR>,
  406. <&periph_clk BCM6368_CLK_ROBOSW>;
  407. resets = <&periph_rst BCM6368_RST_SWITCH>,
  408. <&periph_rst BCM6368_RST_EPHY>;
  409. dma-rx = <0>;
  410. dma-tx = <1>;
  411. status = "disabled";
  412. };
  413. switch0: switch@10f00000 {
  414. #address-cells = <1>;
  415. #size-cells = <0>;
  416. compatible = "brcm,bcm6368-switch";
  417. reg = <0x10f00000 0x8000>;
  418. big-endian;
  419. brcm,gpio-ctrl = <&gpio_cntl>;
  420. ports {
  421. #address-cells = <1>;
  422. #size-cells = <0>;
  423. port@8 {
  424. reg = <8>;
  425. phy-mode = "internal";
  426. ethernet = <&ethernet>;
  427. fixed-link {
  428. speed = <1000>;
  429. full-duplex;
  430. };
  431. };
  432. };
  433. };
  434. mdio: mdio@10f000b0 {
  435. #address-cells = <1>;
  436. #size-cells = <0>;
  437. compatible = "brcm,bcm6368-mdio-mux";
  438. reg = <0x10f000b0 0x8>;
  439. mdio_int: mdio@0 {
  440. #address-cells = <1>;
  441. #size-cells = <0>;
  442. reg = <0>;
  443. phy1: ethernet-phy@1 {
  444. compatible = "ethernet-phy-ieee802.3-c22";
  445. reg = <1>;
  446. resets = <&ephy_rst 6>;
  447. reset-names = "phy";
  448. reset-assert-us = <2000>;
  449. reset-deassert-us = <2000>;
  450. };
  451. phy2: ethernet-phy@2 {
  452. compatible = "ethernet-phy-ieee802.3-c22";
  453. reg = <2>;
  454. resets = <&ephy_rst 7>;
  455. reset-names = "phy";
  456. reset-assert-us = <2000>;
  457. reset-deassert-us = <2000>;
  458. };
  459. phy3: ethernet-phy@3 {
  460. compatible = "ethernet-phy-ieee802.3-c22";
  461. reg = <3>;
  462. resets = <&ephy_rst 8>;
  463. reset-names = "phy";
  464. reset-assert-us = <2000>;
  465. reset-deassert-us = <2000>;
  466. };
  467. phy4: ethernet-phy@4 {
  468. compatible = "ethernet-phy-ieee802.3-c22";
  469. reg = <4>;
  470. resets = <&ephy_rst 9>;
  471. reset-names = "phy";
  472. reset-assert-us = <2000>;
  473. reset-deassert-us = <2000>;
  474. };
  475. };
  476. mdio_ext: mdio@1 {
  477. #address-cells = <1>;
  478. #size-cells = <0>;
  479. reg = <1>;
  480. };
  481. };
  482. };
  483. pflash: nor@18000000 {
  484. #address-cells = <1>;
  485. #size-cells = <1>;
  486. compatible = "cfi-flash";
  487. reg = <0x18000000 0x2000000>;
  488. bank-width = <2>;
  489. status = "disabled";
  490. };
  491. };