bcm7445.dtsi 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <dt-bindings/interrupt-controller/arm-gic.h>
  3. / {
  4. #address-cells = <2>;
  5. #size-cells = <2>;
  6. model = "Broadcom STB (bcm7445)";
  7. compatible = "brcm,bcm7445", "brcm,brcmstb";
  8. interrupt-parent = <&gic>;
  9. chosen {
  10. bootargs = "console=ttyS0,115200 earlyprintk";
  11. };
  12. cpus {
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. cpu@0 {
  16. compatible = "brcm,brahma-b15";
  17. device_type = "cpu";
  18. enable-method = "brcm,brahma-b15";
  19. reg = <0>;
  20. };
  21. cpu@1 {
  22. compatible = "brcm,brahma-b15";
  23. device_type = "cpu";
  24. enable-method = "brcm,brahma-b15";
  25. reg = <1>;
  26. };
  27. cpu@2 {
  28. compatible = "brcm,brahma-b15";
  29. device_type = "cpu";
  30. enable-method = "brcm,brahma-b15";
  31. reg = <2>;
  32. };
  33. cpu@3 {
  34. compatible = "brcm,brahma-b15";
  35. device_type = "cpu";
  36. enable-method = "brcm,brahma-b15";
  37. reg = <3>;
  38. };
  39. };
  40. gic: interrupt-controller@ffd00000 {
  41. compatible = "brcm,brahma-b15-gic", "arm,cortex-a15-gic";
  42. reg = <0x00 0xffd01000 0x00 0x1000>,
  43. <0x00 0xffd02000 0x00 0x2000>,
  44. <0x00 0xffd04000 0x00 0x2000>,
  45. <0x00 0xffd06000 0x00 0x2000>;
  46. interrupt-controller;
  47. #interrupt-cells = <3>;
  48. };
  49. timer {
  50. compatible = "arm,armv7-timer";
  51. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(15) | IRQ_TYPE_LEVEL_LOW)>,
  52. <GIC_PPI 14 (GIC_CPU_MASK_RAW(15) | IRQ_TYPE_LEVEL_LOW)>,
  53. <GIC_PPI 11 (GIC_CPU_MASK_RAW(15) | IRQ_TYPE_LEVEL_LOW)>,
  54. <GIC_PPI 10 (GIC_CPU_MASK_RAW(15) | IRQ_TYPE_LEVEL_LOW)>;
  55. };
  56. rdb@f0000000 {
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. compatible = "simple-bus";
  60. ranges = <0 0x00 0xf0000000 0x1000000>;
  61. serial@40ab00 {
  62. compatible = "ns16550a";
  63. reg = <0x40ab00 0x20>;
  64. reg-shift = <2>;
  65. reg-io-width = <4>;
  66. interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
  67. clock-frequency = <81000000>;
  68. };
  69. sun_top_ctrl: syscon@404000 {
  70. compatible = "brcm,bcm7445-sun-top-ctrl",
  71. "syscon";
  72. reg = <0x404000 0x51c>;
  73. };
  74. hif_cpubiuctrl: syscon@3e2400 {
  75. compatible = "brcm,bcm7445-hif-cpubiuctrl",
  76. "syscon";
  77. reg = <0x3e2400 0x5b4>;
  78. };
  79. hif_continuation: syscon@452000 {
  80. compatible = "brcm,bcm7445-hif-continuation",
  81. "syscon";
  82. reg = <0x452000 0x100>;
  83. };
  84. irq0_intc: interrupt-controller@40a780 {
  85. compatible = "brcm,bcm7120-l2-intc";
  86. interrupt-parent = <&gic>;
  87. #interrupt-cells = <1>;
  88. reg = <0x40a780 0x8>;
  89. interrupt-controller;
  90. interrupts = <GIC_SPI 0x45 0x0>,
  91. <GIC_SPI 0x43 0x0>;
  92. brcm,int-map-mask = <0x25c>, <0x7000000>;
  93. brcm,int-fwd-mask = <0x70000>;
  94. };
  95. irq0_aon_intc: interrupt-controller@417280 {
  96. compatible = "brcm,bcm7120-l2-intc";
  97. reg = <0x417280 0x8>;
  98. interrupt-parent = <&gic>;
  99. #interrupt-cells = <1>;
  100. interrupt-controller;
  101. interrupts = <GIC_SPI 0x46 0x0>,
  102. <GIC_SPI 0x44 0x0>,
  103. <GIC_SPI 0x49 0x0>;
  104. brcm,int-map-mask = <0x1e3 0x18000000 0x100000>;
  105. brcm,int-fwd-mask = <0x0>;
  106. brcm,irq-can-wake;
  107. };
  108. hif_intr2_intc: interrupt-controller@3e1000 {
  109. compatible = "brcm,l2-intc";
  110. reg = <0x3e1000 0x30>;
  111. interrupt-controller;
  112. #interrupt-cells = <1>;
  113. interrupts = <GIC_SPI 0x20 0x0>;
  114. interrupt-parent = <&gic>;
  115. interrupt-names = "hif";
  116. };
  117. aon_pm_l2_intc: interrupt-controller@410640 {
  118. compatible = "brcm,l2-intc";
  119. reg = <0x410640 0x30>;
  120. interrupt-controller;
  121. #interrupt-cells = <1>;
  122. interrupts = <GIC_SPI 0x40 0x0>;
  123. interrupt-parent = <&gic>;
  124. brcm,irq-can-wake;
  125. };
  126. aon-ctrl@410000 {
  127. compatible = "brcm,brcmstb-aon-ctrl";
  128. reg = <0x410000 0x200>, <0x410200 0x400>;
  129. reg-names = "aon-ctrl", "aon-sram";
  130. };
  131. nand_controller: nand-controller@3e2800 {
  132. status = "disabled";
  133. #address-cells = <1>;
  134. #size-cells = <0>;
  135. compatible = "brcm,brcmnand-v7.1", "brcm,brcmnand";
  136. reg-names = "nand", "flash-dma";
  137. reg = <0x3e2800 0x600>, <0x3e3000 0x2c>;
  138. interrupt-parent = <&hif_intr2_intc>;
  139. interrupts = <24>, <4>;
  140. interrupt-names = "nand_ctlrdy", "flash_dma_done";
  141. };
  142. sata@45a000 {
  143. compatible = "brcm,bcm7445-ahci", "brcm,sata3-ahci";
  144. reg-names = "ahci", "top-ctrl";
  145. reg = <0x45a000 0xa9c>, <0x458040 0x24>;
  146. interrupts = <GIC_SPI 30 0>;
  147. #address-cells = <1>;
  148. #size-cells = <0>;
  149. sata0: sata-port@0 {
  150. reg = <0>;
  151. phys = <&sata_phy0>;
  152. };
  153. sata1: sata-port@1 {
  154. reg = <1>;
  155. phys = <&sata_phy1>;
  156. };
  157. };
  158. sata_phy: sata-phy@458100 {
  159. compatible = "brcm,bcm7445-sata-phy", "brcm,phy-sata3";
  160. reg = <0x458100 0x1f00>;
  161. reg-names = "phy";
  162. #address-cells = <0x1>;
  163. #size-cells = <0x0>;
  164. sata_phy0: sata-phy@0 {
  165. reg = <0>;
  166. #phy-cells = <0>;
  167. };
  168. sata_phy1: sata-phy@1 {
  169. reg = <1>;
  170. #phy-cells = <0>;
  171. };
  172. };
  173. upg_gio: gpio@40a700 {
  174. compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";
  175. reg = <0x40a700 0x80>;
  176. #gpio-cells = <2>;
  177. #interrupt-cells = <2>;
  178. gpio-controller;
  179. interrupt-controller;
  180. interrupt-parent = <&irq0_intc>;
  181. interrupts = <6>;
  182. brcm,gpio-bank-widths = <32 32 32 24>;
  183. };
  184. upg_gio_aon: gpio@4172c0 {
  185. compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";
  186. reg = <0x4172c0 0x40>;
  187. #gpio-cells = <2>;
  188. #interrupt-cells = <2>;
  189. gpio-controller;
  190. interrupt-controller;
  191. interrupts-extended = <&irq0_aon_intc 0x6>,
  192. <&aon_pm_l2_intc 0x5>;
  193. wakeup-source;
  194. brcm,gpio-bank-widths = <18 4>;
  195. };
  196. };
  197. memory_controllers@f1100000 {
  198. compatible = "simple-bus";
  199. ranges = <0x0 0x0 0xf1100000 0x200000>;
  200. #address-cells = <1>;
  201. #size-cells = <1>;
  202. memc@0 {
  203. compatible = "brcm,brcmstb-memc", "simple-bus";
  204. #address-cells = <1>;
  205. #size-cells = <1>;
  206. ranges = <0x0 0x0 0x80000>;
  207. memc-ddr@2000 {
  208. compatible = "brcm,brcmstb-memc-ddr";
  209. reg = <0x2000 0x800>;
  210. };
  211. ddr-phy@6000 {
  212. compatible = "brcm,brcmstb-ddr-phy-v240.1";
  213. reg = <0x6000 0x21c>;
  214. };
  215. shimphy@8000 {
  216. compatible = "brcm,brcmstb-ddr-shimphy-v1.0";
  217. reg = <0x8000 0xe4>;
  218. };
  219. };
  220. memc@80000 {
  221. compatible = "brcm,brcmstb-memc", "simple-bus";
  222. #address-cells = <1>;
  223. #size-cells = <1>;
  224. ranges = <0x0 0x80000 0x80000>;
  225. memc-ddr@2000 {
  226. compatible = "brcm,brcmstb-memc-ddr";
  227. reg = <0x2000 0x800>;
  228. };
  229. ddr-phy@6000 {
  230. compatible = "brcm,brcmstb-ddr-phy-v240.1";
  231. reg = <0x6000 0x21c>;
  232. };
  233. shimphy@8000 {
  234. compatible = "brcm,brcmstb-ddr-shimphy-v1.0";
  235. reg = <0x8000 0xe4>;
  236. };
  237. };
  238. memc@100000 {
  239. compatible = "brcm,brcmstb-memc", "simple-bus";
  240. #address-cells = <1>;
  241. #size-cells = <1>;
  242. ranges = <0x0 0x100000 0x80000>;
  243. memc-ddr@2000 {
  244. compatible = "brcm,brcmstb-memc-ddr";
  245. reg = <0x2000 0x800>;
  246. };
  247. ddr-phy@6000 {
  248. compatible = "brcm,brcmstb-ddr-phy-v240.1";
  249. reg = <0x6000 0x21c>;
  250. };
  251. shimphy@8000 {
  252. compatible = "brcm,brcmstb-ddr-shimphy-v1.0";
  253. reg = <0x8000 0xe4>;
  254. };
  255. };
  256. };
  257. sram@ffe00000 {
  258. compatible = "brcm,boot-sram", "mmio-sram";
  259. reg = <0x0 0xffe00000 0x0 0x10000>;
  260. };
  261. smpboot {
  262. compatible = "brcm,brcmstb-smpboot";
  263. syscon-cpu = <&hif_cpubiuctrl 0x88 0x178>;
  264. syscon-cont = <&hif_continuation>;
  265. };
  266. reboot {
  267. compatible = "brcm,brcmstb-reboot";
  268. syscon = <&sun_top_ctrl 0x304 0x308>;
  269. };
  270. };