bcm6362.dtsi 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /dts-v1/;
  3. #include <dt-bindings/clock/bcm6362-clock.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. #include <dt-bindings/interrupt-controller/bcm6362-interrupt-controller.h>
  7. #include <dt-bindings/interrupt-controller/irq.h>
  8. #include <dt-bindings/leds/common.h>
  9. #include <dt-bindings/reset/bcm6362-reset.h>
  10. #include <dt-bindings/soc/bcm6362-pm.h>
  11. / {
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. compatible = "brcm,bcm6362";
  15. aliases {
  16. nflash = &nflash;
  17. pinctrl = &pinctrl;
  18. serial0 = &uart0;
  19. serial1 = &uart1;
  20. spi0 = &lsspi;
  21. spi1 = &hsspi;
  22. };
  23. chosen {
  24. bootargs = "earlycon";
  25. stdout-path = "serial0:115200n8";
  26. };
  27. clocks {
  28. periph_osc: periph-osc {
  29. compatible = "fixed-clock";
  30. #clock-cells = <0>;
  31. clock-frequency = <50000000>;
  32. clock-output-names = "periph";
  33. };
  34. hsspi_osc: hsspi-osc {
  35. compatible = "fixed-clock";
  36. #clock-cells = <0>;
  37. clock-frequency = <400000000>;
  38. clock-output-names = "hsspi_osc";
  39. };
  40. };
  41. cpus {
  42. #address-cells = <1>;
  43. #size-cells = <0>;
  44. mips-hpt-frequency = <200000000>;
  45. cpu@0 {
  46. compatible = "brcm,bmips4350", "mips,mips4Kc";
  47. device_type = "cpu";
  48. reg = <0>;
  49. };
  50. cpu@1 {
  51. compatible = "brcm,bmips4350", "mips,mips4Kc";
  52. device_type = "cpu";
  53. reg = <1>;
  54. };
  55. };
  56. cpu_intc: interrupt-controller {
  57. #address-cells = <0>;
  58. compatible = "mti,cpu-interrupt-controller";
  59. interrupt-controller;
  60. #interrupt-cells = <1>;
  61. };
  62. memory@0 {
  63. device_type = "memory";
  64. reg = <0 0>;
  65. };
  66. ubus {
  67. #address-cells = <1>;
  68. #size-cells = <1>;
  69. compatible = "simple-bus";
  70. ranges;
  71. periph_clk: clock-controller@10000004 {
  72. compatible = "brcm,bcm6362-clocks";
  73. reg = <0x10000004 0x4>;
  74. #clock-cells = <1>;
  75. };
  76. pll_cntl: syscon@10000008 {
  77. compatible = "syscon", "simple-mfd";
  78. reg = <0x10000008 0x4>;
  79. native-endian;
  80. syscon-reboot {
  81. compatible = "syscon-reboot";
  82. offset = <0x0>;
  83. mask = <0x1>;
  84. };
  85. };
  86. periph_rst: reset-controller@10000010 {
  87. compatible = "brcm,bcm6345-reset";
  88. reg = <0x10000010 0x4>;
  89. #reset-cells = <1>;
  90. };
  91. ext_intc: interrupt-controller@10000018 {
  92. #address-cells = <1>;
  93. compatible = "brcm,bcm6345-ext-intc";
  94. reg = <0x10000018 0x4>;
  95. interrupt-controller;
  96. #interrupt-cells = <2>;
  97. interrupt-parent = <&periph_intc>;
  98. interrupts = <BCM6362_IRQ_EXT0>,
  99. <BCM6362_IRQ_EXT1>,
  100. <BCM6362_IRQ_EXT2>,
  101. <BCM6362_IRQ_EXT3>;
  102. };
  103. periph_intc: interrupt-controller@10000020 {
  104. #address-cells = <1>;
  105. compatible = "brcm,bcm6345-l1-intc";
  106. reg = <0x10000020 0x10>,
  107. <0x10000030 0x10>;
  108. interrupt-controller;
  109. #interrupt-cells = <1>;
  110. interrupt-parent = <&cpu_intc>;
  111. interrupts = <2>, <3>;
  112. };
  113. wdt: watchdog@1000005c {
  114. compatible = "brcm,bcm7038-wdt";
  115. reg = <0x1000005c 0xc>;
  116. clocks = <&periph_osc>;
  117. timeout-sec = <30>;
  118. };
  119. gpio_cntl: syscon@10000080 {
  120. #address-cells = <1>;
  121. #size-cells = <1>;
  122. compatible = "brcm,bcm6362-gpio-sysctl",
  123. "syscon", "simple-mfd";
  124. reg = <0x10000080 0x80>;
  125. ranges = <0 0x10000080 0x80>;
  126. native-endian;
  127. gpio: gpio@0 {
  128. compatible = "brcm,bcm6362-gpio";
  129. reg-names = "dirout", "dat";
  130. reg = <0x0 0x8>, <0x8 0x8>;
  131. gpio-controller;
  132. gpio-ranges = <&pinctrl 0 0 48>;
  133. #gpio-cells = <2>;
  134. };
  135. pinctrl: pinctrl@18 {
  136. compatible = "brcm,bcm6362-pinctrl";
  137. reg = <0x18 0x10>, <0x38 0x4>;
  138. pinctrl_usb_device_led: usb_device_led-pins {
  139. function = "usb_device_led";
  140. pins = "gpio0";
  141. };
  142. pinctrl_sys_irq: sys_irq-pins {
  143. function = "sys_irq";
  144. pins = "gpio1";
  145. };
  146. pinctrl_serial_led: serial_led-pins {
  147. pinctrl_serial_led_clk: serial_led_clk-pins {
  148. function = "serial_led_clk";
  149. pins = "gpio2";
  150. };
  151. pinctrl_serial_led_data: serial_led_data-pins {
  152. function = "serial_led_data";
  153. pins = "gpio3";
  154. };
  155. };
  156. pinctrl_robosw_led_data: robosw_led_data-pins {
  157. function = "robosw_led_data";
  158. pins = "gpio4";
  159. };
  160. pinctrl_robosw_led_clk: robosw_led_clk-pins {
  161. function = "robosw_led_clk";
  162. pins = "gpio5";
  163. };
  164. pinctrl_robosw_led0: robosw_led0-pins {
  165. function = "robosw_led0";
  166. pins = "gpio6";
  167. };
  168. pinctrl_robosw_led1: robosw_led1-pins {
  169. function = "robosw_led1";
  170. pins = "gpio7";
  171. };
  172. pinctrl_inet_led: inet_led-pins {
  173. function = "inet_led";
  174. pins = "gpio8";
  175. };
  176. pinctrl_spi_cs2: spi_cs2-pins {
  177. function = "spi_cs2";
  178. pins = "gpio9";
  179. };
  180. pinctrl_spi_cs3: spi_cs3-pins {
  181. function = "spi_cs3";
  182. pins = "gpio10";
  183. };
  184. pinctrl_ntr_pulse: ntr_pulse-pins {
  185. function = "ntr_pulse";
  186. pins = "gpio11";
  187. };
  188. pinctrl_uart1_scts: uart1_scts-pins {
  189. function = "uart1_scts";
  190. pins = "gpio12";
  191. };
  192. pinctrl_uart1_srts: uart1_srts-pins {
  193. function = "uart1_srts";
  194. pins = "gpio13";
  195. };
  196. pinctrl_uart1: uart1-pins {
  197. pinctrl_uart1_sdin: uart1_sdin-pins {
  198. function = "uart1_sdin";
  199. pins = "gpio14";
  200. };
  201. pinctrl_uart1_sdout: uart1_sdout-pins {
  202. function = "uart1_sdout";
  203. pins = "gpio15";
  204. };
  205. };
  206. pinctrl_adsl_spi: adsl_spi-pins {
  207. pinctrl_adsl_spi_miso: adsl_spi_miso-pins {
  208. function = "adsl_spi_miso";
  209. pins = "gpio16";
  210. };
  211. pinctrl_adsl_spi_mosi: adsl_spi_mosi-pins {
  212. function = "adsl_spi_mosi";
  213. pins = "gpio17";
  214. };
  215. pinctrl_adsl_spi_clk: adsl_spi_clk-pins {
  216. function = "adsl_spi_clk";
  217. pins = "gpio18";
  218. };
  219. pinctrl_adsl_spi_cs: adsl_spi_cs-pins {
  220. function = "adsl_spi_cs";
  221. pins = "gpio19";
  222. };
  223. };
  224. pinctrl_ephy0_led: ephy0_led-pins {
  225. function = "ephy0_led";
  226. pins = "gpio20";
  227. };
  228. pinctrl_ephy1_led: ephy1_led-pins {
  229. function = "ephy1_led";
  230. pins = "gpio21";
  231. };
  232. pinctrl_ephy2_led: ephy2_led-pins {
  233. function = "ephy2_led";
  234. pins = "gpio22";
  235. };
  236. pinctrl_ephy3_led: ephy3_led-pins {
  237. function = "ephy3_led";
  238. pins = "gpio23";
  239. };
  240. pinctrl_ext_irq0: ext_irq0-pins {
  241. function = "ext_irq0";
  242. pins = "gpio24";
  243. };
  244. pinctrl_ext_irq1: ext_irq1-pins {
  245. function = "ext_irq1";
  246. pins = "gpio25";
  247. };
  248. pinctrl_ext_irq2: ext_irq2-pins {
  249. function = "ext_irq2";
  250. pins = "gpio26";
  251. };
  252. pinctrl_ext_irq3: ext_irq3-pins {
  253. function = "ext_irq3";
  254. pins = "gpio27";
  255. };
  256. pinctrl_nand: nand-pins {
  257. function = "nand";
  258. pins = "nand_grp";
  259. };
  260. };
  261. };
  262. uart0: serial@10000100 {
  263. compatible = "brcm,bcm6345-uart";
  264. reg = <0x10000100 0x18>;
  265. interrupt-parent = <&periph_intc>;
  266. interrupts = <BCM6362_IRQ_UART0>;
  267. clocks = <&periph_osc>;
  268. clock-names = "periph";
  269. status = "disabled";
  270. };
  271. uart1: serial@10000120 {
  272. compatible = "brcm,bcm6345-uart";
  273. reg = <0x10000120 0x18>;
  274. interrupt-parent = <&periph_intc>;
  275. interrupts = <BCM6362_IRQ_UART1>;
  276. clocks = <&periph_osc>;
  277. clock-names = "periph";
  278. status = "disabled";
  279. };
  280. nflash: nand@10000200 {
  281. #address-cells = <1>;
  282. #size-cells = <0>;
  283. compatible = "brcm,nand-bcm6368",
  284. "brcm,brcmnand-v2.2",
  285. "brcm,brcmnand";
  286. reg = <0x10000200 0x180>,
  287. <0x10000600 0x200>,
  288. <0x10000070 0x10>;
  289. reg-names = "nand",
  290. "nand-cache",
  291. "nand-int-base";
  292. interrupt-parent = <&periph_intc>;
  293. interrupts = <BCM6362_IRQ_NAND>;
  294. clocks = <&periph_clk BCM6362_CLK_NAND>;
  295. clock-names = "nand";
  296. pinctrl-names = "default";
  297. pinctrl-0 = <&pinctrl_nand>;
  298. status = "disabled";
  299. };
  300. lsspi: spi@10000800 {
  301. #address-cells = <1>;
  302. #size-cells = <0>;
  303. compatible = "brcm,bcm6358-spi";
  304. reg = <0x10000800 0x70c>;
  305. interrupt-parent = <&periph_intc>;
  306. interrupts = <BCM6362_IRQ_LSSPI>;
  307. clocks = <&periph_clk BCM6362_CLK_SPI>;
  308. clock-names = "spi";
  309. resets = <&periph_rst BCM6362_RST_SPI>;
  310. status = "disabled";
  311. };
  312. hsspi: spi@10001000 {
  313. #address-cells = <1>;
  314. #size-cells = <0>;
  315. compatible = "brcm,bcm6328-hsspi";
  316. reg = <0x10001000 0x600>;
  317. interrupt-parent = <&periph_intc>;
  318. interrupts = <BCM6362_IRQ_HSSPI>;
  319. clocks = <&periph_clk BCM6362_CLK_HSSPI>,
  320. <&hsspi_osc>;
  321. clock-names = "hsspi",
  322. "pll";
  323. resets = <&periph_rst BCM6362_RST_SPI>;
  324. status = "disabled";
  325. };
  326. serdes_cntl: syscon@10001804 {
  327. compatible = "syscon";
  328. reg = <0x10001804 0x4>;
  329. native-endian;
  330. };
  331. periph_pwr: power-controller@10001848 {
  332. compatible = "brcm,bcm6362-power-controller";
  333. reg = <0x10001848 0x4>;
  334. #power-domain-cells = <1>;
  335. };
  336. leds: led-controller@10001900 {
  337. #address-cells = <1>;
  338. #size-cells = <0>;
  339. compatible = "brcm,bcm6328-leds";
  340. reg = <0x10001900 0x24>;
  341. status = "disabled";
  342. };
  343. ehci: usb@10002500 {
  344. compatible = "brcm,bcm6362-ehci", "generic-ehci";
  345. reg = <0x10002500 0x100>;
  346. big-endian;
  347. spurious-oc;
  348. interrupt-parent = <&periph_intc>;
  349. interrupts = <BCM6362_IRQ_EHCI>;
  350. phys = <&usbh 0>;
  351. phy-names = "usb";
  352. status = "disabled";
  353. };
  354. ohci: usb@10002600 {
  355. compatible = "brcm,bcm6362-ohci", "generic-ohci";
  356. reg = <0x10002600 0x100>;
  357. big-endian;
  358. no-big-frame-no;
  359. interrupt-parent = <&periph_intc>;
  360. interrupts = <BCM6362_IRQ_OHCI>;
  361. phys = <&usbh 0>;
  362. phy-names = "usb";
  363. status = "disabled";
  364. };
  365. usbh: usb-phy@10002700 {
  366. compatible = "brcm,bcm6362-usbh-phy";
  367. reg = <0x10002700 0x38>;
  368. #phy-cells = <1>;
  369. clocks = <&periph_clk BCM6362_CLK_USBH>;
  370. clock-names = "usbh";
  371. power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_USBH>;
  372. resets = <&periph_rst BCM6362_RST_USBH>;
  373. status = "disabled";
  374. };
  375. random: rng@10002880 {
  376. compatible = "brcm,bcm6368-rng";
  377. reg = <0x10002880 0x14>;
  378. clocks = <&periph_clk BCM6362_CLK_IPSEC>;
  379. clock-names = "ipsec";
  380. resets = <&periph_rst BCM6362_RST_IPSEC>;
  381. power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_IPSEC>;
  382. };
  383. ethernet: ethernet@1000d800 {
  384. compatible = "brcm,bcm6362-enetsw";
  385. reg = <0x1000d800 0x80>,
  386. <0x1000da00 0x80>,
  387. <0x1000dc00 0x80>;
  388. reg-names = "dma",
  389. "dma-channels",
  390. "dma-sram";
  391. interrupt-parent = <&periph_intc>;
  392. interrupts = <BCM6362_IRQ_ENETSW_RX_DMA0>;
  393. interrupt-names = "rx";
  394. clocks = <&periph_clk BCM6362_CLK_SWPKT_USB>,
  395. <&periph_clk BCM6362_CLK_SWPKT_SAR>,
  396. <&periph_clk BCM6362_CLK_ROBOSW>;
  397. resets = <&periph_rst BCM6362_RST_ENETSW>,
  398. <&periph_rst BCM6362_RST_EPHY>;
  399. power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_ROBOSW>,
  400. <&periph_pwr BCM6362_POWER_DOMAIN_GMII_PADS>;
  401. dma-rx = <0>;
  402. dma-tx = <1>;
  403. status = "disabled";
  404. };
  405. switch0: switch@10e00000 {
  406. #address-cells = <1>;
  407. #size-cells = <0>;
  408. compatible = "brcm,bcm6362-switch";
  409. reg = <0x10e00000 0x8000>;
  410. big-endian;
  411. ports {
  412. #address-cells = <1>;
  413. #size-cells = <0>;
  414. port@8 {
  415. reg = <8>;
  416. phy-mode = "internal";
  417. ethernet = <&ethernet>;
  418. fixed-link {
  419. speed = <1000>;
  420. full-duplex;
  421. };
  422. };
  423. };
  424. };
  425. mdio: mdio@10e000b0 {
  426. #address-cells = <1>;
  427. #size-cells = <0>;
  428. compatible = "brcm,bcm6368-mdio-mux";
  429. reg = <0x10e000b0 0x8>;
  430. mdio_int: mdio@0 {
  431. #address-cells = <1>;
  432. #size-cells = <0>;
  433. reg = <0>;
  434. phy1: ethernet-phy@1 {
  435. compatible = "ethernet-phy-ieee802.3-c22";
  436. reg = <1>;
  437. };
  438. phy2: ethernet-phy@2 {
  439. compatible = "ethernet-phy-ieee802.3-c22";
  440. reg = <2>;
  441. };
  442. phy3: ethernet-phy@3 {
  443. compatible = "ethernet-phy-ieee802.3-c22";
  444. reg = <3>;
  445. };
  446. phy4: ethernet-phy@4 {
  447. compatible = "ethernet-phy-ieee802.3-c22";
  448. reg = <4>;
  449. };
  450. };
  451. mdio_ext: mdio@1 {
  452. #address-cells = <1>;
  453. #size-cells = <0>;
  454. reg = <1>;
  455. };
  456. };
  457. pcie: pcie@10e40000 {
  458. compatible = "brcm,bcm6328-pcie";
  459. reg = <0x10e40000 0x10000>;
  460. #address-cells = <3>;
  461. #size-cells = <2>;
  462. device_type = "pci";
  463. bus-range = <0x00 0x01>;
  464. ranges = <0x2000000 0 0x10f00000 0x10f00000 0 0x100000>;
  465. linux,pci-probe-only = <1>;
  466. interrupt-parent = <&periph_intc>;
  467. interrupts = <BCM6362_IRQ_PCIE_RC>;
  468. clocks = <&periph_clk BCM6362_CLK_PCIE>;
  469. clock-names = "pcie";
  470. resets = <&periph_rst BCM6362_RST_PCIE>,
  471. <&periph_rst BCM6362_RST_PCIE_EXT>,
  472. <&periph_rst BCM6362_RST_PCIE_CORE>;
  473. reset-names = "pcie",
  474. "pcie-ext",
  475. "pcie-core";
  476. power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_PCIE>;
  477. brcm,serdes = <&serdes_cntl>;
  478. status = "disabled";
  479. };
  480. };
  481. };