sc9836.dtsi 4.3 KB

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