qcom-ipq4019.dtsi 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. /*
  2. * Copyright (c) 2015, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. /dts-v1/;
  14. #include "skeleton.dtsi"
  15. #include <dt-bindings/clock/qcom,gcc-ipq4019.h>
  16. #include <dt-bindings/interrupt-controller/arm-gic.h>
  17. #include <dt-bindings/interrupt-controller/irq.h>
  18. / {
  19. model = "Qualcomm Technologies, Inc. IPQ4019";
  20. compatible = "qcom,ipq4019";
  21. interrupt-parent = <&intc>;
  22. aliases {
  23. spi0 = &spi_0;
  24. i2c0 = &i2c_0;
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. cpu@0 {
  30. device_type = "cpu";
  31. compatible = "arm,cortex-a7";
  32. enable-method = "qcom,kpss-acc-v1";
  33. qcom,acc = <&acc0>;
  34. qcom,saw = <&saw0>;
  35. reg = <0x0>;
  36. clocks = <&gcc GCC_APPS_CLK_SRC>;
  37. clock-frequency = <0>;
  38. operating-points = <
  39. /* kHz uV (fixed) */
  40. 48000 1100000
  41. 200000 1100000
  42. 500000 1100000
  43. 666000 1100000
  44. >;
  45. clock-latency = <256000>;
  46. };
  47. cpu@1 {
  48. device_type = "cpu";
  49. compatible = "arm,cortex-a7";
  50. enable-method = "qcom,kpss-acc-v1";
  51. qcom,acc = <&acc1>;
  52. qcom,saw = <&saw1>;
  53. reg = <0x1>;
  54. clocks = <&gcc GCC_APPS_CLK_SRC>;
  55. clock-frequency = <0>;
  56. };
  57. cpu@2 {
  58. device_type = "cpu";
  59. compatible = "arm,cortex-a7";
  60. enable-method = "qcom,kpss-acc-v1";
  61. qcom,acc = <&acc2>;
  62. qcom,saw = <&saw2>;
  63. reg = <0x2>;
  64. clocks = <&gcc GCC_APPS_CLK_SRC>;
  65. clock-frequency = <0>;
  66. };
  67. cpu@3 {
  68. device_type = "cpu";
  69. compatible = "arm,cortex-a7";
  70. enable-method = "qcom,kpss-acc-v1";
  71. qcom,acc = <&acc3>;
  72. qcom,saw = <&saw3>;
  73. reg = <0x3>;
  74. clocks = <&gcc GCC_APPS_CLK_SRC>;
  75. clock-frequency = <0>;
  76. };
  77. };
  78. pmu {
  79. compatible = "arm,cortex-a7-pmu";
  80. interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) |
  81. IRQ_TYPE_LEVEL_HIGH)>;
  82. };
  83. clocks {
  84. sleep_clk: sleep_clk {
  85. compatible = "fixed-clock";
  86. clock-frequency = <32768>;
  87. #clock-cells = <0>;
  88. };
  89. };
  90. soc {
  91. #address-cells = <1>;
  92. #size-cells = <1>;
  93. ranges;
  94. compatible = "simple-bus";
  95. intc: interrupt-controller@b000000 {
  96. compatible = "qcom,msm-qgic2";
  97. interrupt-controller;
  98. #interrupt-cells = <3>;
  99. reg = <0x0b000000 0x1000>,
  100. <0x0b002000 0x1000>;
  101. };
  102. gcc: clock-controller@1800000 {
  103. compatible = "qcom,gcc-ipq4019";
  104. #clock-cells = <1>;
  105. #reset-cells = <1>;
  106. reg = <0x1800000 0x60000>;
  107. };
  108. tlmm: pinctrl@0x01000000 {
  109. compatible = "qcom,ipq4019-pinctrl";
  110. reg = <0x01000000 0x300000>;
  111. gpio-controller;
  112. #gpio-cells = <2>;
  113. interrupt-controller;
  114. #interrupt-cells = <2>;
  115. interrupts = <0 208 0>;
  116. };
  117. blsp_dma: dma@7884000 {
  118. compatible = "qcom,bam-v1.7.0";
  119. reg = <0x07884000 0x23000>;
  120. interrupts = <GIC_SPI 238 IRQ_TYPE_NONE>;
  121. clocks = <&gcc GCC_BLSP1_AHB_CLK>;
  122. clock-names = "bam_clk";
  123. #dma-cells = <1>;
  124. qcom,ee = <0>;
  125. status = "disabled";
  126. };
  127. spi_0: spi@78b5000 {
  128. compatible = "qcom,spi-qup-v2.2.1";
  129. reg = <0x78b5000 0x600>;
  130. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
  131. clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
  132. <&gcc GCC_BLSP1_AHB_CLK>;
  133. clock-names = "core", "iface";
  134. #address-cells = <1>;
  135. #size-cells = <0>;
  136. status = "disabled";
  137. };
  138. i2c_0: i2c@78b7000 {
  139. compatible = "qcom,i2c-qup-v2.2.1";
  140. reg = <0x78b7000 0x600>;
  141. interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
  142. clocks = <&gcc GCC_BLSP1_AHB_CLK>,
  143. <&gcc GCC_BLSP1_QUP1_I2C_APPS_CLK>;
  144. clock-names = "iface", "core";
  145. #address-cells = <1>;
  146. #size-cells = <0>;
  147. status = "disabled";
  148. };
  149. cryptobam: dma@8e04000 {
  150. compatible = "qcom,bam-v1.7.0";
  151. reg = <0x08e04000 0x20000>;
  152. interrupts = <GIC_SPI 207 0>;
  153. clocks = <&gcc GCC_CRYPTO_AHB_CLK>;
  154. clock-names = "bam_clk";
  155. #dma-cells = <1>;
  156. qcom,ee = <1>;
  157. qcom,controlled-remotely;
  158. status = "disabled";
  159. };
  160. crypto@8e3a000 {
  161. compatible = "qcom,crypto-v5.1";
  162. reg = <0x08e3a000 0x6000>;
  163. clocks = <&gcc GCC_CRYPTO_AHB_CLK>,
  164. <&gcc GCC_CRYPTO_AXI_CLK>,
  165. <&gcc GCC_CRYPTO_CLK>;
  166. clock-names = "iface", "bus", "core";
  167. dmas = <&cryptobam 2>, <&cryptobam 3>;
  168. dma-names = "rx", "tx";
  169. status = "disabled";
  170. };
  171. acc0: clock-controller@b088000 {
  172. compatible = "qcom,kpss-acc-v1";
  173. reg = <0x0b088000 0x1000>, <0xb008000 0x1000>;
  174. };
  175. acc1: clock-controller@b098000 {
  176. compatible = "qcom,kpss-acc-v1";
  177. reg = <0x0b098000 0x1000>, <0xb008000 0x1000>;
  178. };
  179. acc2: clock-controller@b0a8000 {
  180. compatible = "qcom,kpss-acc-v1";
  181. reg = <0x0b0a8000 0x1000>, <0xb008000 0x1000>;
  182. };
  183. acc3: clock-controller@b0b8000 {
  184. compatible = "qcom,kpss-acc-v1";
  185. reg = <0x0b0b8000 0x1000>, <0xb008000 0x1000>;
  186. };
  187. saw0: regulator@b089000 {
  188. compatible = "qcom,saw2";
  189. reg = <0x02089000 0x1000>, <0x0b009000 0x1000>;
  190. regulator;
  191. };
  192. saw1: regulator@b099000 {
  193. compatible = "qcom,saw2";
  194. reg = <0x0b099000 0x1000>, <0x0b009000 0x1000>;
  195. regulator;
  196. };
  197. saw2: regulator@b0a9000 {
  198. compatible = "qcom,saw2";
  199. reg = <0x0b0a9000 0x1000>, <0x0b009000 0x1000>;
  200. regulator;
  201. };
  202. saw3: regulator@b0b9000 {
  203. compatible = "qcom,saw2";
  204. reg = <0x0b0b9000 0x1000>, <0x0b009000 0x1000>;
  205. regulator;
  206. };
  207. serial@78af000 {
  208. compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
  209. reg = <0x78af000 0x200>;
  210. interrupts = <0 107 0>;
  211. status = "disabled";
  212. clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>,
  213. <&gcc GCC_BLSP1_AHB_CLK>;
  214. clock-names = "core", "iface";
  215. dmas = <&blsp_dma 1>, <&blsp_dma 0>;
  216. dma-names = "rx", "tx";
  217. };
  218. serial@78b0000 {
  219. compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
  220. reg = <0x78b0000 0x200>;
  221. interrupts = <0 108 0>;
  222. status = "disabled";
  223. clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>,
  224. <&gcc GCC_BLSP1_AHB_CLK>;
  225. clock-names = "core", "iface";
  226. dmas = <&blsp_dma 3>, <&blsp_dma 2>;
  227. dma-names = "rx", "tx";
  228. };
  229. watchdog@b017000 {
  230. compatible = "qcom,kpss-wdt", "qcom,kpss-wdt-ipq4019";
  231. reg = <0xb017000 0x40>;
  232. clocks = <&sleep_clk>;
  233. timeout-sec = <10>;
  234. status = "disabled";
  235. };
  236. restart@4ab000 {
  237. compatible = "qcom,pshold";
  238. reg = <0x4ab000 0x4>;
  239. };
  240. };
  241. };