berlin2cd.dtsi 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. /*
  2. * Device Tree Include file for Marvell Armada 1500-mini (Berlin BG2CD) SoC
  3. *
  4. * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
  5. *
  6. * based on GPL'ed 2.6 kernel sources
  7. * (c) Marvell International Ltd.
  8. *
  9. * This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. */
  13. #include "skeleton.dtsi"
  14. #include <dt-bindings/clock/berlin2.h>
  15. #include <dt-bindings/interrupt-controller/arm-gic.h>
  16. / {
  17. model = "Marvell Armada 1500-mini (BG2CD) SoC";
  18. compatible = "marvell,berlin2cd", "marvell,berlin";
  19. cpus {
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. cpu@0 {
  23. compatible = "arm,cortex-a9";
  24. device_type = "cpu";
  25. next-level-cache = <&l2>;
  26. reg = <0>;
  27. };
  28. };
  29. refclk: oscillator {
  30. compatible = "fixed-clock";
  31. #clock-cells = <0>;
  32. clock-frequency = <25000000>;
  33. };
  34. soc {
  35. compatible = "simple-bus";
  36. #address-cells = <1>;
  37. #size-cells = <1>;
  38. interrupt-parent = <&gic>;
  39. ranges = <0 0xf7000000 0x1000000>;
  40. l2: l2-cache-controller@ac0000 {
  41. compatible = "arm,pl310-cache";
  42. reg = <0xac0000 0x1000>;
  43. cache-unified;
  44. cache-level = <2>;
  45. };
  46. gic: interrupt-controller@ad1000 {
  47. compatible = "arm,cortex-a9-gic";
  48. reg = <0xad1000 0x1000>, <0xad0100 0x0100>;
  49. interrupt-controller;
  50. #interrupt-cells = <3>;
  51. };
  52. local-timer@ad0600 {
  53. compatible = "arm,cortex-a9-twd-timer";
  54. reg = <0xad0600 0x20>;
  55. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>;
  56. clocks = <&chip CLKID_TWD>;
  57. };
  58. apb@e80000 {
  59. compatible = "simple-bus";
  60. #address-cells = <1>;
  61. #size-cells = <1>;
  62. ranges = <0 0xe80000 0x10000>;
  63. interrupt-parent = <&aic>;
  64. gpio0: gpio@0400 {
  65. compatible = "snps,dw-apb-gpio";
  66. reg = <0x0400 0x400>;
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. porta: gpio-port@0 {
  70. compatible = "snps,dw-apb-gpio-port";
  71. gpio-controller;
  72. #gpio-cells = <2>;
  73. snps,nr-gpios = <8>;
  74. reg = <0>;
  75. interrupt-controller;
  76. #interrupt-cells = <2>;
  77. interrupts = <0>;
  78. };
  79. };
  80. gpio1: gpio@0800 {
  81. compatible = "snps,dw-apb-gpio";
  82. reg = <0x0800 0x400>;
  83. #address-cells = <1>;
  84. #size-cells = <0>;
  85. portb: gpio-port@1 {
  86. compatible = "snps,dw-apb-gpio-port";
  87. gpio-controller;
  88. #gpio-cells = <2>;
  89. snps,nr-gpios = <8>;
  90. reg = <0>;
  91. interrupt-controller;
  92. #interrupt-cells = <2>;
  93. interrupts = <1>;
  94. };
  95. };
  96. gpio2: gpio@0c00 {
  97. compatible = "snps,dw-apb-gpio";
  98. reg = <0x0c00 0x400>;
  99. #address-cells = <1>;
  100. #size-cells = <0>;
  101. portc: gpio-port@2 {
  102. compatible = "snps,dw-apb-gpio-port";
  103. gpio-controller;
  104. #gpio-cells = <2>;
  105. snps,nr-gpios = <8>;
  106. reg = <0>;
  107. interrupt-controller;
  108. #interrupt-cells = <2>;
  109. interrupts = <2>;
  110. };
  111. };
  112. gpio3: gpio@1000 {
  113. compatible = "snps,dw-apb-gpio";
  114. reg = <0x1000 0x400>;
  115. #address-cells = <1>;
  116. #size-cells = <0>;
  117. portd: gpio-port@3 {
  118. compatible = "snps,dw-apb-gpio-port";
  119. gpio-controller;
  120. #gpio-cells = <2>;
  121. snps,nr-gpios = <8>;
  122. reg = <0>;
  123. interrupt-controller;
  124. #interrupt-cells = <2>;
  125. interrupts = <3>;
  126. };
  127. };
  128. timer0: timer@2c00 {
  129. compatible = "snps,dw-apb-timer";
  130. reg = <0x2c00 0x14>;
  131. interrupts = <8>;
  132. clocks = <&chip CLKID_CFG>;
  133. clock-names = "timer";
  134. status = "okay";
  135. };
  136. timer1: timer@2c14 {
  137. compatible = "snps,dw-apb-timer";
  138. reg = <0x2c14 0x14>;
  139. interrupts = <9>;
  140. clocks = <&chip CLKID_CFG>;
  141. clock-names = "timer";
  142. status = "okay";
  143. };
  144. timer2: timer@2c28 {
  145. compatible = "snps,dw-apb-timer";
  146. reg = <0x2c28 0x14>;
  147. interrupts = <10>;
  148. clocks = <&chip CLKID_CFG>;
  149. clock-names = "timer";
  150. status = "disabled";
  151. };
  152. timer3: timer@2c3c {
  153. compatible = "snps,dw-apb-timer";
  154. reg = <0x2c3c 0x14>;
  155. interrupts = <11>;
  156. clocks = <&chip CLKID_CFG>;
  157. clock-names = "timer";
  158. status = "disabled";
  159. };
  160. timer4: timer@2c50 {
  161. compatible = "snps,dw-apb-timer";
  162. reg = <0x2c50 0x14>;
  163. interrupts = <12>;
  164. clocks = <&chip CLKID_CFG>;
  165. clock-names = "timer";
  166. status = "disabled";
  167. };
  168. timer5: timer@2c64 {
  169. compatible = "snps,dw-apb-timer";
  170. reg = <0x2c64 0x14>;
  171. interrupts = <13>;
  172. clocks = <&chip CLKID_CFG>;
  173. clock-names = "timer";
  174. status = "disabled";
  175. };
  176. timer6: timer@2c78 {
  177. compatible = "snps,dw-apb-timer";
  178. reg = <0x2c78 0x14>;
  179. interrupts = <14>;
  180. clocks = <&chip CLKID_CFG>;
  181. clock-names = "timer";
  182. status = "disabled";
  183. };
  184. timer7: timer@2c8c {
  185. compatible = "snps,dw-apb-timer";
  186. reg = <0x2c8c 0x14>;
  187. interrupts = <15>;
  188. clocks = <&chip CLKID_CFG>;
  189. clock-names = "timer";
  190. status = "disabled";
  191. };
  192. aic: interrupt-controller@3000 {
  193. compatible = "snps,dw-apb-ictl";
  194. reg = <0x3000 0xc00>;
  195. interrupt-controller;
  196. #interrupt-cells = <1>;
  197. interrupt-parent = <&gic>;
  198. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  199. };
  200. };
  201. chip: chip-control@ea0000 {
  202. compatible = "marvell,berlin2cd-chip-ctrl";
  203. #clock-cells = <1>;
  204. reg = <0xea0000 0x400>;
  205. clocks = <&refclk>;
  206. clock-names = "refclk";
  207. uart0_pmux: uart0-pmux {
  208. groups = "G6";
  209. function = "uart0";
  210. };
  211. };
  212. apb@fc0000 {
  213. compatible = "simple-bus";
  214. #address-cells = <1>;
  215. #size-cells = <1>;
  216. ranges = <0 0xfc0000 0x10000>;
  217. interrupt-parent = <&sic>;
  218. sm_gpio1: gpio@5000 {
  219. compatible = "snps,dw-apb-gpio";
  220. reg = <0x5000 0x400>;
  221. #address-cells = <1>;
  222. #size-cells = <0>;
  223. portf: gpio-port@5 {
  224. compatible = "snps,dw-apb-gpio-port";
  225. gpio-controller;
  226. #gpio-cells = <2>;
  227. snps,nr-gpios = <8>;
  228. reg = <0>;
  229. };
  230. };
  231. sm_gpio0: gpio@c000 {
  232. compatible = "snps,dw-apb-gpio";
  233. reg = <0xc000 0x400>;
  234. #address-cells = <1>;
  235. #size-cells = <0>;
  236. porte: gpio-port@4 {
  237. compatible = "snps,dw-apb-gpio-port";
  238. gpio-controller;
  239. #gpio-cells = <2>;
  240. snps,nr-gpios = <8>;
  241. reg = <0>;
  242. };
  243. };
  244. uart0: serial@9000 {
  245. compatible = "snps,dw-apb-uart";
  246. reg = <0x9000 0x100>;
  247. reg-shift = <2>;
  248. reg-io-width = <1>;
  249. interrupts = <8>;
  250. clocks = <&refclk>;
  251. pinctrl-0 = <&uart0_pmux>;
  252. pinctrl-names = "default";
  253. status = "disabled";
  254. };
  255. uart1: serial@a000 {
  256. compatible = "snps,dw-apb-uart";
  257. reg = <0xa000 0x100>;
  258. reg-shift = <2>;
  259. reg-io-width = <1>;
  260. interrupts = <9>;
  261. clocks = <&refclk>;
  262. status = "disabled";
  263. };
  264. sysctrl: system-controller@d000 {
  265. compatible = "marvell,berlin2cd-system-ctrl";
  266. reg = <0xd000 0x100>;
  267. };
  268. sic: interrupt-controller@e000 {
  269. compatible = "snps,dw-apb-ictl";
  270. reg = <0xe000 0x400>;
  271. interrupt-controller;
  272. #interrupt-cells = <1>;
  273. interrupt-parent = <&gic>;
  274. interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
  275. };
  276. };
  277. };
  278. };