bcm63268.dtsi 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /dts-v1/;
  3. #include <dt-bindings/clock/bcm63268-clock.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. #include <dt-bindings/interrupt-controller/bcm63268-interrupt-controller.h>
  7. #include <dt-bindings/interrupt-controller/irq.h>
  8. #include <dt-bindings/leds/common.h>
  9. #include <dt-bindings/reset/bcm63268-reset.h>
  10. #include <dt-bindings/soc/bcm63268-pm.h>
  11. / {
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. compatible = "brcm,bcm63268";
  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,bcm63268-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 = <BCM63268_IRQ_EXT0>,
  99. <BCM63268_IRQ_EXT1>,
  100. <BCM63268_IRQ_EXT2>,
  101. <BCM63268_IRQ_EXT3>;
  102. };
  103. periph_intc: interrupt-controller@10000020 {
  104. #address-cells = <1>;
  105. compatible = "brcm,bcm6345-l1-intc";
  106. reg = <0x10000020 0x20>,
  107. <0x10000040 0x20>;
  108. interrupt-controller;
  109. #interrupt-cells = <1>;
  110. interrupt-parent = <&cpu_intc>;
  111. interrupts = <2>, <3>;
  112. };
  113. wdt: watchdog@1000009c {
  114. compatible = "brcm,bcm7038-wdt";
  115. reg = <0x1000009c 0xc>;
  116. clocks = <&periph_osc>;
  117. timeout-sec = <30>;
  118. };
  119. timer_clk: clock-controller@100000ac {
  120. compatible = "brcm,bcm63268-timer-clocks";
  121. reg = <0x100000ac 0x4>;
  122. #clock-cells = <1>;
  123. #reset-cells = <1>;
  124. };
  125. gpio_cntl: syscon@100000c0 {
  126. #address-cells = <1>;
  127. #size-cells = <1>;
  128. compatible = "brcm,bcm63268-gpio-sysctl",
  129. "syscon", "simple-mfd";
  130. reg = <0x100000c0 0x80>;
  131. ranges = <0 0x100000c0 0x80>;
  132. native-endian;
  133. gpio: gpio@0 {
  134. compatible = "brcm,bcm63268-gpio";
  135. reg-names = "dirout", "dat";
  136. reg = <0x0 0x8>, <0x8 0x8>;
  137. gpio-controller;
  138. gpio-ranges = <&pinctrl 0 0 52>;
  139. #gpio-cells = <2>;
  140. };
  141. pinctrl: pinctrl@10 {
  142. compatible = "brcm,bcm63268-pinctrl";
  143. reg = <0x10 0x4>, <0x18 0x8>, <0x38 0x4>;
  144. pinctrl_serial_led: serial_led-pins {
  145. pinctrl_serial_led_clk: serial_led_clk-pins {
  146. function = "serial_led_clk";
  147. pins = "gpio0";
  148. };
  149. pinctrl_serial_led_data: serial_led_data-pins {
  150. function = "serial_led_data";
  151. pins = "gpio1";
  152. };
  153. };
  154. pinctrl_hsspi_cs4: hsspi_cs4-pins {
  155. function = "hsspi_cs4";
  156. pins = "gpio16";
  157. };
  158. pinctrl_hsspi_cs5: hsspi_cs5-pins {
  159. function = "hsspi_cs5";
  160. pins = "gpio17";
  161. };
  162. pinctrl_hsspi_cs6: hsspi_cs6-pins {
  163. function = "hsspi_cs6";
  164. pins = "gpio8";
  165. };
  166. pinctrl_hsspi_cs7: hsspi_cs7-pins {
  167. function = "hsspi_cs7";
  168. pins = "gpio9";
  169. };
  170. pinctrl_adsl_spi: adsl_spi {
  171. pinctrl_adsl_spi_miso: adsl_spi_miso-pins {
  172. function = "adsl_spi_miso";
  173. pins = "gpio18";
  174. };
  175. pinctrl_adsl_spi_mosi: adsl_spi_mosi-pins {
  176. function = "adsl_spi_mosi";
  177. pins = "gpio19";
  178. };
  179. };
  180. pinctrl_vreq_clk: vreq_clk-pins {
  181. function = "vreq_clk";
  182. pins = "gpio22";
  183. };
  184. pinctrl_pcie_clkreq_b: pcie_clkreq_b-pins {
  185. function = "pcie_clkreq_b";
  186. pins = "gpio23";
  187. };
  188. pinctrl_robosw_led_clk: robosw_led_clk-pins {
  189. function = "robosw_led_clk";
  190. pins = "gpio30";
  191. };
  192. pinctrl_robosw_led_data: robosw_led_data-pins {
  193. function = "robosw_led_data";
  194. pins = "gpio31";
  195. };
  196. pinctrl_nand: nand-pins {
  197. function = "nand";
  198. group = "nand_grp";
  199. };
  200. pinctrl_gpio35_alt: gpio35_alt-pins {
  201. function = "gpio35_alt";
  202. pin = "gpio35";
  203. };
  204. pinctrl_dectpd: dectpd-pins {
  205. function = "dectpd";
  206. group = "dectpd_grp";
  207. };
  208. pinctrl_vdsl_phy_override_0: vdsl_phy_override_0-pins {
  209. function = "vdsl_phy_override_0";
  210. group = "vdsl_phy_override_0_grp";
  211. };
  212. pinctrl_vdsl_phy_override_1: vdsl_phy_override_1-pins {
  213. function = "vdsl_phy_override_1";
  214. group = "vdsl_phy_override_1_grp";
  215. };
  216. pinctrl_vdsl_phy_override_2: vdsl_phy_override_2-pins {
  217. function = "vdsl_phy_override_2";
  218. group = "vdsl_phy_override_2_grp";
  219. };
  220. pinctrl_vdsl_phy_override_3: vdsl_phy_override_3-pins {
  221. function = "vdsl_phy_override_3";
  222. group = "vdsl_phy_override_3_grp";
  223. };
  224. pinctrl_dsl_gpio8: dsl_gpio8-pins {
  225. function = "dsl_gpio8";
  226. group = "dsl_gpio8";
  227. };
  228. pinctrl_dsl_gpio9: dsl_gpio9-pins {
  229. function = "dsl_gpio9";
  230. group = "dsl_gpio9";
  231. };
  232. };
  233. };
  234. uart0: serial@10000180 {
  235. compatible = "brcm,bcm6345-uart";
  236. reg = <0x10000180 0x18>;
  237. interrupt-parent = <&periph_intc>;
  238. interrupts = <BCM63268_IRQ_UART0>;
  239. clocks = <&periph_osc>;
  240. clock-names = "periph";
  241. status = "disabled";
  242. };
  243. uart1: serial@100001a0 {
  244. compatible = "brcm,bcm6345-uart";
  245. reg = <0x100001a0 0x18>;
  246. interrupt-parent = <&periph_intc>;
  247. interrupts = <BCM63268_IRQ_UART1>;
  248. clocks = <&periph_osc>;
  249. clock-names = "periph";
  250. status = "disabled";
  251. };
  252. nflash: nand@10000200 {
  253. #address-cells = <1>;
  254. #size-cells = <0>;
  255. compatible = "brcm,nand-bcm6368",
  256. "brcm,brcmnand-v4.0",
  257. "brcm,brcmnand";
  258. reg = <0x10000200 0x180>,
  259. <0x10000600 0x200>,
  260. <0x100000b0 0x10>;
  261. reg-names = "nand",
  262. "nand-cache",
  263. "nand-int-base";
  264. interrupt-parent = <&periph_intc>;
  265. interrupts = <BCM63268_IRQ_NAND>;
  266. clocks = <&periph_clk BCM63268_CLK_NAND>;
  267. clock-names = "nand";
  268. pinctrl-names = "default";
  269. pinctrl-0 = <&pinctrl_nand>;
  270. status = "disabled";
  271. };
  272. lsspi: spi@10000800 {
  273. #address-cells = <1>;
  274. #size-cells = <0>;
  275. compatible = "brcm,bcm6358-spi";
  276. reg = <0x10000800 0x70c>;
  277. interrupt-parent = <&periph_intc>;
  278. interrupts = <BCM63268_IRQ_LSSPI>;
  279. clocks = <&periph_clk BCM63268_CLK_SPI>;
  280. clock-names = "spi";
  281. resets = <&periph_rst BCM63268_RST_SPI>;
  282. status = "disabled";
  283. };
  284. hsspi: spi@10001000 {
  285. #address-cells = <1>;
  286. #size-cells = <0>;
  287. compatible = "brcm,bcm6328-hsspi";
  288. reg = <0x10001000 0x600>;
  289. interrupt-parent = <&periph_intc>;
  290. interrupts = <BCM63268_IRQ_HSSPI>;
  291. clocks = <&periph_clk BCM63268_CLK_HSSPI>,
  292. <&hsspi_osc>;
  293. clock-names = "hsspi",
  294. "pll";
  295. resets = <&periph_rst BCM63268_RST_SPI>;
  296. status = "disabled";
  297. };
  298. serdes_cntl: syscon@10001804 {
  299. compatible = "syscon";
  300. reg = <0x10001804 0x4>;
  301. native-endian;
  302. };
  303. periph_pwr: power-controller@1000184c {
  304. compatible = "brcm,bcm63268-power-controller";
  305. reg = <0x1000184c 0x4>;
  306. #power-domain-cells = <1>;
  307. };
  308. leds: led-controller@10001900 {
  309. #address-cells = <1>;
  310. #size-cells = <0>;
  311. compatible = "brcm,bcm6328-leds";
  312. reg = <0x10001900 0x24>;
  313. status = "disabled";
  314. };
  315. ehci: usb@10002500 {
  316. compatible = "brcm,bcm63268-ehci", "generic-ehci";
  317. reg = <0x10002500 0x100>;
  318. big-endian;
  319. spurious-oc;
  320. interrupt-parent = <&periph_intc>;
  321. interrupts = <BCM63268_IRQ_EHCI>;
  322. phys = <&usbh 0>;
  323. phy-names = "usb";
  324. status = "disabled";
  325. };
  326. ohci: usb@10002600 {
  327. compatible = "brcm,bcm63268-ohci", "generic-ohci";
  328. reg = <0x10002600 0x100>;
  329. big-endian;
  330. no-big-frame-no;
  331. interrupt-parent = <&periph_intc>;
  332. interrupts = <BCM63268_IRQ_OHCI>;
  333. phys = <&usbh 0>;
  334. phy-names = "usb";
  335. status = "disabled";
  336. };
  337. usbh: usb-phy@10002700 {
  338. compatible = "brcm,bcm63268-usbh-phy";
  339. reg = <0x10002700 0x38>;
  340. #phy-cells = <1>;
  341. clocks = <&periph_clk BCM63268_CLK_USBH>,
  342. <&timer_clk BCM63268_TCLK_USB_REF>;
  343. clock-names = "usbh",
  344. "usb_ref";
  345. power-domains = <&periph_pwr BCM63268_POWER_DOMAIN_USBH>;
  346. resets = <&periph_rst BCM63268_RST_USBH>;
  347. status = "disabled";
  348. };
  349. random: rng@10002880 {
  350. compatible = "brcm,bcm6368-rng";
  351. reg = <0x10002880 0x14>;
  352. clocks = <&periph_clk BCM63268_CLK_IPSEC>;
  353. clock-names = "ipsec";
  354. resets = <&periph_rst BCM63268_RST_IPSEC>;
  355. power-domains = <&periph_pwr BCM63268_POWER_DOMAIN_IPSEC>;
  356. };
  357. ethernet: ethernet@1000d800 {
  358. compatible = "brcm,bcm63268-enetsw";
  359. reg = <0x1000d800 0x80>,
  360. <0x1000da00 0x80>,
  361. <0x1000dc00 0x80>;
  362. reg-names = "dma",
  363. "dma-channels",
  364. "dma-sram";
  365. interrupt-parent = <&periph_intc>;
  366. interrupts = <BCM63268_IRQ_ENETSW_RX_DMA0>,
  367. <BCM63268_IRQ_ENETSW_TX_DMA0>;
  368. interrupt-names = "rx",
  369. "tx";
  370. clocks = <&periph_clk BCM63268_CLK_GMAC>,
  371. <&periph_clk BCM63268_CLK_ROBOSW>,
  372. <&periph_clk BCM63268_CLK_ROBOSW250>,
  373. <&timer_clk BCM63268_TCLK_EPHY1>,
  374. <&timer_clk BCM63268_TCLK_EPHY2>,
  375. <&timer_clk BCM63268_TCLK_EPHY3>,
  376. <&timer_clk BCM63268_TCLK_GPHY1>;
  377. resets = <&periph_rst BCM63268_RST_ENETSW>,
  378. <&periph_rst BCM63268_RST_EPHY>,
  379. <&periph_rst BCM63268_RST_GPHY>;
  380. power-domains = <&periph_pwr BCM63268_POWER_DOMAIN_ROBOSW>;
  381. dma-rx = <0>;
  382. dma-tx = <1>;
  383. status = "disabled";
  384. };
  385. pcie: pcie@106e0000 {
  386. compatible = "brcm,bcm6328-pcie";
  387. reg = <0x106e0000 0x10000>;
  388. #address-cells = <3>;
  389. #size-cells = <2>;
  390. device_type = "pci";
  391. bus-range = <0x00 0x01>;
  392. ranges = <0x2000000 0 0x11000000 0x11000000 0 0xf00000>;
  393. linux,pci-probe-only = <1>;
  394. interrupt-parent = <&periph_intc>;
  395. interrupts = <BCM63268_IRQ_PCIE_RC>;
  396. clocks = <&periph_clk BCM63268_CLK_PCIE>;
  397. clock-names = "pcie";
  398. resets = <&periph_rst BCM63268_RST_PCIE>,
  399. <&periph_rst BCM63268_RST_PCIE_EXT>,
  400. <&periph_rst BCM63268_RST_PCIE_CORE>,
  401. <&periph_rst BCM63268_RST_PCIE_HARD>;
  402. reset-names = "pcie",
  403. "pcie-ext",
  404. "pcie-core",
  405. "pcie-hard";
  406. power-domains = <&periph_pwr BCM63268_POWER_DOMAIN_PCIE>;
  407. brcm,serdes = <&serdes_cntl>;
  408. status = "disabled";
  409. };
  410. switch0: switch@10700000 {
  411. #address-cells = <1>;
  412. #size-cells = <0>;
  413. compatible = "brcm,bcm63268-switch";
  414. reg = <0x10700000 0x8000>;
  415. big-endian;
  416. ports {
  417. #address-cells = <1>;
  418. #size-cells = <0>;
  419. port@8 {
  420. reg = <8>;
  421. phy-mode = "internal";
  422. ethernet = <&ethernet>;
  423. fixed-link {
  424. speed = <1000>;
  425. full-duplex;
  426. };
  427. };
  428. };
  429. };
  430. mdio: mdio@107000b0 {
  431. #address-cells = <1>;
  432. #size-cells = <0>;
  433. compatible = "brcm,bcm6368-mdio-mux";
  434. reg = <0x107000b0 0x8>;
  435. mdio_int: mdio@0 {
  436. #address-cells = <1>;
  437. #size-cells = <0>;
  438. reg = <0>;
  439. phy1: ethernet-phy@1 {
  440. compatible = "ethernet-phy-ieee802.3-c22";
  441. reg = <1>;
  442. };
  443. phy2: ethernet-phy@2 {
  444. compatible = "ethernet-phy-ieee802.3-c22";
  445. reg = <2>;
  446. };
  447. phy3: ethernet-phy@3 {
  448. compatible = "ethernet-phy-ieee802.3-c22";
  449. reg = <3>;
  450. };
  451. phy4: ethernet-phy@4 {
  452. compatible = "ethernet-phy-ieee802.3-c22";
  453. reg = <4>;
  454. };
  455. };
  456. mdio_ext: mdio@1 {
  457. #address-cells = <1>;
  458. #size-cells = <0>;
  459. reg = <1>;
  460. };
  461. };
  462. };
  463. };