sc9836.dtsi 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. // SPDX-License-Identifier: (GPL-2.0-only OR MIT)
  2. /*
  3. * Spreadtrum SC9836 SoC DTS file
  4. *
  5. * Copyright (C) 2014, Spreadtrum Communications Inc.
  6. */
  7. #include "sharkl64.dtsi"
  8. #include <dt-bindings/interrupt-controller/arm-gic.h>
  9. / {
  10. compatible = "sprd,sc9836";
  11. cpus {
  12. #address-cells = <2>;
  13. #size-cells = <0>;
  14. cpu0: cpu@0 {
  15. device_type = "cpu";
  16. compatible = "arm,cortex-a53";
  17. reg = <0x0 0x0>;
  18. enable-method = "psci";
  19. };
  20. cpu1: cpu@1 {
  21. device_type = "cpu";
  22. compatible = "arm,cortex-a53";
  23. reg = <0x0 0x1>;
  24. enable-method = "psci";
  25. };
  26. cpu2: cpu@2 {
  27. device_type = "cpu";
  28. compatible = "arm,cortex-a53";
  29. reg = <0x0 0x2>;
  30. enable-method = "psci";
  31. };
  32. cpu3: cpu@3 {
  33. device_type = "cpu";
  34. compatible = "arm,cortex-a53";
  35. reg = <0x0 0x3>;
  36. enable-method = "psci";
  37. };
  38. };
  39. etf@10003000 {
  40. compatible = "arm,coresight-tmc", "arm,primecell";
  41. reg = <0 0x10003000 0 0x1000>;
  42. clocks = <&clk26mhz>;
  43. clock-names = "apb_pclk";
  44. in-ports {
  45. port {
  46. etf_in: endpoint {
  47. remote-endpoint = <&funnel_out_port0>;
  48. };
  49. };
  50. };
  51. };
  52. funnel@10001000 {
  53. compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
  54. reg = <0 0x10001000 0 0x1000>;
  55. clocks = <&clk26mhz>;
  56. clock-names = "apb_pclk";
  57. out-ports {
  58. port {
  59. funnel_out_port0: endpoint {
  60. remote-endpoint = <&etf_in>;
  61. };
  62. };
  63. };
  64. in-ports {
  65. #address-cells = <1>;
  66. #size-cells = <0>;
  67. port@0 {
  68. reg = <0>;
  69. funnel_in_port0: endpoint {
  70. remote-endpoint = <&etm0_out>;
  71. };
  72. };
  73. port@1 {
  74. reg = <1>;
  75. funnel_in_port1: endpoint {
  76. remote-endpoint = <&etm1_out>;
  77. };
  78. };
  79. port@2 {
  80. reg = <2>;
  81. funnel_in_port2: endpoint {
  82. remote-endpoint = <&etm2_out>;
  83. };
  84. };
  85. port@3 {
  86. reg = <3>;
  87. funnel_in_port3: endpoint {
  88. remote-endpoint = <&etm3_out>;
  89. };
  90. };
  91. port@4 {
  92. reg = <4>;
  93. funnel_in_port4: endpoint {
  94. remote-endpoint = <&stm_out>;
  95. };
  96. };
  97. /* Other input ports aren't connected to anyone */
  98. };
  99. };
  100. etm@10440000 {
  101. compatible = "arm,coresight-etm4x", "arm,primecell";
  102. reg = <0 0x10440000 0 0x1000>;
  103. cpu = <&cpu0>;
  104. clocks = <&clk26mhz>;
  105. clock-names = "apb_pclk";
  106. out-ports {
  107. port {
  108. etm0_out: endpoint {
  109. remote-endpoint = <&funnel_in_port0>;
  110. };
  111. };
  112. };
  113. };
  114. etm@10540000 {
  115. compatible = "arm,coresight-etm4x", "arm,primecell";
  116. reg = <0 0x10540000 0 0x1000>;
  117. cpu = <&cpu1>;
  118. clocks = <&clk26mhz>;
  119. clock-names = "apb_pclk";
  120. out-ports {
  121. port {
  122. etm1_out: endpoint {
  123. remote-endpoint = <&funnel_in_port1>;
  124. };
  125. };
  126. };
  127. };
  128. etm@10640000 {
  129. compatible = "arm,coresight-etm4x", "arm,primecell";
  130. reg = <0 0x10640000 0 0x1000>;
  131. cpu = <&cpu2>;
  132. clocks = <&clk26mhz>;
  133. clock-names = "apb_pclk";
  134. out-ports {
  135. port {
  136. etm2_out: endpoint {
  137. remote-endpoint = <&funnel_in_port2>;
  138. };
  139. };
  140. };
  141. };
  142. etm@10740000 {
  143. compatible = "arm,coresight-etm4x", "arm,primecell";
  144. reg = <0 0x10740000 0 0x1000>;
  145. cpu = <&cpu3>;
  146. clocks = <&clk26mhz>;
  147. clock-names = "apb_pclk";
  148. out-ports {
  149. port {
  150. etm3_out: endpoint {
  151. remote-endpoint = <&funnel_in_port3>;
  152. };
  153. };
  154. };
  155. };
  156. stm@10006000 {
  157. compatible = "arm,coresight-stm", "arm,primecell";
  158. reg = <0 0x10006000 0 0x1000>,
  159. <0 0x01000000 0 0x180000>;
  160. reg-names = "stm-base", "stm-stimulus-base";
  161. clocks = <&clk26mhz>;
  162. clock-names = "apb_pclk";
  163. out-ports {
  164. port {
  165. stm_out: endpoint {
  166. remote-endpoint = <&funnel_in_port4>;
  167. };
  168. };
  169. };
  170. };
  171. gic: interrupt-controller@12001000 {
  172. compatible = "arm,gic-400";
  173. reg = <0 0x12001000 0 0x1000>,
  174. <0 0x12002000 0 0x2000>,
  175. <0 0x12004000 0 0x2000>,
  176. <0 0x12006000 0 0x2000>;
  177. #interrupt-cells = <3>;
  178. interrupt-controller;
  179. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
  180. };
  181. psci {
  182. compatible = "arm,psci";
  183. method = "smc";
  184. cpu_on = <0xc4000003>;
  185. cpu_off = <0x84000002>;
  186. cpu_suspend = <0xc4000001>;
  187. };
  188. timer {
  189. compatible = "arm,armv8-timer";
  190. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  191. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  192. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  193. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  194. };
  195. };