bcm-hr2.dtsi 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. /*
  2. * BSD LICENSE
  3. *
  4. * Copyright(c) 2017 Broadcom. All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. *
  10. * * Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in
  14. * the documentation and/or other materials provided with the
  15. * distribution.
  16. * * Neither the name of Broadcom Corporation nor the names of its
  17. * contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. #include <dt-bindings/interrupt-controller/arm-gic.h>
  33. #include <dt-bindings/interrupt-controller/irq.h>
  34. / {
  35. compatible = "brcm,hr2";
  36. model = "Broadcom Hurricane 2 SoC";
  37. interrupt-parent = <&gic>;
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. cpus {
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. cpu0: cpu@0 {
  44. device_type = "cpu";
  45. compatible = "arm,cortex-a9";
  46. next-level-cache = <&L2>;
  47. reg = <0x0>;
  48. };
  49. };
  50. pmu {
  51. compatible = "arm,cortex-a9-pmu";
  52. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH
  53. GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
  54. interrupt-affinity = <&cpu0>;
  55. };
  56. mpcore@19000000 {
  57. compatible = "simple-bus";
  58. ranges = <0x00000000 0x19000000 0x00023000>;
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. a9pll: arm_clk@0 {
  62. #clock-cells = <0>;
  63. compatible = "brcm,hr2-armpll";
  64. clocks = <&osc>;
  65. reg = <0x0 0x1000>;
  66. };
  67. timer@20200 {
  68. compatible = "arm,cortex-a9-global-timer";
  69. reg = <0x20200 0x100>;
  70. interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
  71. clocks = <&periph_clk>;
  72. };
  73. twd-timer@20600 {
  74. compatible = "arm,cortex-a9-twd-timer";
  75. reg = <0x20600 0x20>;
  76. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) |
  77. IRQ_TYPE_EDGE_RISING)>;
  78. clocks = <&periph_clk>;
  79. };
  80. twd-watchdog@20620 {
  81. compatible = "arm,cortex-a9-twd-wdt";
  82. reg = <0x20620 0x20>;
  83. interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) |
  84. IRQ_TYPE_EDGE_RISING)>;
  85. clocks = <&periph_clk>;
  86. };
  87. gic: interrupt-controller@21000 {
  88. compatible = "arm,cortex-a9-gic";
  89. #interrupt-cells = <3>;
  90. #address-cells = <0>;
  91. interrupt-controller;
  92. reg = <0x21000 0x1000>,
  93. <0x20100 0x100>;
  94. };
  95. L2: cache-controller@22000 {
  96. compatible = "arm,pl310-cache";
  97. reg = <0x22000 0x1000>;
  98. cache-unified;
  99. cache-level = <2>;
  100. };
  101. };
  102. clocks {
  103. #address-cells = <1>;
  104. #size-cells = <1>;
  105. ranges;
  106. osc: oscillator {
  107. #clock-cells = <0>;
  108. compatible = "fixed-clock";
  109. clock-frequency = <25000000>;
  110. };
  111. periph_clk: periph_clk {
  112. #clock-cells = <0>;
  113. compatible = "fixed-factor-clock";
  114. clocks = <&a9pll>;
  115. clock-div = <2>;
  116. clock-mult = <1>;
  117. };
  118. };
  119. axi@18000000 {
  120. compatible = "simple-bus";
  121. ranges = <0x00000000 0x18000000 0x0011c40c>;
  122. #address-cells = <1>;
  123. #size-cells = <1>;
  124. uart0: serial@300 {
  125. compatible = "ns16550a";
  126. reg = <0x0300 0x100>;
  127. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
  128. clocks = <&osc>;
  129. status = "disabled";
  130. };
  131. uart1: serial@400 {
  132. compatible = "ns16550a";
  133. reg = <0x0400 0x100>;
  134. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
  135. clocks = <&osc>;
  136. status = "disabled";
  137. };
  138. dma@20000 {
  139. compatible = "arm,pl330", "arm,primecell";
  140. reg = <0x20000 0x1000>;
  141. interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
  142. <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>,
  143. <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
  144. <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>,
  145. <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
  146. <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
  147. <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
  148. <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
  149. <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
  150. #dma-cells = <1>;
  151. status = "disabled";
  152. };
  153. amac0: ethernet@22000 {
  154. compatible = "brcm,nsp-amac";
  155. reg = <0x22000 0x1000>,
  156. <0x110000 0x1000>;
  157. reg-names = "amac_base", "idm_base";
  158. interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>;
  159. status = "disabled";
  160. };
  161. nand_controller: nand-controller@26000 {
  162. compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1";
  163. reg = <0x26000 0x600>,
  164. <0x11b408 0x600>,
  165. <0x026f00 0x20>;
  166. reg-names = "nand", "iproc-idm", "iproc-ext";
  167. interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. brcm,nand-has-wp;
  171. };
  172. gpiob: gpio@30000 {
  173. compatible = "brcm,iproc-hr2-gpio", "brcm,iproc-gpio";
  174. reg = <0x30000 0x50>;
  175. #gpio-cells = <2>;
  176. gpio-controller;
  177. ngpios = <4>;
  178. interrupt-controller;
  179. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
  180. };
  181. pwm: pwm@31000 {
  182. compatible = "brcm,iproc-pwm";
  183. reg = <0x31000 0x28>;
  184. clocks = <&osc>;
  185. #pwm-cells = <3>;
  186. status = "disabled";
  187. };
  188. rng: rng@33000 {
  189. compatible = "brcm,bcm-nsp-rng";
  190. reg = <0x33000 0x14>;
  191. };
  192. qspi: spi@27200 {
  193. compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi";
  194. reg = <0x027200 0x184>,
  195. <0x027000 0x124>,
  196. <0x11c408 0x004>,
  197. <0x0273a0 0x01c>;
  198. reg-names = "mspi", "bspi", "intr_regs",
  199. "intr_status_reg";
  200. interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
  201. <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>,
  202. <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>,
  203. <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
  204. <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
  205. <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
  206. <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
  207. interrupt-names = "spi_lr_fullness_reached",
  208. "spi_lr_session_aborted",
  209. "spi_lr_impatient",
  210. "spi_lr_session_done",
  211. "spi_lr_overhead",
  212. "mspi_done",
  213. "mspi_halted";
  214. num-cs = <2>;
  215. #address-cells = <1>;
  216. #size-cells = <0>;
  217. /* partitions defined in board DTS */
  218. };
  219. ccbtimer0: timer@34000 {
  220. compatible = "arm,sp804";
  221. reg = <0x34000 0x1000>;
  222. interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
  223. <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
  224. };
  225. ccbtimer1: timer@35000 {
  226. compatible = "arm,sp804";
  227. reg = <0x35000 0x1000>;
  228. interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
  229. <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
  230. };
  231. i2c0: i2c@38000 {
  232. compatible = "brcm,iproc-i2c";
  233. reg = <0x38000 0x50>;
  234. #address-cells = <1>;
  235. #size-cells = <0>;
  236. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
  237. clock-frequency = <100000>;
  238. };
  239. watchdog: watchdog@39000 {
  240. compatible = "arm,sp805", "arm,primecell";
  241. reg = <0x39000 0x1000>;
  242. interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>;
  243. };
  244. i2c1: i2c@3b000 {
  245. compatible = "brcm,iproc-i2c";
  246. reg = <0x3b000 0x50>;
  247. #address-cells = <1>;
  248. #size-cells = <0>;
  249. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
  250. clock-frequency = <100000>;
  251. };
  252. };
  253. pflash: nor@20000000 {
  254. compatible = "cfi-flash", "jedec-flash";
  255. reg = <0x20000000 0x04000000>;
  256. status = "disabled";
  257. #address-cells = <1>;
  258. #size-cells = <1>;
  259. /* partitions defined in board DTS */
  260. };
  261. pcie0: pcie@18012000 {
  262. compatible = "brcm,iproc-pcie";
  263. reg = <0x18012000 0x1000>;
  264. #interrupt-cells = <1>;
  265. interrupt-map-mask = <0 0 0 0>;
  266. interrupt-map = <0 0 0 0 &gic GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
  267. linux,pci-domain = <0>;
  268. bus-range = <0x00 0xff>;
  269. #address-cells = <3>;
  270. #size-cells = <2>;
  271. device_type = "pci";
  272. /* Note: The HW does not support I/O resources. So,
  273. * only the memory resource range is being specified.
  274. */
  275. ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>;
  276. status = "disabled";
  277. msi-parent = <&msi0>;
  278. msi0: msi {
  279. compatible = "brcm,iproc-msi";
  280. msi-controller;
  281. interrupt-parent = <&gic>;
  282. interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>,
  283. <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>,
  284. <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>,
  285. <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>;
  286. brcm,pcie-msi-inten;
  287. };
  288. };
  289. pcie1: pcie@18013000 {
  290. compatible = "brcm,iproc-pcie";
  291. reg = <0x18013000 0x1000>;
  292. #interrupt-cells = <1>;
  293. interrupt-map-mask = <0 0 0 0>;
  294. interrupt-map = <0 0 0 0 &gic GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
  295. linux,pci-domain = <1>;
  296. bus-range = <0x00 0xff>;
  297. #address-cells = <3>;
  298. #size-cells = <2>;
  299. device_type = "pci";
  300. /* Note: The HW does not support I/O resources. So,
  301. * only the memory resource range is being specified.
  302. */
  303. ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>;
  304. status = "disabled";
  305. msi-parent = <&msi1>;
  306. msi1: msi {
  307. compatible = "brcm,iproc-msi";
  308. msi-controller;
  309. interrupt-parent = <&gic>;
  310. interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>,
  311. <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>,
  312. <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>,
  313. <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
  314. brcm,pcie-msi-inten;
  315. };
  316. };
  317. };