bcm6318.dtsi 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /dts-v1/;
  3. #include <dt-bindings/clock/bcm6318-clock.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. #include <dt-bindings/interrupt-controller/bcm6318-interrupt-controller.h>
  7. #include <dt-bindings/interrupt-controller/irq.h>
  8. #include <dt-bindings/leds/common.h>
  9. #include <dt-bindings/reset/bcm6318-reset.h>
  10. #include <dt-bindings/soc/bcm6318-pm.h>
  11. / {
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. compatible = "brcm,bcm6318";
  15. aliases {
  16. pinctrl = &pinctrl;
  17. serial0 = &uart0;
  18. spi1 = &hsspi;
  19. };
  20. chosen {
  21. bootargs = "earlycon";
  22. stdout-path = "serial0:115200n8";
  23. };
  24. clocks {
  25. periph_osc: periph-osc {
  26. compatible = "fixed-clock";
  27. #clock-cells = <0>;
  28. clock-frequency = <50000000>;
  29. clock-output-names = "periph";
  30. };
  31. hsspi_osc: hsspi-osc {
  32. compatible = "fixed-clock";
  33. #clock-cells = <0>;
  34. clock-frequency = <250000000>;
  35. clock-output-names = "hsspi_osc";
  36. };
  37. };
  38. cpus {
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41. mips-hpt-frequency = <166500000>;
  42. cpu@0 {
  43. compatible = "brcm,bmips3300", "mips,mips4Kc";
  44. device_type = "cpu";
  45. reg = <0>;
  46. };
  47. };
  48. cpu_intc: interrupt-controller {
  49. #address-cells = <0>;
  50. compatible = "mti,cpu-interrupt-controller";
  51. interrupt-controller;
  52. #interrupt-cells = <1>;
  53. };
  54. memory@0 {
  55. device_type = "memory";
  56. reg = <0 0>;
  57. };
  58. ubus {
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. compatible = "simple-bus";
  62. ranges;
  63. periph_clk: clock-controller@10000004 {
  64. compatible = "brcm,bcm6318-clocks";
  65. reg = <0x10000004 0x4>;
  66. #clock-cells = <1>;
  67. };
  68. ubus_clk: clock-controller@10000008 {
  69. compatible = "brcm,bcm6318-ubus-clocks";
  70. reg = <0x10000008 0x4>;
  71. #clock-cells = <1>;
  72. };
  73. periph_rst: reset-controller@10000010 {
  74. compatible = "brcm,bcm6345-reset";
  75. reg = <0x10000010 0x4>;
  76. #reset-cells = <1>;
  77. };
  78. ext_intc: interrupt-controller@10000018 {
  79. #address-cells = <1>;
  80. compatible = "brcm,bcm6318-ext-intc";
  81. reg = <0x10000018 0x4>;
  82. interrupt-controller;
  83. #interrupt-cells = <2>;
  84. interrupt-parent = <&periph_intc>;
  85. interrupts = <BCM6318_IRQ_EXT0>,
  86. <BCM6318_IRQ_EXT1>,
  87. <BCM6318_IRQ_EXT2>,
  88. <BCM6318_IRQ_EXT3>;
  89. };
  90. periph_intc: interrupt-controller@10000020 {
  91. #address-cells = <1>;
  92. compatible = "brcm,bcm6345-l1-intc";
  93. reg = <0x10000020 0x20>;
  94. interrupt-controller;
  95. #interrupt-cells = <1>;
  96. interrupt-parent = <&cpu_intc>;
  97. interrupts = <2>, <3>;
  98. };
  99. wdt: watchdog@10000068 {
  100. compatible = "brcm,bcm7038-wdt";
  101. reg = <0x10000068 0xc>;
  102. clocks = <&periph_osc>;
  103. timeout-sec = <30>;
  104. };
  105. pll_cntl: syscon@10000074 {
  106. compatible = "syscon", "simple-mfd";
  107. reg = <0x10000074 0x4>;
  108. native-endian;
  109. syscon-reboot {
  110. compatible = "syscon-reboot";
  111. offset = <0>;
  112. mask = <0x1>;
  113. };
  114. };
  115. gpio_cntl: syscon@10000080 {
  116. #address-cells = <1>;
  117. #size-cells = <1>;
  118. compatible = "brcm,bcm6318-gpio-sysctl",
  119. "syscon", "simple-mfd";
  120. reg = <0x10000080 0x80>;
  121. ranges = <0 0x10000080 0x80>;
  122. native-endian;
  123. gpio: gpio@0 {
  124. compatible = "brcm,bcm6318-gpio";
  125. reg-names = "dirout", "dat";
  126. reg = <0x0 0x8>, <0x8 0x8>;
  127. gpio-controller;
  128. gpio-ranges = <&pinctrl 0 0 50>;
  129. #gpio-cells = <2>;
  130. };
  131. pinctrl: pinctrl@18 {
  132. compatible = "brcm,bcm6318-pinctrl";
  133. reg = <0x18 0x10>, <0x54 0x18>;
  134. pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
  135. function = "ephy0_spd_led";
  136. pins = "gpio0";
  137. };
  138. pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
  139. function = "ephy1_spd_led";
  140. pins = "gpio1";
  141. };
  142. pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
  143. function = "ephy2_spd_led";
  144. pins = "gpio2";
  145. };
  146. pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
  147. function = "ephy3_spd_led";
  148. pins = "gpio3";
  149. };
  150. pinctrl_ephy0_act_led: ephy0_act_led-pins {
  151. function = "ephy0_act_led";
  152. pins = "gpio4";
  153. };
  154. pinctrl_ephy1_act_led: ephy1_act_led-pins {
  155. function = "ephy1_act_led";
  156. pins = "gpio5";
  157. };
  158. pinctrl_ephy2_act_led: ephy2_act_led-pins {
  159. function = "ephy2_act_led";
  160. pins = "gpio6";
  161. };
  162. pinctrl_ephy3_act_led: ephy3_act_led-pins {
  163. function = "ephy3_act_led";
  164. pins = "gpio7";
  165. };
  166. pinctrl_serial_led: serial_led-pins {
  167. pinctrl_serial_led_data: serial_led_data-pins {
  168. function = "serial_led_data";
  169. pins = "gpio6";
  170. };
  171. pinctrl_serial_led_clk: serial_led_clk-pins {
  172. function = "serial_led_clk";
  173. pins = "gpio7";
  174. };
  175. };
  176. pinctrl_inet_act_led: inet_act_led-pins {
  177. function = "inet_act_led";
  178. pins = "gpio8";
  179. };
  180. pinctrl_inet_fail_led: inet_fail_led-pins {
  181. function = "inet_fail_led";
  182. pins = "gpio9";
  183. };
  184. pinctrl_dsl_led: dsl_led-pins {
  185. function = "dsl_led";
  186. pins = "gpio10";
  187. };
  188. pinctrl_post_fail_led: post_fail_led-pins {
  189. function = "post_fail_led";
  190. pins = "gpio11";
  191. };
  192. pinctrl_wlan_wps_led: wlan_wps_led-pins {
  193. function = "wlan_wps_led";
  194. pins = "gpio12";
  195. };
  196. pinctrl_usb_pwron: usb_pwron-pins {
  197. function = "usb_pwron";
  198. pins = "gpio13";
  199. };
  200. pinctrl_usb_device_led: usb_device_led-pins {
  201. function = "usb_device_led";
  202. pins = "gpio13";
  203. };
  204. pinctrl_usb_active: usb_active-pins {
  205. function = "usb_active";
  206. pins = "gpio40";
  207. };
  208. };
  209. };
  210. uart0: serial@10000100 {
  211. compatible = "brcm,bcm6345-uart";
  212. reg = <0x10000100 0x18>;
  213. interrupt-parent = <&periph_intc>;
  214. interrupts = <BCM6318_IRQ_UART0>;
  215. clocks = <&periph_osc>;
  216. clock-names = "periph";
  217. status = "disabled";
  218. };
  219. leds: led-controller@10000200 {
  220. #address-cells = <1>;
  221. #size-cells = <0>;
  222. compatible = "brcm,bcm6328-leds";
  223. reg = <0x10000200 0x24>;
  224. status = "disabled";
  225. };
  226. periph_pwr: power-controller@100008e8 {
  227. compatible = "brcm,bcm6318-power-controller";
  228. reg = <0x100008e8 0x4>;
  229. #power-domain-cells = <1>;
  230. };
  231. hsspi: spi@10003000 {
  232. #address-cells = <1>;
  233. #size-cells = <0>;
  234. compatible = "brcm,bcm6328-hsspi";
  235. reg = <0x10003000 0x600>;
  236. interrupt-parent = <&periph_intc>;
  237. interrupts = <BCM6318_IRQ_HSSPI>;
  238. clocks = <&periph_clk BCM6318_CLK_HSSPI>,
  239. <&hsspi_osc>;
  240. clock-names = "hsspi",
  241. "pll";
  242. resets = <&periph_rst BCM6318_RST_SPI>;
  243. status = "disabled";
  244. };
  245. ehci: usb@10005000 {
  246. compatible = "brcm,bcm6318-ehci", "generic-ehci";
  247. reg = <0x10005000 0x100>;
  248. big-endian;
  249. spurious-oc;
  250. interrupt-parent = <&periph_intc>;
  251. interrupts = <BCM6318_IRQ_EHCI>;
  252. phys = <&usbh 0>;
  253. phy-names = "usb";
  254. status = "disabled";
  255. };
  256. ohci: usb@10005100 {
  257. compatible = "brcm,bcm6318-ohci", "generic-ohci";
  258. reg = <0x10005100 0x100>;
  259. big-endian;
  260. no-big-frame-no;
  261. interrupt-parent = <&periph_intc>;
  262. interrupts = <BCM6318_IRQ_OHCI>;
  263. phys = <&usbh 0>;
  264. phy-names = "usb";
  265. status = "disabled";
  266. };
  267. usbh: usb-phy@10005200 {
  268. compatible = "brcm,bcm6318-usbh-phy";
  269. reg = <0x10005200 0x38>;
  270. #phy-cells = <1>;
  271. clocks = <&periph_clk BCM6318_CLK_USBD>,
  272. <&ubus_clk BCM6318_UCLK_USB>;
  273. clock-names = "usbh",
  274. "usb_ref";
  275. power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_USB>;
  276. resets = <&periph_rst BCM6318_RST_USBH>;
  277. status = "disabled";
  278. };
  279. pcie: pcie@10010000 {
  280. compatible = "brcm,bcm6318-pcie";
  281. reg = <0x10010000 0x10000>;
  282. #address-cells = <3>;
  283. #size-cells = <2>;
  284. device_type = "pci";
  285. bus-range = <0x00 0x01>;
  286. ranges = <0x2000000 0 0x10200000 0x10200000 0 0x100000>;
  287. linux,pci-probe-only = <1>;
  288. interrupt-parent = <&periph_intc>;
  289. interrupts = <BCM6318_IRQ_PCIE_RC>;
  290. clocks = <&periph_clk BCM6318_CLK_PCIE>,
  291. <&periph_clk BCM6318_CLK_PCIE25>,
  292. <&ubus_clk BCM6318_UCLK_PCIE>;
  293. clock-names = "pcie",
  294. "pcie25",
  295. "pcie-ubus";
  296. resets = <&periph_rst BCM6318_RST_PCIE>,
  297. <&periph_rst BCM6318_RST_PCIE_EXT>,
  298. <&periph_rst BCM6318_RST_PCIE_CORE>,
  299. <&periph_rst BCM6318_RST_PCIE_HARD>;
  300. reset-names = "pcie",
  301. "pcie-ext",
  302. "pcie-core",
  303. "pcie-hard";
  304. power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_PCIE>;
  305. status = "disabled";
  306. };
  307. switch0: switch@10080000 {
  308. #address-cells = <1>;
  309. #size-cells = <0>;
  310. compatible = "brcm,bcm6318-switch";
  311. reg = <0x10080000 0x8000>;
  312. big-endian;
  313. ports {
  314. #address-cells = <1>;
  315. #size-cells = <0>;
  316. port@8 {
  317. reg = <8>;
  318. phy-mode = "internal";
  319. ethernet = <&ethernet>;
  320. fixed-link {
  321. speed = <1000>;
  322. full-duplex;
  323. };
  324. };
  325. };
  326. };
  327. mdio: mdio@100800b0 {
  328. #address-cells = <1>;
  329. #size-cells = <0>;
  330. compatible = "brcm,bcm6368-mdio-mux";
  331. reg = <0x100800b0 0x8>;
  332. mdio_int: mdio@0 {
  333. #address-cells = <1>;
  334. #size-cells = <0>;
  335. reg = <0>;
  336. phy1: ethernet-phy@1 {
  337. compatible = "ethernet-phy-ieee802.3-c22";
  338. reg = <1>;
  339. };
  340. phy2: ethernet-phy@2 {
  341. compatible = "ethernet-phy-ieee802.3-c22";
  342. reg = <2>;
  343. };
  344. phy3: ethernet-phy@3 {
  345. compatible = "ethernet-phy-ieee802.3-c22";
  346. reg = <3>;
  347. };
  348. phy4: ethernet-phy@4 {
  349. compatible = "ethernet-phy-ieee802.3-c22";
  350. reg = <4>;
  351. };
  352. };
  353. mdio_ext: mdio@1 {
  354. #address-cells = <1>;
  355. #size-cells = <0>;
  356. reg = <1>;
  357. };
  358. };
  359. ethernet: ethernet@10088000 {
  360. compatible = "brcm,bcm6318-enetsw";
  361. reg = <0x10088000 0x80>,
  362. <0x10088200 0x80>,
  363. <0x10088400 0x80>;
  364. reg-names = "dma",
  365. "dma-channels",
  366. "dma-sram";
  367. interrupt-parent = <&periph_intc>;
  368. interrupts = <BCM6318_IRQ_ENETSW_RX_DMA0>,
  369. <BCM6318_IRQ_ENETSW_TX_DMA0>;
  370. interrupt-names = "rx",
  371. "tx";
  372. clocks = <&periph_clk BCM6318_CLK_ROBOSW250>,
  373. <&periph_clk BCM6318_CLK_ROBOSW025>,
  374. <&ubus_clk BCM6318_UCLK_ROBOSW>;
  375. resets = <&periph_rst BCM6318_RST_ENETSW>,
  376. <&periph_rst BCM6318_RST_EPHY>;
  377. power-domains = <&periph_pwr BCM6318_POWER_DOMAIN_EPHY0>,
  378. <&periph_pwr BCM6318_POWER_DOMAIN_EPHY1>,
  379. <&periph_pwr BCM6318_POWER_DOMAIN_EPHY2>,
  380. <&periph_pwr BCM6318_POWER_DOMAIN_EPHY3>;
  381. dma-rx = <0>;
  382. dma-tx = <1>;
  383. status = "disabled";
  384. };
  385. };
  386. };