ums9620.dtsi 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Unisoc UMS9620 DTS file
  4. *
  5. * Copyright (C) 2023, Unisoc Inc.
  6. */
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. / {
  9. interrupt-parent = <&gic>;
  10. #address-cells = <2>;
  11. #size-cells = <2>;
  12. cpus {
  13. #address-cells = <2>;
  14. #size-cells = <0>;
  15. cpu-map {
  16. cluster0 {
  17. core0 {
  18. cpu = <&CPU0>;
  19. };
  20. core1 {
  21. cpu = <&CPU1>;
  22. };
  23. core2 {
  24. cpu = <&CPU2>;
  25. };
  26. core3 {
  27. cpu = <&CPU3>;
  28. };
  29. core4 {
  30. cpu = <&CPU4>;
  31. };
  32. core5 {
  33. cpu = <&CPU5>;
  34. };
  35. core6 {
  36. cpu = <&CPU6>;
  37. };
  38. core7 {
  39. cpu = <&CPU7>;
  40. };
  41. };
  42. };
  43. CPU0: cpu@0 {
  44. device_type = "cpu";
  45. compatible = "arm,cortex-a55";
  46. reg = <0x0 0x0>;
  47. enable-method = "psci";
  48. cpu-idle-states = <&LIT_CORE_PD>;
  49. };
  50. CPU1: cpu@100 {
  51. device_type = "cpu";
  52. compatible = "arm,cortex-a55";
  53. reg = <0x0 0x100>;
  54. enable-method = "psci";
  55. cpu-idle-states = <&LIT_CORE_PD>;
  56. };
  57. CPU2: cpu@200 {
  58. device_type = "cpu";
  59. compatible = "arm,cortex-a55";
  60. reg = <0x0 0x200>;
  61. enable-method = "psci";
  62. cpu-idle-states = <&LIT_CORE_PD>;
  63. };
  64. CPU3: cpu@300 {
  65. device_type = "cpu";
  66. compatible = "arm,cortex-a55";
  67. reg = <0x0 0x300>;
  68. enable-method = "psci";
  69. cpu-idle-states = <&LIT_CORE_PD>;
  70. };
  71. CPU4: cpu@400 {
  72. device_type = "cpu";
  73. compatible = "arm,cortex-a76";
  74. reg = <0x0 0x400>;
  75. enable-method = "psci";
  76. cpu-idle-states = <&BIG_CORE_PD>;
  77. };
  78. CPU5: cpu@500 {
  79. device_type = "cpu";
  80. compatible = "arm,cortex-a76";
  81. reg = <0x0 0x500>;
  82. enable-method = "psci";
  83. cpu-idle-states = <&BIG_CORE_PD>;
  84. };
  85. CPU6: cpu@600 {
  86. device_type = "cpu";
  87. compatible = "arm,cortex-a76";
  88. reg = <0x0 0x600>;
  89. enable-method = "psci";
  90. cpu-idle-states = <&BIG_CORE_PD>;
  91. };
  92. CPU7: cpu@700 {
  93. device_type = "cpu";
  94. compatible = "arm,cortex-a76";
  95. reg = <0x0 0x700>;
  96. enable-method = "psci";
  97. cpu-idle-states = <&BIG_CORE_PD>;
  98. };
  99. };
  100. idle-states {
  101. entry-method = "psci";
  102. LIT_CORE_PD: cpu-pd-lit {
  103. compatible = "arm,idle-state";
  104. entry-latency-us = <1000>;
  105. exit-latency-us = <500>;
  106. min-residency-us = <2500>;
  107. local-timer-stop;
  108. arm,psci-suspend-param = <0x00010000>;
  109. };
  110. BIG_CORE_PD: cpu-pd-big {
  111. compatible = "arm,idle-state";
  112. entry-latency-us = <4000>;
  113. exit-latency-us = <4000>;
  114. min-residency-us = <10000>;
  115. local-timer-stop;
  116. arm,psci-suspend-param = <0x00010000>;
  117. };
  118. };
  119. psci {
  120. compatible = "arm,psci-0.2";
  121. method = "smc";
  122. };
  123. timer {
  124. compatible = "arm,armv8-timer";
  125. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, /* Physical Secure PPI */
  126. <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, /* Physical Non-Secure PPI */
  127. <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, /* Virtual PPI */
  128. <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; /* Hipervisor PPI */
  129. };
  130. pmu-a55 {
  131. compatible = "arm,cortex-a55-pmu";
  132. interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>,
  133. <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>,
  134. <GIC_SPI 179 IRQ_TYPE_LEVEL_HIGH>,
  135. <GIC_SPI 180 IRQ_TYPE_LEVEL_HIGH>;
  136. interrupt-affinity = <&CPU0>, <&CPU1>, <&CPU2>, <&CPU3>;
  137. };
  138. pmu-a76 {
  139. compatible = "arm,cortex-a76-pmu";
  140. interrupts = <GIC_SPI 181 IRQ_TYPE_LEVEL_HIGH>,
  141. <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>,
  142. <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>,
  143. <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
  144. interrupt-affinity = <&CPU4>, <&CPU5>, <&CPU6>, <&CPU7>;
  145. };
  146. soc: soc {
  147. compatible = "simple-bus";
  148. ranges;
  149. #address-cells = <2>;
  150. #size-cells = <2>;
  151. gic: interrupt-controller@12000000 {
  152. compatible = "arm,gic-v3";
  153. reg = <0x0 0x12000000 0 0x20000>, /* GICD */
  154. <0x0 0x12040000 0 0x100000>; /* GICR */
  155. #interrupt-cells = <3>;
  156. #address-cells = <2>;
  157. #size-cells = <2>;
  158. redistributor-stride = <0x0 0x20000>; /* 128KB stride */
  159. #redistributor-regions = <1>;
  160. interrupt-controller;
  161. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  162. };
  163. apb@20200000 {
  164. compatible = "simple-bus";
  165. ranges = <0 0 0x20200000 0x100000>;
  166. #address-cells = <1>;
  167. #size-cells = <1>;
  168. uart0: serial@0 {
  169. compatible = "sprd,ums9620-uart",
  170. "sprd,sc9836-uart";
  171. reg = <0 0x100>;
  172. interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>;
  173. clocks = <&ext_26m>;
  174. status = "disabled";
  175. };
  176. uart1: serial@10000 {
  177. compatible = "sprd,ums9620-uart",
  178. "sprd,sc9836-uart";
  179. reg = <0x10000 0x100>;
  180. interrupts = <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>;
  181. clocks = <&ext_26m>;
  182. status = "disabled";
  183. };
  184. };
  185. };
  186. ext_26m: clk-26m {
  187. compatible = "fixed-clock";
  188. #clock-cells = <0>;
  189. clock-frequency = <26000000>;
  190. clock-output-names = "ext-26m";
  191. };
  192. ext_4m: clk-4m {
  193. compatible = "fixed-clock";
  194. #clock-cells = <0>;
  195. clock-frequency = <4000000>;
  196. clock-output-names = "ext-4m";
  197. };
  198. ext_32k: clk-32k {
  199. compatible = "fixed-clock";
  200. #clock-cells = <0>;
  201. clock-frequency = <32768>;
  202. clock-output-names = "ext-32k";
  203. };
  204. rco_100m: clk-100m {
  205. compatible = "fixed-clock";
  206. #clock-cells = <0>;
  207. clock-frequency = <100000000>;
  208. clock-output-names = "rco-100m";
  209. };
  210. dphy_312m5: dphy-312m5 {
  211. compatible = "fixed-clock";
  212. #clock-cells = <0>;
  213. clock-frequency = <312500000>;
  214. clock-output-names = "dphy-312m5";
  215. };
  216. dphy_416m7: dphy-416m7 {
  217. compatible = "fixed-clock";
  218. #clock-cells = <0>;
  219. clock-frequency = <416700000>;
  220. clock-output-names = "dphy-416m7";
  221. };
  222. };