s700.dtsi 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2017 Andreas Färber
  4. */
  5. #include <dt-bindings/clock/actions,s700-cmu.h>
  6. #include <dt-bindings/interrupt-controller/arm-gic.h>
  7. #include <dt-bindings/power/owl-s700-powergate.h>
  8. #include <dt-bindings/reset/actions,s700-reset.h>
  9. / {
  10. compatible = "actions,s700";
  11. interrupt-parent = <&gic>;
  12. #address-cells = <2>;
  13. #size-cells = <2>;
  14. cpus {
  15. #address-cells = <2>;
  16. #size-cells = <0>;
  17. cpu0: cpu@0 {
  18. device_type = "cpu";
  19. compatible = "arm,cortex-a53";
  20. reg = <0x0 0x0>;
  21. enable-method = "psci";
  22. };
  23. cpu1: cpu@1 {
  24. device_type = "cpu";
  25. compatible = "arm,cortex-a53";
  26. reg = <0x0 0x1>;
  27. enable-method = "psci";
  28. };
  29. cpu2: cpu@2 {
  30. device_type = "cpu";
  31. compatible = "arm,cortex-a53";
  32. reg = <0x0 0x2>;
  33. enable-method = "psci";
  34. };
  35. cpu3: cpu@3 {
  36. device_type = "cpu";
  37. compatible = "arm,cortex-a53";
  38. reg = <0x0 0x3>;
  39. enable-method = "psci";
  40. };
  41. };
  42. reserved-memory {
  43. #address-cells = <2>;
  44. #size-cells = <2>;
  45. ranges;
  46. secmon@1f000000 {
  47. reg = <0x0 0x1f000000 0x0 0x1000000>;
  48. no-map;
  49. };
  50. };
  51. psci {
  52. compatible = "arm,psci-0.2";
  53. method = "smc";
  54. };
  55. arm-pmu {
  56. compatible = "arm,cortex-a53-pmu";
  57. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
  58. <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
  59. <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
  60. <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  61. interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
  62. };
  63. timer {
  64. compatible = "arm,armv8-timer";
  65. interrupts = <GIC_PPI 13
  66. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  67. <GIC_PPI 14
  68. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  69. <GIC_PPI 11
  70. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  71. <GIC_PPI 10
  72. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  73. };
  74. hosc: hosc {
  75. compatible = "fixed-clock";
  76. clock-frequency = <24000000>;
  77. #clock-cells = <0>;
  78. };
  79. losc: losc {
  80. compatible = "fixed-clock";
  81. clock-frequency = <32768>;
  82. #clock-cells = <0>;
  83. };
  84. soc {
  85. compatible = "simple-bus";
  86. #address-cells = <2>;
  87. #size-cells = <2>;
  88. ranges;
  89. gic: interrupt-controller@e00f1000 {
  90. compatible = "arm,gic-400";
  91. reg = <0x0 0xe00f1000 0x0 0x1000>,
  92. <0x0 0xe00f2000 0x0 0x2000>,
  93. <0x0 0xe00f4000 0x0 0x2000>,
  94. <0x0 0xe00f6000 0x0 0x2000>;
  95. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  96. interrupt-controller;
  97. #interrupt-cells = <3>;
  98. };
  99. uart0: serial@e0120000 {
  100. compatible = "actions,s900-uart", "actions,owl-uart";
  101. reg = <0x0 0xe0120000 0x0 0x2000>;
  102. clocks = <&cmu CLK_UART0>;
  103. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  104. status = "disabled";
  105. };
  106. uart1: serial@e0122000 {
  107. compatible = "actions,s900-uart", "actions,owl-uart";
  108. reg = <0x0 0xe0122000 0x0 0x2000>;
  109. clocks = <&cmu CLK_UART1>;
  110. interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
  111. status = "disabled";
  112. };
  113. uart2: serial@e0124000 {
  114. compatible = "actions,s900-uart", "actions,owl-uart";
  115. reg = <0x0 0xe0124000 0x0 0x2000>;
  116. clocks = <&cmu CLK_UART2>;
  117. interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
  118. status = "disabled";
  119. };
  120. uart3: serial@e0126000 {
  121. compatible = "actions,s900-uart", "actions,owl-uart";
  122. reg = <0x0 0xe0126000 0x0 0x2000>;
  123. clocks = <&cmu CLK_UART3>;
  124. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  125. status = "disabled";
  126. };
  127. uart4: serial@e0128000 {
  128. compatible = "actions,s900-uart", "actions,owl-uart";
  129. reg = <0x0 0xe0128000 0x0 0x2000>;
  130. clocks = <&cmu CLK_UART4>;
  131. interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
  132. status = "disabled";
  133. };
  134. uart5: serial@e012a000 {
  135. compatible = "actions,s900-uart", "actions,owl-uart";
  136. reg = <0x0 0xe012a000 0x0 0x2000>;
  137. clocks = <&cmu CLK_UART5>;
  138. interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
  139. status = "disabled";
  140. };
  141. uart6: serial@e012c000 {
  142. compatible = "actions,s900-uart", "actions,owl-uart";
  143. reg = <0x0 0xe012c000 0x0 0x2000>;
  144. clocks = <&cmu CLK_UART6>;
  145. interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
  146. status = "disabled";
  147. };
  148. cmu: clock-controller@e0168000 {
  149. compatible = "actions,s700-cmu";
  150. reg = <0x0 0xe0168000 0x0 0x1000>;
  151. clocks = <&hosc>, <&losc>;
  152. #clock-cells = <1>;
  153. #reset-cells = <1>;
  154. };
  155. i2c0: i2c@e0170000 {
  156. compatible = "actions,s700-i2c";
  157. reg = <0 0xe0170000 0 0x1000>;
  158. clocks = <&cmu CLK_I2C0>;
  159. interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
  160. #address-cells = <1>;
  161. #size-cells = <0>;
  162. status = "disabled";
  163. };
  164. i2c1: i2c@e0174000 {
  165. compatible = "actions,s700-i2c";
  166. reg = <0 0xe0174000 0 0x1000>;
  167. clocks = <&cmu CLK_I2C1>;
  168. interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
  169. #address-cells = <1>;
  170. #size-cells = <0>;
  171. status = "disabled";
  172. };
  173. i2c2: i2c@e0178000 {
  174. compatible = "actions,s700-i2c";
  175. reg = <0 0xe0178000 0 0x1000>;
  176. clocks = <&cmu CLK_I2C2>;
  177. interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
  178. #address-cells = <1>;
  179. #size-cells = <0>;
  180. status = "disabled";
  181. };
  182. i2c3: i2c@e017c000 {
  183. compatible = "actions,s700-i2c";
  184. reg = <0 0xe017c000 0 0x1000>;
  185. clocks = <&cmu CLK_I2C3>;
  186. interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
  187. #address-cells = <1>;
  188. #size-cells = <0>;
  189. status = "disabled";
  190. };
  191. sps: power-controller@e01b0100 {
  192. compatible = "actions,s700-sps";
  193. reg = <0x0 0xe01b0100 0x0 0x100>;
  194. #power-domain-cells = <1>;
  195. };
  196. timer: timer@e024c000 {
  197. compatible = "actions,s700-timer";
  198. reg = <0x0 0xe024c000 0x0 0x4000>;
  199. interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
  200. interrupt-names = "timer1";
  201. };
  202. pinctrl: pinctrl@e01b0000 {
  203. compatible = "actions,s700-pinctrl";
  204. reg = <0x0 0xe01b0000 0x0 0x100>;
  205. clocks = <&cmu CLK_GPIO>;
  206. gpio-controller;
  207. gpio-ranges = <&pinctrl 0 0 136>;
  208. #gpio-cells = <2>;
  209. interrupt-controller;
  210. #interrupt-cells = <2>;
  211. interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>,
  212. <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>,
  213. <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>,
  214. <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>,
  215. <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
  216. };
  217. dma: dma-controller@e0230000 {
  218. compatible = "actions,s700-dma";
  219. reg = <0x0 0xe0230000 0x0 0x1000>;
  220. interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>,
  221. <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
  222. <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
  223. <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
  224. #dma-cells = <1>;
  225. dma-channels = <10>;
  226. dma-requests = <44>;
  227. clocks = <&cmu CLK_DMAC>;
  228. power-domains = <&sps S700_PD_DMA>;
  229. };
  230. };
  231. };