qcom-apq8064.dtsi 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. /dts-v1/;
  2. #include "skeleton.dtsi"
  3. #include <dt-bindings/clock/qcom,gcc-msm8960.h>
  4. #include <dt-bindings/clock/qcom,mmcc-msm8960.h>
  5. #include <dt-bindings/soc/qcom,gsbi.h>
  6. #include <dt-bindings/interrupt-controller/arm-gic.h>
  7. / {
  8. model = "Qualcomm APQ8064";
  9. compatible = "qcom,apq8064";
  10. interrupt-parent = <&intc>;
  11. cpus {
  12. #address-cells = <1>;
  13. #size-cells = <0>;
  14. cpu@0 {
  15. compatible = "qcom,krait";
  16. enable-method = "qcom,kpss-acc-v1";
  17. device_type = "cpu";
  18. reg = <0>;
  19. next-level-cache = <&L2>;
  20. qcom,acc = <&acc0>;
  21. qcom,saw = <&saw0>;
  22. };
  23. cpu@1 {
  24. compatible = "qcom,krait";
  25. enable-method = "qcom,kpss-acc-v1";
  26. device_type = "cpu";
  27. reg = <1>;
  28. next-level-cache = <&L2>;
  29. qcom,acc = <&acc1>;
  30. qcom,saw = <&saw1>;
  31. };
  32. cpu@2 {
  33. compatible = "qcom,krait";
  34. enable-method = "qcom,kpss-acc-v1";
  35. device_type = "cpu";
  36. reg = <2>;
  37. next-level-cache = <&L2>;
  38. qcom,acc = <&acc2>;
  39. qcom,saw = <&saw2>;
  40. };
  41. cpu@3 {
  42. compatible = "qcom,krait";
  43. enable-method = "qcom,kpss-acc-v1";
  44. device_type = "cpu";
  45. reg = <3>;
  46. next-level-cache = <&L2>;
  47. qcom,acc = <&acc3>;
  48. qcom,saw = <&saw3>;
  49. };
  50. L2: l2-cache {
  51. compatible = "cache";
  52. cache-level = <2>;
  53. };
  54. };
  55. cpu-pmu {
  56. compatible = "qcom,krait-pmu";
  57. interrupts = <1 10 0x304>;
  58. };
  59. soc: soc {
  60. #address-cells = <1>;
  61. #size-cells = <1>;
  62. ranges;
  63. compatible = "simple-bus";
  64. tlmm_pinmux: pinctrl@800000 {
  65. compatible = "qcom,apq8064-pinctrl";
  66. reg = <0x800000 0x4000>;
  67. gpio-controller;
  68. #gpio-cells = <2>;
  69. interrupt-controller;
  70. #interrupt-cells = <2>;
  71. interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
  72. pinctrl-names = "default";
  73. pinctrl-0 = <&ps_hold>;
  74. sdc4_gpios: sdc4-gpios {
  75. pios {
  76. pins = "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68";
  77. function = "sdc4";
  78. };
  79. };
  80. ps_hold: ps_hold {
  81. mux {
  82. pins = "gpio78";
  83. function = "ps_hold";
  84. };
  85. };
  86. };
  87. intc: interrupt-controller@2000000 {
  88. compatible = "qcom,msm-qgic2";
  89. interrupt-controller;
  90. #interrupt-cells = <3>;
  91. reg = <0x02000000 0x1000>,
  92. <0x02002000 0x1000>;
  93. };
  94. timer@200a000 {
  95. compatible = "qcom,kpss-timer", "qcom,msm-timer";
  96. interrupts = <1 1 0x301>,
  97. <1 2 0x301>,
  98. <1 3 0x301>;
  99. reg = <0x0200a000 0x100>;
  100. clock-frequency = <27000000>,
  101. <32768>;
  102. cpu-offset = <0x80000>;
  103. };
  104. acc0: clock-controller@2088000 {
  105. compatible = "qcom,kpss-acc-v1";
  106. reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
  107. };
  108. acc1: clock-controller@2098000 {
  109. compatible = "qcom,kpss-acc-v1";
  110. reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
  111. };
  112. acc2: clock-controller@20a8000 {
  113. compatible = "qcom,kpss-acc-v1";
  114. reg = <0x020a8000 0x1000>, <0x02008000 0x1000>;
  115. };
  116. acc3: clock-controller@20b8000 {
  117. compatible = "qcom,kpss-acc-v1";
  118. reg = <0x020b8000 0x1000>, <0x02008000 0x1000>;
  119. };
  120. saw0: regulator@2089000 {
  121. compatible = "qcom,saw2";
  122. reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
  123. regulator;
  124. };
  125. saw1: regulator@2099000 {
  126. compatible = "qcom,saw2";
  127. reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
  128. regulator;
  129. };
  130. saw2: regulator@20a9000 {
  131. compatible = "qcom,saw2";
  132. reg = <0x020a9000 0x1000>, <0x02009000 0x1000>;
  133. regulator;
  134. };
  135. saw3: regulator@20b9000 {
  136. compatible = "qcom,saw2";
  137. reg = <0x020b9000 0x1000>, <0x02009000 0x1000>;
  138. regulator;
  139. };
  140. gsbi1: gsbi@12440000 {
  141. status = "disabled";
  142. compatible = "qcom,gsbi-v1.0.0";
  143. reg = <0x12440000 0x100>;
  144. clocks = <&gcc GSBI1_H_CLK>;
  145. clock-names = "iface";
  146. #address-cells = <1>;
  147. #size-cells = <1>;
  148. ranges;
  149. i2c1: i2c@12460000 {
  150. compatible = "qcom,i2c-qup-v1.1.1";
  151. reg = <0x12460000 0x1000>;
  152. interrupts = <0 194 IRQ_TYPE_NONE>;
  153. clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
  154. clock-names = "core", "iface";
  155. #address-cells = <1>;
  156. #size-cells = <0>;
  157. };
  158. };
  159. gsbi2: gsbi@12480000 {
  160. status = "disabled";
  161. compatible = "qcom,gsbi-v1.0.0";
  162. reg = <0x12480000 0x100>;
  163. clocks = <&gcc GSBI2_H_CLK>;
  164. clock-names = "iface";
  165. #address-cells = <1>;
  166. #size-cells = <1>;
  167. ranges;
  168. i2c2: i2c@124a0000 {
  169. compatible = "qcom,i2c-qup-v1.1.1";
  170. reg = <0x124a0000 0x1000>;
  171. interrupts = <0 196 IRQ_TYPE_NONE>;
  172. clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
  173. clock-names = "core", "iface";
  174. #address-cells = <1>;
  175. #size-cells = <0>;
  176. };
  177. };
  178. gsbi7: gsbi@16600000 {
  179. status = "disabled";
  180. compatible = "qcom,gsbi-v1.0.0";
  181. reg = <0x16600000 0x100>;
  182. clocks = <&gcc GSBI7_H_CLK>;
  183. clock-names = "iface";
  184. #address-cells = <1>;
  185. #size-cells = <1>;
  186. ranges;
  187. serial@16640000 {
  188. compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
  189. reg = <0x16640000 0x1000>,
  190. <0x16600000 0x1000>;
  191. interrupts = <0 158 0x0>;
  192. clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
  193. clock-names = "core", "iface";
  194. status = "disabled";
  195. };
  196. };
  197. qcom,ssbi@500000 {
  198. compatible = "qcom,ssbi";
  199. reg = <0x00500000 0x1000>;
  200. qcom,controller-type = "pmic-arbiter";
  201. };
  202. gcc: clock-controller@900000 {
  203. compatible = "qcom,gcc-apq8064";
  204. reg = <0x00900000 0x4000>;
  205. #clock-cells = <1>;
  206. #reset-cells = <1>;
  207. };
  208. mmcc: clock-controller@4000000 {
  209. compatible = "qcom,mmcc-apq8064";
  210. reg = <0x4000000 0x1000>;
  211. #clock-cells = <1>;
  212. #reset-cells = <1>;
  213. };
  214. /* Temporary fixed regulator */
  215. vsdcc_fixed: vsdcc-regulator {
  216. compatible = "regulator-fixed";
  217. regulator-name = "SDCC Power";
  218. regulator-min-microvolt = <2700000>;
  219. regulator-max-microvolt = <2700000>;
  220. regulator-always-on;
  221. };
  222. sdcc1bam:dma@12402000{
  223. compatible = "qcom,bam-v1.3.0";
  224. reg = <0x12402000 0x8000>;
  225. interrupts = <0 98 0>;
  226. clocks = <&gcc SDC1_H_CLK>;
  227. clock-names = "bam_clk";
  228. #dma-cells = <1>;
  229. qcom,ee = <0>;
  230. };
  231. sdcc3bam:dma@12182000{
  232. compatible = "qcom,bam-v1.3.0";
  233. reg = <0x12182000 0x8000>;
  234. interrupts = <0 96 0>;
  235. clocks = <&gcc SDC3_H_CLK>;
  236. clock-names = "bam_clk";
  237. #dma-cells = <1>;
  238. qcom,ee = <0>;
  239. };
  240. sdcc4bam:dma@121c2000{
  241. compatible = "qcom,bam-v1.3.0";
  242. reg = <0x121c2000 0x8000>;
  243. interrupts = <0 95 0>;
  244. clocks = <&gcc SDC4_H_CLK>;
  245. clock-names = "bam_clk";
  246. #dma-cells = <1>;
  247. qcom,ee = <0>;
  248. };
  249. amba {
  250. compatible = "arm,amba-bus";
  251. #address-cells = <1>;
  252. #size-cells = <1>;
  253. ranges;
  254. sdcc1: sdcc@12400000 {
  255. status = "disabled";
  256. compatible = "arm,pl18x", "arm,primecell";
  257. arm,primecell-periphid = <0x00051180>;
  258. reg = <0x12400000 0x2000>;
  259. interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
  260. interrupt-names = "cmd_irq";
  261. clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
  262. clock-names = "mclk", "apb_pclk";
  263. bus-width = <8>;
  264. max-frequency = <96000000>;
  265. non-removable;
  266. cap-sd-highspeed;
  267. cap-mmc-highspeed;
  268. vmmc-supply = <&vsdcc_fixed>;
  269. dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
  270. dma-names = "tx", "rx";
  271. };
  272. sdcc3: sdcc@12180000 {
  273. compatible = "arm,pl18x", "arm,primecell";
  274. arm,primecell-periphid = <0x00051180>;
  275. status = "disabled";
  276. reg = <0x12180000 0x2000>;
  277. interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
  278. interrupt-names = "cmd_irq";
  279. clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
  280. clock-names = "mclk", "apb_pclk";
  281. bus-width = <4>;
  282. cap-sd-highspeed;
  283. cap-mmc-highspeed;
  284. max-frequency = <192000000>;
  285. no-1-8-v;
  286. vmmc-supply = <&vsdcc_fixed>;
  287. dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
  288. dma-names = "tx", "rx";
  289. };
  290. sdcc4: sdcc@121c0000 {
  291. compatible = "arm,pl18x", "arm,primecell";
  292. arm,primecell-periphid = <0x00051180>;
  293. status = "disabled";
  294. reg = <0x121c0000 0x2000>;
  295. interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
  296. interrupt-names = "cmd_irq";
  297. clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>;
  298. clock-names = "mclk", "apb_pclk";
  299. bus-width = <4>;
  300. cap-sd-highspeed;
  301. cap-mmc-highspeed;
  302. max-frequency = <48000000>;
  303. vmmc-supply = <&vsdcc_fixed>;
  304. vqmmc-supply = <&vsdcc_fixed>;
  305. dmas = <&sdcc4bam 2>, <&sdcc4bam 1>;
  306. dma-names = "tx", "rx";
  307. pinctrl-names = "default";
  308. pinctrl-0 = <&sdc4_gpios>;
  309. };
  310. };
  311. };
  312. };