berlin4ct.dtsi 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Copyright (C) 2015 Marvell Technology Group Ltd.
  4. *
  5. * Author: Jisheng Zhang <jszhang@marvell.com>
  6. */
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. / {
  9. compatible = "marvell,berlin4ct", "marvell,berlin";
  10. interrupt-parent = <&gic>;
  11. #address-cells = <2>;
  12. #size-cells = <2>;
  13. aliases {
  14. serial0 = &uart0;
  15. };
  16. psci {
  17. compatible = "arm,psci-1.0", "arm,psci-0.2";
  18. method = "smc";
  19. };
  20. cpus {
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. cpu0: cpu@0 {
  24. compatible = "arm,cortex-a53", "arm,armv8";
  25. device_type = "cpu";
  26. reg = <0x0>;
  27. enable-method = "psci";
  28. next-level-cache = <&l2>;
  29. cpu-idle-states = <&CPU_SLEEP_0>;
  30. };
  31. cpu1: cpu@1 {
  32. compatible = "arm,cortex-a53", "arm,armv8";
  33. device_type = "cpu";
  34. reg = <0x1>;
  35. enable-method = "psci";
  36. next-level-cache = <&l2>;
  37. cpu-idle-states = <&CPU_SLEEP_0>;
  38. };
  39. cpu2: cpu@2 {
  40. compatible = "arm,cortex-a53", "arm,armv8";
  41. device_type = "cpu";
  42. reg = <0x2>;
  43. enable-method = "psci";
  44. next-level-cache = <&l2>;
  45. cpu-idle-states = <&CPU_SLEEP_0>;
  46. };
  47. cpu3: cpu@3 {
  48. compatible = "arm,cortex-a53", "arm,armv8";
  49. device_type = "cpu";
  50. reg = <0x3>;
  51. enable-method = "psci";
  52. next-level-cache = <&l2>;
  53. cpu-idle-states = <&CPU_SLEEP_0>;
  54. };
  55. l2: cache {
  56. compatible = "cache";
  57. };
  58. idle-states {
  59. entry-method = "psci";
  60. CPU_SLEEP_0: cpu-sleep-0 {
  61. compatible = "arm,idle-state";
  62. local-timer-stop;
  63. arm,psci-suspend-param = <0x0010000>;
  64. entry-latency-us = <75>;
  65. exit-latency-us = <155>;
  66. min-residency-us = <1000>;
  67. };
  68. };
  69. };
  70. osc: osc {
  71. compatible = "fixed-clock";
  72. #clock-cells = <0>;
  73. clock-frequency = <25000000>;
  74. };
  75. pmu {
  76. compatible = "arm,cortex-a53-pmu", "arm,armv8-pmuv3";
  77. interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
  78. <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
  79. <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
  80. <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  81. interrupt-affinity = <&cpu0>,
  82. <&cpu1>,
  83. <&cpu2>,
  84. <&cpu3>;
  85. };
  86. timer {
  87. compatible = "arm,armv8-timer";
  88. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  89. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  90. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  91. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  92. };
  93. soc@f7000000 {
  94. compatible = "simple-bus";
  95. #address-cells = <1>;
  96. #size-cells = <1>;
  97. ranges = <0 0 0xf7000000 0x1000000>;
  98. gic: interrupt-controller@901000 {
  99. compatible = "arm,gic-400";
  100. #interrupt-cells = <3>;
  101. interrupt-controller;
  102. reg = <0x901000 0x1000>,
  103. <0x902000 0x2000>,
  104. <0x904000 0x2000>,
  105. <0x906000 0x2000>;
  106. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  107. };
  108. apb@e80000 {
  109. compatible = "simple-bus";
  110. #address-cells = <1>;
  111. #size-cells = <1>;
  112. ranges = <0 0xe80000 0x10000>;
  113. interrupt-parent = <&aic>;
  114. gpio0: gpio@400 {
  115. compatible = "snps,dw-apb-gpio";
  116. reg = <0x0400 0x400>;
  117. #address-cells = <1>;
  118. #size-cells = <0>;
  119. porta: gpio-port@0 {
  120. compatible = "snps,dw-apb-gpio-port";
  121. gpio-controller;
  122. #gpio-cells = <2>;
  123. snps,nr-gpios = <32>;
  124. reg = <0>;
  125. interrupt-controller;
  126. #interrupt-cells = <2>;
  127. interrupts = <0>;
  128. };
  129. };
  130. gpio1: gpio@800 {
  131. compatible = "snps,dw-apb-gpio";
  132. reg = <0x0800 0x400>;
  133. #address-cells = <1>;
  134. #size-cells = <0>;
  135. portb: gpio-port@1 {
  136. compatible = "snps,dw-apb-gpio-port";
  137. gpio-controller;
  138. #gpio-cells = <2>;
  139. snps,nr-gpios = <32>;
  140. reg = <0>;
  141. interrupt-controller;
  142. #interrupt-cells = <2>;
  143. interrupts = <1>;
  144. };
  145. };
  146. gpio2: gpio@c00 {
  147. compatible = "snps,dw-apb-gpio";
  148. reg = <0x0c00 0x400>;
  149. #address-cells = <1>;
  150. #size-cells = <0>;
  151. portc: gpio-port@2 {
  152. compatible = "snps,dw-apb-gpio-port";
  153. gpio-controller;
  154. #gpio-cells = <2>;
  155. snps,nr-gpios = <32>;
  156. reg = <0>;
  157. interrupt-controller;
  158. #interrupt-cells = <2>;
  159. interrupts = <2>;
  160. };
  161. };
  162. gpio3: gpio@1000 {
  163. compatible = "snps,dw-apb-gpio";
  164. reg = <0x1000 0x400>;
  165. #address-cells = <1>;
  166. #size-cells = <0>;
  167. portd: gpio-port@3 {
  168. compatible = "snps,dw-apb-gpio-port";
  169. gpio-controller;
  170. #gpio-cells = <2>;
  171. snps,nr-gpios = <32>;
  172. reg = <0>;
  173. interrupt-controller;
  174. #interrupt-cells = <2>;
  175. interrupts = <3>;
  176. };
  177. };
  178. aic: interrupt-controller@3800 {
  179. compatible = "snps,dw-apb-ictl";
  180. reg = <0x3800 0x30>;
  181. interrupt-controller;
  182. #interrupt-cells = <1>;
  183. interrupt-parent = <&gic>;
  184. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
  185. };
  186. };
  187. soc_pinctrl: pin-controller@ea8000 {
  188. compatible = "marvell,berlin4ct-soc-pinctrl";
  189. reg = <0xea8000 0x14>;
  190. };
  191. avio_pinctrl: pin-controller@ea8400 {
  192. compatible = "marvell,berlin4ct-avio-pinctrl";
  193. reg = <0xea8400 0x8>;
  194. };
  195. apb@fc0000 {
  196. compatible = "simple-bus";
  197. #address-cells = <1>;
  198. #size-cells = <1>;
  199. ranges = <0 0xfc0000 0x10000>;
  200. interrupt-parent = <&sic>;
  201. sic: interrupt-controller@1000 {
  202. compatible = "snps,dw-apb-ictl";
  203. reg = <0x1000 0x30>;
  204. interrupt-controller;
  205. #interrupt-cells = <1>;
  206. interrupt-parent = <&gic>;
  207. interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
  208. };
  209. wdt0: watchdog@3000 {
  210. compatible = "snps,dw-wdt";
  211. reg = <0x3000 0x100>;
  212. clocks = <&osc>;
  213. interrupts = <0>;
  214. };
  215. wdt1: watchdog@4000 {
  216. compatible = "snps,dw-wdt";
  217. reg = <0x4000 0x100>;
  218. clocks = <&osc>;
  219. interrupts = <1>;
  220. };
  221. wdt2: watchdog@5000 {
  222. compatible = "snps,dw-wdt";
  223. reg = <0x5000 0x100>;
  224. clocks = <&osc>;
  225. interrupts = <2>;
  226. };
  227. sm_gpio0: gpio@8000 {
  228. compatible = "snps,dw-apb-gpio";
  229. reg = <0x8000 0x400>;
  230. #address-cells = <1>;
  231. #size-cells = <0>;
  232. porte: gpio-port@4 {
  233. compatible = "snps,dw-apb-gpio-port";
  234. gpio-controller;
  235. #gpio-cells = <2>;
  236. snps,nr-gpios = <32>;
  237. reg = <0>;
  238. };
  239. };
  240. sm_gpio1: gpio@9000 {
  241. compatible = "snps,dw-apb-gpio";
  242. reg = <0x9000 0x400>;
  243. #address-cells = <1>;
  244. #size-cells = <0>;
  245. portf: gpio-port@5 {
  246. compatible = "snps,dw-apb-gpio-port";
  247. gpio-controller;
  248. #gpio-cells = <2>;
  249. snps,nr-gpios = <32>;
  250. reg = <0>;
  251. };
  252. };
  253. uart0: uart@d000 {
  254. compatible = "snps,dw-apb-uart";
  255. reg = <0xd000 0x100>;
  256. interrupts = <8>;
  257. clocks = <&osc>;
  258. reg-shift = <2>;
  259. status = "disabled";
  260. pinctrl-0 = <&uart0_pmux>;
  261. pinctrl-names = "default";
  262. };
  263. };
  264. system_pinctrl: pin-controller@fe2200 {
  265. compatible = "marvell,berlin4ct-system-pinctrl";
  266. reg = <0xfe2200 0xc>;
  267. uart0_pmux: uart0-pmux {
  268. groups = "SM_URT0_TXD", "SM_URT0_RXD";
  269. function = "uart0";
  270. };
  271. };
  272. };
  273. };