berlin4ct.dtsi 6.7 KB

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