blob: ec11d4b30d02427c7a58ac8d5a3a7ab7e45d088e [file] [log] [blame]
Kumar Galaf335b8a2014-04-03 14:48:22 -05001/dts-v1/;
2
3#include "skeleton.dtsi"
4#include <dt-bindings/clock/qcom,gcc-msm8960.h>
Srinivas Kandagatla223280b2015-04-10 21:43:30 +01005#include <dt-bindings/reset/qcom,gcc-msm8960.h>
Stephen Boyd3fe5e3c2014-07-16 13:49:43 -07006#include <dt-bindings/clock/qcom,mmcc-msm8960.h>
Kumar Galaf335b8a2014-04-03 14:48:22 -05007#include <dt-bindings/soc/qcom,gsbi.h>
Pramod Gurav8b8936f2014-08-29 20:00:56 +05308#include <dt-bindings/interrupt-controller/arm-gic.h>
Kumar Galaf335b8a2014-04-03 14:48:22 -05009/ {
10 model = "Qualcomm APQ8064";
11 compatible = "qcom,apq8064";
12 interrupt-parent = <&intc>;
13
Bjorn Andersson24a9baf2015-10-22 11:13:48 -070014 reserved-memory {
15 #address-cells = <1>;
16 #size-cells = <1>;
17 ranges;
18
19 smem_region: smem@80000000 {
20 reg = <0x80000000 0x200000>;
21 no-map;
22 };
23 };
24
Kumar Galaf335b8a2014-04-03 14:48:22 -050025 cpus {
26 #address-cells = <1>;
27 #size-cells = <0>;
28
29 cpu@0 {
30 compatible = "qcom,krait";
31 enable-method = "qcom,kpss-acc-v1";
32 device_type = "cpu";
33 reg = <0>;
34 next-level-cache = <&L2>;
35 qcom,acc = <&acc0>;
36 qcom,saw = <&saw0>;
Lina Iyer06c49f22015-03-25 14:25:35 -060037 cpu-idle-states = <&CPU_SPC>;
Kumar Galaf335b8a2014-04-03 14:48:22 -050038 };
39
40 cpu@1 {
41 compatible = "qcom,krait";
42 enable-method = "qcom,kpss-acc-v1";
43 device_type = "cpu";
44 reg = <1>;
45 next-level-cache = <&L2>;
46 qcom,acc = <&acc1>;
47 qcom,saw = <&saw1>;
Lina Iyer06c49f22015-03-25 14:25:35 -060048 cpu-idle-states = <&CPU_SPC>;
Kumar Galaf335b8a2014-04-03 14:48:22 -050049 };
50
51 cpu@2 {
52 compatible = "qcom,krait";
53 enable-method = "qcom,kpss-acc-v1";
54 device_type = "cpu";
55 reg = <2>;
56 next-level-cache = <&L2>;
57 qcom,acc = <&acc2>;
58 qcom,saw = <&saw2>;
Lina Iyer06c49f22015-03-25 14:25:35 -060059 cpu-idle-states = <&CPU_SPC>;
Kumar Galaf335b8a2014-04-03 14:48:22 -050060 };
61
62 cpu@3 {
63 compatible = "qcom,krait";
64 enable-method = "qcom,kpss-acc-v1";
65 device_type = "cpu";
66 reg = <3>;
67 next-level-cache = <&L2>;
68 qcom,acc = <&acc3>;
69 qcom,saw = <&saw3>;
Lina Iyer06c49f22015-03-25 14:25:35 -060070 cpu-idle-states = <&CPU_SPC>;
Kumar Galaf335b8a2014-04-03 14:48:22 -050071 };
72
73 L2: l2-cache {
74 compatible = "cache";
75 cache-level = <2>;
76 };
Lina Iyer06c49f22015-03-25 14:25:35 -060077
78 idle-states {
79 CPU_SPC: spc {
80 compatible = "qcom,idle-state-spc",
81 "arm,idle-state";
82 entry-latency-us = <400>;
83 exit-latency-us = <900>;
84 min-residency-us = <3000>;
85 };
86 };
Kumar Galaf335b8a2014-04-03 14:48:22 -050087 };
88
89 cpu-pmu {
90 compatible = "qcom,krait-pmu";
91 interrupts = <1 10 0x304>;
92 };
93
Georgi Djakovaa269122015-12-03 16:02:55 +020094 clocks {
95 cxo_board {
96 compatible = "fixed-clock";
97 #clock-cells = <0>;
98 clock-frequency = <19200000>;
99 };
100
101 pxo_board {
102 compatible = "fixed-clock";
103 #clock-cells = <0>;
104 clock-frequency = <27000000>;
105 };
106
107 sleep_clk {
108 compatible = "fixed-clock";
109 #clock-cells = <0>;
110 clock-frequency = <32768>;
111 };
112 };
113
Bjorn Andersson24a9baf2015-10-22 11:13:48 -0700114 sfpb_mutex: hwmutex {
115 compatible = "qcom,sfpb-mutex";
116 syscon = <&sfpb_wrapper_mutex 0x604 0x4>;
117 #hwlock-cells = <1>;
118 };
119
120 smem {
121 compatible = "qcom,smem";
122 memory-region = <&smem_region>;
123
124 hwlocks = <&sfpb_mutex 3>;
125 };
126
Kumar Galaf335b8a2014-04-03 14:48:22 -0500127 soc: soc {
128 #address-cells = <1>;
129 #size-cells = <1>;
130 ranges;
131 compatible = "simple-bus";
132
Pramod Gurav8b8936f2014-08-29 20:00:56 +0530133 tlmm_pinmux: pinctrl@800000 {
134 compatible = "qcom,apq8064-pinctrl";
135 reg = <0x800000 0x4000>;
136
137 gpio-controller;
138 #gpio-cells = <2>;
139 interrupt-controller;
140 #interrupt-cells = <2>;
141 interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
Pramod Guravcd6dd112014-08-29 20:00:57 +0530142
143 pinctrl-names = "default";
144 pinctrl-0 = <&ps_hold>;
Pramod Gurav8b8936f2014-08-29 20:00:56 +0530145 };
146
Bjorn Andersson24a9baf2015-10-22 11:13:48 -0700147 sfpb_wrapper_mutex: syscon@1200000 {
148 compatible = "syscon";
149 reg = <0x01200000 0x8000>;
150 };
151
Kumar Galaf335b8a2014-04-03 14:48:22 -0500152 intc: interrupt-controller@2000000 {
153 compatible = "qcom,msm-qgic2";
154 interrupt-controller;
155 #interrupt-cells = <3>;
156 reg = <0x02000000 0x1000>,
157 <0x02002000 0x1000>;
158 };
159
160 timer@200a000 {
161 compatible = "qcom,kpss-timer", "qcom,msm-timer";
162 interrupts = <1 1 0x301>,
163 <1 2 0x301>,
164 <1 3 0x301>;
165 reg = <0x0200a000 0x100>;
166 clock-frequency = <27000000>,
167 <32768>;
168 cpu-offset = <0x80000>;
169 };
170
171 acc0: clock-controller@2088000 {
172 compatible = "qcom,kpss-acc-v1";
173 reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
174 };
175
176 acc1: clock-controller@2098000 {
177 compatible = "qcom,kpss-acc-v1";
178 reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
179 };
180
181 acc2: clock-controller@20a8000 {
182 compatible = "qcom,kpss-acc-v1";
183 reg = <0x020a8000 0x1000>, <0x02008000 0x1000>;
184 };
185
186 acc3: clock-controller@20b8000 {
187 compatible = "qcom,kpss-acc-v1";
188 reg = <0x020b8000 0x1000>, <0x02008000 0x1000>;
189 };
190
Lina Iyer9fc23ce2015-03-25 14:25:32 -0600191 saw0: power-controller@2089000 {
192 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
Kumar Galaf335b8a2014-04-03 14:48:22 -0500193 reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
194 regulator;
195 };
196
Lina Iyer9fc23ce2015-03-25 14:25:32 -0600197 saw1: power-controller@2099000 {
198 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
Kumar Galaf335b8a2014-04-03 14:48:22 -0500199 reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
200 regulator;
201 };
202
Lina Iyer9fc23ce2015-03-25 14:25:32 -0600203 saw2: power-controller@20a9000 {
204 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
Kumar Galaf335b8a2014-04-03 14:48:22 -0500205 reg = <0x020a9000 0x1000>, <0x02009000 0x1000>;
206 regulator;
207 };
208
Lina Iyer9fc23ce2015-03-25 14:25:32 -0600209 saw3: power-controller@20b9000 {
210 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
Kumar Galaf335b8a2014-04-03 14:48:22 -0500211 reg = <0x020b9000 0x1000>, <0x02009000 0x1000>;
212 regulator;
213 };
214
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530215 gsbi1: gsbi@12440000 {
216 status = "disabled";
217 compatible = "qcom,gsbi-v1.0.0";
Andy Gross4105d9d2015-02-09 16:01:08 -0600218 cell-index = <1>;
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530219 reg = <0x12440000 0x100>;
220 clocks = <&gcc GSBI1_H_CLK>;
221 clock-names = "iface";
222 #address-cells = <1>;
223 #size-cells = <1>;
224 ranges;
225
Andy Gross4105d9d2015-02-09 16:01:08 -0600226 syscon-tcsr = <&tcsr>;
227
Srinivas Kandagatlae07214d2016-02-23 14:11:10 +0000228 gsbi1_i2c: i2c@12460000 {
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530229 compatible = "qcom,i2c-qup-v1.1.1";
Srinivas Kandagatla0fbf6102015-09-18 13:30:13 +0100230 pinctrl-0 = <&i2c1_pins>;
231 pinctrl-names = "default";
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530232 reg = <0x12460000 0x1000>;
233 interrupts = <0 194 IRQ_TYPE_NONE>;
234 clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
235 clock-names = "core", "iface";
236 #address-cells = <1>;
237 #size-cells = <0>;
238 };
239 };
240
241 gsbi2: gsbi@12480000 {
242 status = "disabled";
243 compatible = "qcom,gsbi-v1.0.0";
Andy Gross4105d9d2015-02-09 16:01:08 -0600244 cell-index = <2>;
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530245 reg = <0x12480000 0x100>;
246 clocks = <&gcc GSBI2_H_CLK>;
247 clock-names = "iface";
248 #address-cells = <1>;
249 #size-cells = <1>;
250 ranges;
251
Andy Gross4105d9d2015-02-09 16:01:08 -0600252 syscon-tcsr = <&tcsr>;
253
Srinivas Kandagatlae07214d2016-02-23 14:11:10 +0000254 gsbi2_i2c: i2c@124a0000 {
kiran.padwal@smartplayin.com8c3166f2014-09-17 16:00:25 +0530255 compatible = "qcom,i2c-qup-v1.1.1";
256 reg = <0x124a0000 0x1000>;
257 interrupts = <0 196 IRQ_TYPE_NONE>;
258 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
259 clock-names = "core", "iface";
260 #address-cells = <1>;
261 #size-cells = <0>;
262 };
263 };
264
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100265 gsbi3: gsbi@16200000 {
266 status = "disabled";
267 compatible = "qcom,gsbi-v1.0.0";
Srinivas Kandagatla504155c2015-07-27 14:52:19 +0100268 cell-index = <3>;
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100269 reg = <0x16200000 0x100>;
270 clocks = <&gcc GSBI3_H_CLK>;
271 clock-names = "iface";
272 #address-cells = <1>;
273 #size-cells = <1>;
274 ranges;
Srinivas Kandagatlae07214d2016-02-23 14:11:10 +0000275 gsbi3_i2c: i2c@16280000 {
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100276 compatible = "qcom,i2c-qup-v1.1.1";
Srinivas Kandagatla0fbf6102015-09-18 13:30:13 +0100277 pinctrl-0 = <&i2c3_pins>;
278 pinctrl-names = "default";
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100279 reg = <0x16280000 0x1000>;
280 interrupts = <GIC_SPI 151 IRQ_TYPE_NONE>;
281 clocks = <&gcc GSBI3_QUP_CLK>,
282 <&gcc GSBI3_H_CLK>;
283 clock-names = "core", "iface";
John Stultz5d31f602016-02-05 10:06:17 -0800284 #address-cells = <1>;
285 #size-cells = <0>;
Srinivas Kandagatla3f62b462015-04-10 21:44:48 +0100286 };
287 };
288
Bjorn Andersson1099b262015-10-22 11:13:50 -0700289 gsbi5: gsbi@1a200000 {
290 status = "disabled";
291 compatible = "qcom,gsbi-v1.0.0";
292 cell-index = <5>;
293 reg = <0x1a200000 0x03>;
294 clocks = <&gcc GSBI5_H_CLK>;
295 clock-names = "iface";
296 #address-cells = <1>;
297 #size-cells = <1>;
298 ranges;
299
300 gsbi5_serial: serial@1a240000 {
301 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
302 reg = <0x1a240000 0x100>,
303 <0x1a200000 0x03>;
304 interrupts = <0 154 0x0>;
305 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
306 clock-names = "core", "iface";
307 status = "disabled";
308 };
309 };
310
Pramod Gurav86e252a2015-07-27 14:52:10 +0100311 gsbi6: gsbi@16500000 {
312 status = "disabled";
313 compatible = "qcom,gsbi-v1.0.0";
314 cell-index = <6>;
315 reg = <0x16500000 0x03>;
316 clocks = <&gcc GSBI6_H_CLK>;
317 clock-names = "iface";
318 #address-cells = <1>;
319 #size-cells = <1>;
320 ranges;
321
322 gsbi6_serial: serial@16540000 {
323 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
324 reg = <0x16540000 0x100>,
325 <0x16500000 0x03>;
326 interrupts = <0 156 0x0>;
327 clocks = <&gcc GSBI6_UART_CLK>, <&gcc GSBI6_H_CLK>;
328 clock-names = "core", "iface";
329 status = "disabled";
330 };
331 };
332
Kumar Galaf335b8a2014-04-03 14:48:22 -0500333 gsbi7: gsbi@16600000 {
334 status = "disabled";
335 compatible = "qcom,gsbi-v1.0.0";
Andy Gross4105d9d2015-02-09 16:01:08 -0600336 cell-index = <7>;
Kumar Galaf335b8a2014-04-03 14:48:22 -0500337 reg = <0x16600000 0x100>;
338 clocks = <&gcc GSBI7_H_CLK>;
339 clock-names = "iface";
340 #address-cells = <1>;
341 #size-cells = <1>;
342 ranges;
Andy Gross4105d9d2015-02-09 16:01:08 -0600343 syscon-tcsr = <&tcsr>;
344
Pramod Guravd5d46542015-04-10 21:44:31 +0100345 gsbi7_serial: serial@16640000 {
Kumar Galaf335b8a2014-04-03 14:48:22 -0500346 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
347 reg = <0x16640000 0x1000>,
348 <0x16600000 0x1000>;
349 interrupts = <0 158 0x0>;
350 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
351 clock-names = "core", "iface";
352 status = "disabled";
353 };
354 };
355
John Stultz6a607e02015-09-18 13:31:12 +0100356 rng@1a500000 {
357 compatible = "qcom,prng";
358 reg = <0x1a500000 0x200>;
359 clocks = <&gcc PRNG_CLK>;
360 clock-names = "core";
361 };
362
Kumar Galaf335b8a2014-04-03 14:48:22 -0500363 qcom,ssbi@500000 {
364 compatible = "qcom,ssbi";
365 reg = <0x00500000 0x1000>;
366 qcom,controller-type = "pmic-arbiter";
Srinivas Kandagatla874443f2015-07-27 14:51:52 +0100367
368 pmicintc: pmic@0 {
369 compatible = "qcom,pm8921";
370 interrupt-parent = <&tlmm_pinmux>;
371 interrupts = <74 8>;
372 #interrupt-cells = <2>;
373 interrupt-controller;
374 #address-cells = <1>;
375 #size-cells = <0>;
376
377 pm8921_gpio: gpio@150 {
378
Stephen Boyd2ca9c2a42015-11-20 17:49:46 -0800379 compatible = "qcom,pm8921-gpio",
380 "qcom,ssbi-gpio";
Srinivas Kandagatla874443f2015-07-27 14:51:52 +0100381 reg = <0x150>;
382 interrupts = <192 1>, <193 1>, <194 1>,
383 <195 1>, <196 1>, <197 1>,
384 <198 1>, <199 1>, <200 1>,
385 <201 1>, <202 1>, <203 1>,
386 <204 1>, <205 1>, <206 1>,
387 <207 1>, <208 1>, <209 1>,
388 <210 1>, <211 1>, <212 1>,
389 <213 1>, <214 1>, <215 1>,
390 <216 1>, <217 1>, <218 1>,
391 <219 1>, <220 1>, <221 1>,
392 <222 1>, <223 1>, <224 1>,
393 <225 1>, <226 1>, <227 1>,
394 <228 1>, <229 1>, <230 1>,
395 <231 1>, <232 1>, <233 1>,
396 <234 1>, <235 1>;
397
398 gpio-controller;
399 #gpio-cells = <2>;
400
401 };
Srinivas Kandagatlabce36042015-07-27 14:52:02 +0100402
403 pm8921_mpps: mpps@50 {
Stephen Boyd2ca9c2a42015-11-20 17:49:46 -0800404 compatible = "qcom,pm8921-mpp",
405 "qcom,ssbi-mpp";
Srinivas Kandagatlabce36042015-07-27 14:52:02 +0100406 reg = <0x50>;
407 gpio-controller;
408 #gpio-cells = <2>;
409 interrupts =
410 <128 1>, <129 1>, <130 1>, <131 1>,
411 <132 1>, <133 1>, <134 1>, <135 1>,
412 <136 1>, <137 1>, <138 1>, <139 1>;
413 };
414
Srinivas Kandagatlabbf89b92015-09-18 13:31:19 +0100415 rtc@11d {
416 compatible = "qcom,pm8921-rtc";
417 interrupt-parent = <&pmicintc>;
418 interrupts = <39 1>;
419 reg = <0x11d>;
420 allow-set-time;
421 };
422
Srinivas Kandagatla3050c5f2015-09-18 13:31:25 +0100423 pwrkey@1c {
424 compatible = "qcom,pm8921-pwrkey";
425 reg = <0x1c>;
426 interrupt-parent = <&pmicintc>;
427 interrupts = <50 1>, <51 1>;
428 debounce = <15625>;
429 pull-up;
430 };
Srinivas Kandagatla874443f2015-07-27 14:51:52 +0100431 };
Kumar Galaf335b8a2014-04-03 14:48:22 -0500432 };
433
434 gcc: clock-controller@900000 {
435 compatible = "qcom,gcc-apq8064";
436 reg = <0x00900000 0x4000>;
437 #clock-cells = <1>;
438 #reset-cells = <1>;
439 };
Stephen Boyd3fe5e3c2014-07-16 13:49:43 -0700440
Kumar Gala1e1177b2015-01-28 13:36:12 -0800441 lcc: clock-controller@28000000 {
442 compatible = "qcom,lcc-apq8064";
443 reg = <0x28000000 0x1000>;
444 #clock-cells = <1>;
445 #reset-cells = <1>;
446 };
447
Stephen Boyd3fe5e3c2014-07-16 13:49:43 -0700448 mmcc: clock-controller@4000000 {
449 compatible = "qcom,mmcc-apq8064";
450 reg = <0x4000000 0x1000>;
451 #clock-cells = <1>;
452 #reset-cells = <1>;
453 };
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100454
Srinivas Kandagatladc2f8152015-04-10 21:42:44 +0100455 l2cc: clock-controller@2011000 {
456 compatible = "syscon";
457 reg = <0x2011000 0x1000>;
458 };
459
460 rpm@108000 {
461 compatible = "qcom,rpm-apq8064";
462 reg = <0x108000 0x1000>;
463 qcom,ipc = <&l2cc 0x8 2>;
464
465 interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
466 <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
467 <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
468 interrupt-names = "ack", "err", "wakeup";
469
Georgi Djakovaac1b292015-12-03 16:02:56 +0200470 rpmcc: clock-controller {
471 compatible = "qcom,rpmcc-apq8064", "qcom,rpmcc";
472 #clock-cells = <1>;
473 };
474
Srinivas Kandagatladc2f8152015-04-10 21:42:44 +0100475 regulators {
476 compatible = "qcom,rpm-pm8921-regulators";
477
Bjorn Andersson2bce6e22015-10-22 11:13:49 -0700478 pm8921_s1: s1 {};
479 pm8921_s2: s2 {};
480 pm8921_s3: s3 {};
481 pm8921_s4: s4 {};
482 pm8921_s7: s7 {};
483 pm8921_s8: s8 {};
484
485 pm8921_l1: l1 {};
486 pm8921_l2: l2 {};
487 pm8921_l3: l3 {};
488 pm8921_l4: l4 {};
489 pm8921_l5: l5 {};
490 pm8921_l6: l6 {};
491 pm8921_l7: l7 {};
492 pm8921_l8: l8 {};
493 pm8921_l9: l9 {};
494 pm8921_l10: l10 {};
495 pm8921_l11: l11 {};
496 pm8921_l12: l12 {};
497 pm8921_l14: l14 {};
498 pm8921_l15: l15 {};
499 pm8921_l16: l16 {};
500 pm8921_l17: l17 {};
501 pm8921_l18: l18 {};
502 pm8921_l21: l21 {};
503 pm8921_l22: l22 {};
504 pm8921_l23: l23 {};
505 pm8921_l24: l24 {};
506 pm8921_l25: l25 {};
507 pm8921_l26: l26 {};
508 pm8921_l27: l27 {};
509 pm8921_l28: l28 {};
510 pm8921_l29: l29 {};
511
512 pm8921_lvs1: lvs1 {};
513 pm8921_lvs2: lvs2 {};
514 pm8921_lvs3: lvs3 {};
515 pm8921_lvs4: lvs4 {};
516 pm8921_lvs5: lvs5 {};
517 pm8921_lvs6: lvs6 {};
518 pm8921_lvs7: lvs7 {};
519
520 pm8921_usb_switch: usb-switch {};
521
Srinivas Kandagatladc2f8152015-04-10 21:42:44 +0100522 pm8921_hdmi_switch: hdmi-switch {
523 bias-pull-down;
524 };
Bjorn Andersson2bce6e22015-10-22 11:13:49 -0700525
526 pm8921_ncp: ncp {};
Srinivas Kandagatladc2f8152015-04-10 21:42:44 +0100527 };
528 };
529
Srinivas Kandagatlaea986612015-04-10 21:43:42 +0100530 usb1_phy: phy@12500000 {
531 compatible = "qcom,usb-otg-ci";
532 reg = <0x12500000 0x400>;
533 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
534 status = "disabled";
535 dr_mode = "host";
536
537 clocks = <&gcc USB_HS1_XCVR_CLK>,
538 <&gcc USB_HS1_H_CLK>;
539 clock-names = "core", "iface";
540
541 resets = <&gcc USB_HS1_RESET>;
542 reset-names = "link";
543 };
544
Srinivas Kandagatla223280b2015-04-10 21:43:30 +0100545 usb3_phy: phy@12520000 {
546 compatible = "qcom,usb-otg-ci";
547 reg = <0x12520000 0x400>;
548 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
549 status = "disabled";
550 dr_mode = "host";
551
552 clocks = <&gcc USB_HS3_XCVR_CLK>,
553 <&gcc USB_HS3_H_CLK>;
554 clock-names = "core", "iface";
555
556 resets = <&gcc USB_HS3_RESET>;
557 reset-names = "link";
558 };
559
560 usb4_phy: phy@12530000 {
561 compatible = "qcom,usb-otg-ci";
562 reg = <0x12530000 0x400>;
563 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
564 status = "disabled";
565 dr_mode = "host";
566
567 clocks = <&gcc USB_HS4_XCVR_CLK>,
568 <&gcc USB_HS4_H_CLK>;
569 clock-names = "core", "iface";
570
571 resets = <&gcc USB_HS4_RESET>;
572 reset-names = "link";
573 };
574
Srinivas Kandagatlaea986612015-04-10 21:43:42 +0100575 gadget1: gadget@12500000 {
576 compatible = "qcom,ci-hdrc";
577 reg = <0x12500000 0x400>;
578 status = "disabled";
579 dr_mode = "peripheral";
580 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
581 usb-phy = <&usb1_phy>;
582 };
583
584 usb1: usb@12500000 {
585 compatible = "qcom,ehci-host";
586 reg = <0x12500000 0x400>;
587 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
588 status = "disabled";
589 usb-phy = <&usb1_phy>;
590 };
591
Srinivas Kandagatla223280b2015-04-10 21:43:30 +0100592 usb3: usb@12520000 {
593 compatible = "qcom,ehci-host";
594 reg = <0x12520000 0x400>;
595 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
596 status = "disabled";
597 usb-phy = <&usb3_phy>;
598 };
599
600 usb4: usb@12530000 {
601 compatible = "qcom,ehci-host";
602 reg = <0x12530000 0x400>;
603 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
604 status = "disabled";
605 usb-phy = <&usb4_phy>;
606 };
607
Srinivas Kandagatlae6293352015-04-10 21:43:56 +0100608 sata_phy0: phy@1b400000 {
609 compatible = "qcom,apq8064-sata-phy";
610 status = "disabled";
611 reg = <0x1b400000 0x200>;
612 reg-names = "phy_mem";
613 clocks = <&gcc SATA_PHY_CFG_CLK>;
614 clock-names = "cfg";
615 #phy-cells = <0>;
616 };
617
618 sata0: sata@29000000 {
619 compatible = "generic-ahci";
620 status = "disabled";
621 reg = <0x29000000 0x180>;
622 interrupts = <GIC_SPI 209 IRQ_TYPE_NONE>;
623
624 clocks = <&gcc SFAB_SATA_S_H_CLK>,
625 <&gcc SATA_H_CLK>,
626 <&gcc SATA_A_CLK>,
627 <&gcc SATA_RXOOB_CLK>,
628 <&gcc SATA_PMALIVE_CLK>;
629 clock-names = "slave_iface",
630 "iface",
631 "bus",
632 "rxoob",
633 "core_pmalive";
634
635 assigned-clocks = <&gcc SATA_RXOOB_CLK>,
636 <&gcc SATA_PMALIVE_CLK>;
637 assigned-clock-rates = <100000000>, <100000000>;
638
639 phys = <&sata_phy0>;
640 phy-names = "sata-phy";
641 };
642
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100643 /* Temporary fixed regulator */
Srinivas Kandagatlaedb81ca2014-05-16 20:18:53 +0100644 sdcc1bam:dma@12402000{
645 compatible = "qcom,bam-v1.3.0";
646 reg = <0x12402000 0x8000>;
647 interrupts = <0 98 0>;
648 clocks = <&gcc SDC1_H_CLK>;
649 clock-names = "bam_clk";
650 #dma-cells = <1>;
651 qcom,ee = <0>;
652 };
653
654 sdcc3bam:dma@12182000{
655 compatible = "qcom,bam-v1.3.0";
656 reg = <0x12182000 0x8000>;
657 interrupts = <0 96 0>;
658 clocks = <&gcc SDC3_H_CLK>;
659 clock-names = "bam_clk";
660 #dma-cells = <1>;
661 qcom,ee = <0>;
662 };
663
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100664 sdcc4bam:dma@121c2000{
665 compatible = "qcom,bam-v1.3.0";
666 reg = <0x121c2000 0x8000>;
667 interrupts = <0 95 0>;
668 clocks = <&gcc SDC4_H_CLK>;
669 clock-names = "bam_clk";
670 #dma-cells = <1>;
671 qcom,ee = <0>;
672 };
673
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100674 amba {
675 compatible = "arm,amba-bus";
676 #address-cells = <1>;
677 #size-cells = <1>;
678 ranges;
679 sdcc1: sdcc@12400000 {
680 status = "disabled";
681 compatible = "arm,pl18x", "arm,primecell";
682 arm,primecell-periphid = <0x00051180>;
683 reg = <0x12400000 0x2000>;
684 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
685 interrupt-names = "cmd_irq";
686 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
687 clock-names = "mclk", "apb_pclk";
688 bus-width = <8>;
689 max-frequency = <96000000>;
690 non-removable;
691 cap-sd-highspeed;
692 cap-mmc-highspeed;
Srinivas Kandagatlaedb81ca2014-05-16 20:18:53 +0100693 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
694 dma-names = "tx", "rx";
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100695 };
696
697 sdcc3: sdcc@12180000 {
698 compatible = "arm,pl18x", "arm,primecell";
699 arm,primecell-periphid = <0x00051180>;
700 status = "disabled";
701 reg = <0x12180000 0x2000>;
702 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
703 interrupt-names = "cmd_irq";
704 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
705 clock-names = "mclk", "apb_pclk";
706 bus-width = <4>;
707 cap-sd-highspeed;
708 cap-mmc-highspeed;
709 max-frequency = <192000000>;
710 no-1-8-v;
Srinivas Kandagatlaedb81ca2014-05-16 20:18:53 +0100711 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
712 dma-names = "tx", "rx";
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100713 };
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100714
715 sdcc4: sdcc@121c0000 {
716 compatible = "arm,pl18x", "arm,primecell";
717 arm,primecell-periphid = <0x00051180>;
718 status = "disabled";
719 reg = <0x121c0000 0x2000>;
720 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
721 interrupt-names = "cmd_irq";
722 clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>;
723 clock-names = "mclk", "apb_pclk";
724 bus-width = <4>;
725 cap-sd-highspeed;
726 cap-mmc-highspeed;
727 max-frequency = <48000000>;
Srinivas Kandagatla0be5fef2014-09-17 06:39:35 +0100728 dmas = <&sdcc4bam 2>, <&sdcc4bam 1>;
729 dma-names = "tx", "rx";
730 pinctrl-names = "default";
731 pinctrl-0 = <&sdc4_gpios>;
732 };
Srinivas Kandagatla045644f2014-04-29 08:33:52 +0100733 };
Andy Gross4105d9d2015-02-09 16:01:08 -0600734
735 tcsr: syscon@1a400000 {
736 compatible = "qcom,tcsr-apq8064", "syscon";
737 reg = <0x1a400000 0x100>;
738 };
Stanimir Varbanovbcc74b02015-12-18 14:38:58 +0200739
740 pcie: pci@1b500000 {
741 compatible = "qcom,pcie-apq8064", "snps,dw-pcie";
742 reg = <0x1b500000 0x1000
743 0x1b502000 0x80
744 0x1b600000 0x100
745 0x0ff00000 0x100000>;
746 reg-names = "dbi", "elbi", "parf", "config";
747 device_type = "pci";
748 linux,pci-domain = <0>;
749 bus-range = <0x00 0xff>;
750 num-lanes = <1>;
751 #address-cells = <3>;
752 #size-cells = <2>;
753 ranges = <0x81000000 0 0 0x0fe00000 0 0x00100000 /* I/O */
754 0x82000000 0 0 0x08000000 0 0x07e00000>; /* memory */
755 interrupts = <GIC_SPI 238 IRQ_TYPE_NONE>;
756 interrupt-names = "msi";
757 #interrupt-cells = <1>;
758 interrupt-map-mask = <0 0 0 0x7>;
759 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
760 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
761 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
762 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
763 clocks = <&gcc PCIE_A_CLK>,
764 <&gcc PCIE_H_CLK>,
765 <&gcc PCIE_PHY_REF_CLK>;
766 clock-names = "core", "iface", "phy";
767 resets = <&gcc PCIE_ACLK_RESET>,
768 <&gcc PCIE_HCLK_RESET>,
769 <&gcc PCIE_POR_RESET>,
770 <&gcc PCIE_PCI_RESET>,
771 <&gcc PCIE_PHY_RESET>;
772 reset-names = "axi", "ahb", "por", "pci", "phy";
773 status = "disabled";
774 };
Kumar Galaf335b8a2014-04-03 14:48:22 -0500775 };
776};
Srinivas Kandagatlaa30e78b2016-02-23 14:14:07 +0000777#include "qcom-apq8064-pins.dtsi"