bcm7346.dtsi 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. // SPDX-License-Identifier: GPL-2.0
  2. / {
  3. #address-cells = <1>;
  4. #size-cells = <1>;
  5. compatible = "brcm,bcm7346";
  6. cpus {
  7. #address-cells = <1>;
  8. #size-cells = <0>;
  9. mips-hpt-frequency = <163125000>;
  10. cpu@0 {
  11. compatible = "brcm,bmips5000";
  12. device_type = "cpu";
  13. reg = <0>;
  14. };
  15. cpu@1 {
  16. compatible = "brcm,bmips5000";
  17. device_type = "cpu";
  18. reg = <1>;
  19. };
  20. };
  21. aliases {
  22. uart0 = &uart0;
  23. };
  24. cpu_intc: interrupt-controller {
  25. #address-cells = <0>;
  26. compatible = "mti,cpu-interrupt-controller";
  27. interrupt-controller;
  28. #interrupt-cells = <1>;
  29. };
  30. clocks {
  31. uart_clk: uart_clk {
  32. compatible = "fixed-clock";
  33. #clock-cells = <0>;
  34. clock-frequency = <81000000>;
  35. };
  36. upg_clk: upg_clk {
  37. compatible = "fixed-clock";
  38. #clock-cells = <0>;
  39. clock-frequency = <27000000>;
  40. };
  41. };
  42. rdb {
  43. #address-cells = <1>;
  44. #size-cells = <1>;
  45. compatible = "simple-bus";
  46. ranges = <0 0x10000000 0x01000000>;
  47. periph_intc: interrupt-controller@411400 {
  48. compatible = "brcm,bcm7038-l1-intc";
  49. reg = <0x411400 0x30>, <0x411600 0x30>;
  50. interrupt-controller;
  51. #interrupt-cells = <1>;
  52. interrupt-parent = <&cpu_intc>;
  53. interrupts = <2>, <3>;
  54. };
  55. sun_l2_intc: interrupt-controller@403000 {
  56. compatible = "brcm,l2-intc";
  57. reg = <0x403000 0x30>;
  58. interrupt-controller;
  59. #interrupt-cells = <1>;
  60. interrupt-parent = <&periph_intc>;
  61. interrupts = <51>;
  62. };
  63. gisb-arb@400000 {
  64. compatible = "brcm,bcm7400-gisb-arb";
  65. reg = <0x400000 0xdc>;
  66. native-endian;
  67. interrupt-parent = <&sun_l2_intc>;
  68. interrupts = <0>, <2>;
  69. brcm,gisb-arb-master-mask = <0x673>;
  70. brcm,gisb-arb-master-names = "ssp_0", "cpu_0", "bsp_0",
  71. "rdc_0", "raaga_0",
  72. "jtag_0", "svd_0";
  73. };
  74. upg_irq0_intc: interrupt-controller@406780 {
  75. compatible = "brcm,bcm7120-l2-intc";
  76. reg = <0x406780 0x8>;
  77. brcm,int-map-mask = <0x44>, <0xf000000>;
  78. brcm,int-fwd-mask = <0x70000>;
  79. interrupt-controller;
  80. #interrupt-cells = <1>;
  81. interrupt-parent = <&periph_intc>;
  82. interrupts = <59>, <57>;
  83. interrupt-names = "upg_main", "upg_bsc";
  84. };
  85. upg_aon_irq0_intc: interrupt-controller@408b80 {
  86. compatible = "brcm,bcm7120-l2-intc";
  87. reg = <0x408b80 0x8>;
  88. brcm,int-map-mask = <0x40>, <0x8000000>, <0x100000>;
  89. brcm,int-fwd-mask = <0>;
  90. brcm,irq-can-wake;
  91. interrupt-controller;
  92. #interrupt-cells = <1>;
  93. interrupt-parent = <&periph_intc>;
  94. interrupts = <60>, <58>, <62>;
  95. interrupt-names = "upg_main_aon", "upg_bsc_aon",
  96. "upg_spi";
  97. };
  98. sun_top_ctrl: syscon@404000 {
  99. compatible = "brcm,bcm7346-sun-top-ctrl", "syscon";
  100. reg = <0x404000 0x51c>;
  101. native-endian;
  102. };
  103. reboot {
  104. compatible = "brcm,brcmstb-reboot";
  105. syscon = <&sun_top_ctrl 0x304 0x308>;
  106. };
  107. uart0: serial@406900 {
  108. compatible = "ns16550a";
  109. reg = <0x406900 0x20>;
  110. reg-io-width = <0x4>;
  111. reg-shift = <0x2>;
  112. native-endian;
  113. interrupt-parent = <&periph_intc>;
  114. interrupts = <64>;
  115. clocks = <&uart_clk>;
  116. status = "disabled";
  117. };
  118. uart1: serial@406940 {
  119. compatible = "ns16550a";
  120. reg = <0x406940 0x20>;
  121. reg-io-width = <0x4>;
  122. reg-shift = <0x2>;
  123. native-endian;
  124. interrupt-parent = <&periph_intc>;
  125. interrupts = <65>;
  126. clocks = <&uart_clk>;
  127. status = "disabled";
  128. };
  129. uart2: serial@406980 {
  130. compatible = "ns16550a";
  131. reg = <0x406980 0x20>;
  132. reg-io-width = <0x4>;
  133. reg-shift = <0x2>;
  134. native-endian;
  135. interrupt-parent = <&periph_intc>;
  136. interrupts = <66>;
  137. clocks = <&uart_clk>;
  138. status = "disabled";
  139. };
  140. bsca: i2c@406200 {
  141. clock-frequency = <390000>;
  142. compatible = "brcm,brcmstb-i2c";
  143. interrupt-parent = <&upg_irq0_intc>;
  144. reg = <0x406200 0x58>;
  145. interrupts = <24>;
  146. interrupt-names = "upg_bsca";
  147. status = "disabled";
  148. };
  149. bscb: i2c@406280 {
  150. clock-frequency = <390000>;
  151. compatible = "brcm,brcmstb-i2c";
  152. interrupt-parent = <&upg_irq0_intc>;
  153. reg = <0x406280 0x58>;
  154. interrupts = <25>;
  155. interrupt-names = "upg_bscb";
  156. status = "disabled";
  157. };
  158. bscc: i2c@406300 {
  159. clock-frequency = <390000>;
  160. compatible = "brcm,brcmstb-i2c";
  161. interrupt-parent = <&upg_irq0_intc>;
  162. reg = <0x406300 0x58>;
  163. interrupts = <26>;
  164. interrupt-names = "upg_bscc";
  165. status = "disabled";
  166. };
  167. bscd: i2c@406380 {
  168. clock-frequency = <390000>;
  169. compatible = "brcm,brcmstb-i2c";
  170. interrupt-parent = <&upg_irq0_intc>;
  171. reg = <0x406380 0x58>;
  172. interrupts = <27>;
  173. interrupt-names = "upg_bscd";
  174. status = "disabled";
  175. };
  176. bsce: i2c@408980 {
  177. clock-frequency = <390000>;
  178. compatible = "brcm,brcmstb-i2c";
  179. interrupt-parent = <&upg_aon_irq0_intc>;
  180. reg = <0x408980 0x58>;
  181. interrupts = <27>;
  182. interrupt-names = "upg_bsce";
  183. status = "disabled";
  184. };
  185. pwma: pwm@406580 {
  186. compatible = "brcm,bcm7038-pwm";
  187. reg = <0x406580 0x28>;
  188. #pwm-cells = <2>;
  189. clocks = <&upg_clk>;
  190. status = "disabled";
  191. };
  192. pwmb: pwm@406800 {
  193. compatible = "brcm,bcm7038-pwm";
  194. reg = <0x406800 0x28>;
  195. #pwm-cells = <2>;
  196. clocks = <&upg_clk>;
  197. status = "disabled";
  198. };
  199. watchdog: watchdog@4067e8 {
  200. clocks = <&upg_clk>;
  201. compatible = "brcm,bcm7038-wdt";
  202. reg = <0x4067e8 0x14>;
  203. status = "disabled";
  204. };
  205. aon_pm_l2_intc: interrupt-controller@408440 {
  206. compatible = "brcm,l2-intc";
  207. reg = <0x408440 0x30>;
  208. interrupt-controller;
  209. #interrupt-cells = <1>;
  210. interrupt-parent = <&periph_intc>;
  211. interrupts = <53>;
  212. brcm,irq-can-wake;
  213. };
  214. aon_ctrl: syscon@408000 {
  215. compatible = "brcm,brcmstb-aon-ctrl";
  216. reg = <0x408000 0x100>, <0x408200 0x200>;
  217. reg-names = "aon-ctrl", "aon-sram";
  218. };
  219. timers: timer@4067c0 {
  220. compatible = "brcm,brcmstb-timers";
  221. reg = <0x4067c0 0x40>;
  222. };
  223. upg_gio: gpio@406700 {
  224. compatible = "brcm,brcmstb-gpio";
  225. reg = <0x406700 0x60>;
  226. #gpio-cells = <2>;
  227. #interrupt-cells = <2>;
  228. gpio-controller;
  229. interrupt-controller;
  230. interrupt-parent = <&upg_irq0_intc>;
  231. interrupts = <6>;
  232. brcm,gpio-bank-widths = <32 32 16>;
  233. };
  234. upg_gio_aon: gpio@408c00 {
  235. compatible = "brcm,brcmstb-gpio";
  236. reg = <0x408c00 0x60>;
  237. #gpio-cells = <2>;
  238. #interrupt-cells = <2>;
  239. gpio-controller;
  240. interrupt-controller;
  241. interrupt-parent = <&upg_aon_irq0_intc>;
  242. interrupts = <6>;
  243. interrupts-extended = <&upg_aon_irq0_intc 6>,
  244. <&aon_pm_l2_intc 5>;
  245. wakeup-source;
  246. brcm,gpio-bank-widths = <27 32 2>;
  247. };
  248. enet0: ethernet@430000 {
  249. phy-mode = "internal";
  250. phy-handle = <&phy1>;
  251. mac-address = [ 00 10 18 36 23 1a ];
  252. compatible = "brcm,genet-v2";
  253. #address-cells = <0x1>;
  254. #size-cells = <0x1>;
  255. reg = <0x430000 0x4c8c>;
  256. interrupts = <24>, <25>;
  257. interrupt-parent = <&periph_intc>;
  258. status = "disabled";
  259. mdio@e14 {
  260. compatible = "brcm,genet-mdio-v2";
  261. #address-cells = <0x1>;
  262. #size-cells = <0x0>;
  263. reg = <0xe14 0x8>;
  264. phy1: ethernet-phy@1 {
  265. max-speed = <100>;
  266. reg = <0x1>;
  267. compatible = "brcm,40nm-ephy",
  268. "ethernet-phy-ieee802.3-c22";
  269. };
  270. };
  271. };
  272. ehci0: usb@480300 {
  273. compatible = "brcm,bcm7346-ehci", "generic-ehci";
  274. reg = <0x480300 0x100>;
  275. native-endian;
  276. interrupt-parent = <&periph_intc>;
  277. interrupts = <68>;
  278. status = "disabled";
  279. };
  280. ohci0: usb@480400 {
  281. compatible = "brcm,bcm7346-ohci", "generic-ohci";
  282. reg = <0x480400 0x100>;
  283. native-endian;
  284. no-big-frame-no;
  285. interrupt-parent = <&periph_intc>;
  286. interrupts = <70>;
  287. status = "disabled";
  288. };
  289. ehci1: usb@480500 {
  290. compatible = "brcm,bcm7346-ehci", "generic-ehci";
  291. reg = <0x480500 0x100>;
  292. native-endian;
  293. interrupt-parent = <&periph_intc>;
  294. interrupts = <69>;
  295. status = "disabled";
  296. };
  297. ohci1: usb@480600 {
  298. compatible = "brcm,bcm7346-ohci", "generic-ohci";
  299. reg = <0x480600 0x100>;
  300. native-endian;
  301. no-big-frame-no;
  302. interrupt-parent = <&periph_intc>;
  303. interrupts = <71>;
  304. status = "disabled";
  305. };
  306. ehci2: usb@490300 {
  307. compatible = "brcm,bcm7346-ehci", "generic-ehci";
  308. reg = <0x490300 0x100>;
  309. native-endian;
  310. interrupt-parent = <&periph_intc>;
  311. interrupts = <73>;
  312. status = "disabled";
  313. };
  314. ohci2: usb@490400 {
  315. compatible = "brcm,bcm7346-ohci", "generic-ohci";
  316. reg = <0x490400 0x100>;
  317. native-endian;
  318. no-big-frame-no;
  319. interrupt-parent = <&periph_intc>;
  320. interrupts = <75>;
  321. status = "disabled";
  322. };
  323. ehci3: usb@490500 {
  324. compatible = "brcm,bcm7346-ehci", "generic-ehci";
  325. reg = <0x490500 0x100>;
  326. native-endian;
  327. interrupt-parent = <&periph_intc>;
  328. interrupts = <74>;
  329. status = "disabled";
  330. };
  331. ohci3: usb@490600 {
  332. compatible = "brcm,bcm7346-ohci", "generic-ohci";
  333. reg = <0x490600 0x100>;
  334. native-endian;
  335. no-big-frame-no;
  336. interrupt-parent = <&periph_intc>;
  337. interrupts = <76>;
  338. status = "disabled";
  339. };
  340. hif_l2_intc: interrupt-controller@411000 {
  341. compatible = "brcm,l2-intc";
  342. reg = <0x411000 0x30>;
  343. interrupt-controller;
  344. #interrupt-cells = <1>;
  345. interrupt-parent = <&periph_intc>;
  346. interrupts = <30>;
  347. };
  348. nand: nand@412800 {
  349. compatible = "brcm,brcmnand-v5.0", "brcm,brcmnand";
  350. #address-cells = <1>;
  351. #size-cells = <0>;
  352. reg-names = "nand";
  353. reg = <0x412800 0x400>;
  354. interrupt-parent = <&hif_l2_intc>;
  355. interrupts = <24>;
  356. status = "disabled";
  357. };
  358. sata: sata@181000 {
  359. compatible = "brcm,bcm7425-ahci", "brcm,sata3-ahci";
  360. reg-names = "ahci", "top-ctrl";
  361. reg = <0x181000 0xa9c>, <0x180020 0x1c>;
  362. interrupt-parent = <&periph_intc>;
  363. interrupts = <40>;
  364. #address-cells = <1>;
  365. #size-cells = <0>;
  366. status = "disabled";
  367. sata0: sata-port@0 {
  368. reg = <0>;
  369. phys = <&sata_phy0>;
  370. };
  371. sata1: sata-port@1 {
  372. reg = <1>;
  373. phys = <&sata_phy1>;
  374. };
  375. };
  376. sata_phy: sata-phy@180100 {
  377. compatible = "brcm,bcm7425-sata-phy", "brcm,phy-sata3";
  378. reg = <0x180100 0x0eff>;
  379. reg-names = "phy";
  380. #address-cells = <1>;
  381. #size-cells = <0>;
  382. status = "disabled";
  383. sata_phy0: sata-phy@0 {
  384. reg = <0>;
  385. #phy-cells = <0>;
  386. };
  387. sata_phy1: sata-phy@1 {
  388. reg = <1>;
  389. #phy-cells = <0>;
  390. };
  391. };
  392. sdhci0: sdhci@413500 {
  393. compatible = "brcm,bcm7425-sdhci";
  394. reg = <0x413500 0x100>;
  395. interrupt-parent = <&periph_intc>;
  396. interrupts = <85>;
  397. status = "disabled";
  398. };
  399. spi_l2_intc: interrupt-controller@411d00 {
  400. compatible = "brcm,l2-intc";
  401. reg = <0x411d00 0x30>;
  402. interrupt-controller;
  403. #interrupt-cells = <1>;
  404. interrupt-parent = <&periph_intc>;
  405. interrupts = <31>;
  406. };
  407. qspi: spi@413000 {
  408. #address-cells = <0x1>;
  409. #size-cells = <0x0>;
  410. compatible = "brcm,spi-bcm-qspi",
  411. "brcm,spi-brcmstb-qspi";
  412. clocks = <&upg_clk>;
  413. reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
  414. reg-names = "cs_reg", "hif_mspi", "bspi";
  415. interrupts = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>;
  416. interrupt-parent = <&spi_l2_intc>;
  417. interrupt-names = "spi_lr_fullness_reached",
  418. "spi_lr_session_aborted",
  419. "spi_lr_impatient",
  420. "spi_lr_session_done",
  421. "spi_lr_overread",
  422. "mspi_done",
  423. "mspi_halted";
  424. status = "disabled";
  425. };
  426. mspi: spi@408a00 {
  427. #address-cells = <1>;
  428. #size-cells = <0>;
  429. compatible = "brcm,spi-bcm-qspi",
  430. "brcm,spi-brcmstb-mspi";
  431. clocks = <&upg_clk>;
  432. reg = <0x408a00 0x180>;
  433. reg-names = "mspi";
  434. interrupts = <0x14>;
  435. interrupt-parent = <&upg_aon_irq0_intc>;
  436. interrupt-names = "mspi_done";
  437. status = "disabled";
  438. };
  439. waketimer: waketimer@408e80 {
  440. compatible = "brcm,brcmstb-waketimer";
  441. reg = <0x408e80 0x14>;
  442. interrupts = <0x3>;
  443. interrupt-parent = <&aon_pm_l2_intc>;
  444. interrupt-names = "timer";
  445. clocks = <&upg_clk>;
  446. status = "disabled";
  447. };
  448. };
  449. memory_controllers {
  450. compatible = "simple-bus";
  451. ranges = <0x0 0x103b0000 0xa000>;
  452. #address-cells = <1>;
  453. #size-cells = <1>;
  454. memory-controller@0 {
  455. compatible = "brcm,brcmstb-memc", "simple-bus";
  456. ranges = <0x0 0x0 0xa000>;
  457. #address-cells = <1>;
  458. #size-cells = <1>;
  459. memc-arb@1000 {
  460. compatible = "brcm,brcmstb-memc-arb";
  461. reg = <0x1000 0x248>;
  462. };
  463. memc-ddr@2000 {
  464. compatible = "brcm,brcmstb-memc-ddr";
  465. reg = <0x2000 0x300>;
  466. };
  467. ddr-phy@6000 {
  468. compatible = "brcm,brcmstb-ddr-phy";
  469. reg = <0x6000 0xc8>;
  470. };
  471. shimphy@8000 {
  472. compatible = "brcm,brcmstb-ddr-shimphy";
  473. reg = <0x8000 0x13c>;
  474. };
  475. };
  476. };
  477. };