ARM: dts: apq8064: Add pm8921 mfd and its gpio node
[deliverable/linux.git] / arch / arm / boot / dts / qcom-apq8064.dtsi
CommitLineData
f335b8af
KG
1/dts-v1/;
2
3#include "skeleton.dtsi"
4#include <dt-bindings/clock/qcom,gcc-msm8960.h>
223280b1 5#include <dt-bindings/reset/qcom,gcc-msm8960.h>
3fe5e3ce 6#include <dt-bindings/clock/qcom,mmcc-msm8960.h>
f335b8af 7#include <dt-bindings/soc/qcom,gsbi.h>
8b8936fc 8#include <dt-bindings/interrupt-controller/arm-gic.h>
f335b8af
KG
9/ {
10 model = "Qualcomm APQ8064";
11 compatible = "qcom,apq8064";
12 interrupt-parent = <&intc>;
13
14 cpus {
15 #address-cells = <1>;
16 #size-cells = <0>;
17
18 cpu@0 {
19 compatible = "qcom,krait";
20 enable-method = "qcom,kpss-acc-v1";
21 device_type = "cpu";
22 reg = <0>;
23 next-level-cache = <&L2>;
24 qcom,acc = <&acc0>;
25 qcom,saw = <&saw0>;
06c49f2b 26 cpu-idle-states = <&CPU_SPC>;
f335b8af
KG
27 };
28
29 cpu@1 {
30 compatible = "qcom,krait";
31 enable-method = "qcom,kpss-acc-v1";
32 device_type = "cpu";
33 reg = <1>;
34 next-level-cache = <&L2>;
35 qcom,acc = <&acc1>;
36 qcom,saw = <&saw1>;
06c49f2b 37 cpu-idle-states = <&CPU_SPC>;
f335b8af
KG
38 };
39
40 cpu@2 {
41 compatible = "qcom,krait";
42 enable-method = "qcom,kpss-acc-v1";
43 device_type = "cpu";
44 reg = <2>;
45 next-level-cache = <&L2>;
46 qcom,acc = <&acc2>;
47 qcom,saw = <&saw2>;
06c49f2b 48 cpu-idle-states = <&CPU_SPC>;
f335b8af
KG
49 };
50
51 cpu@3 {
52 compatible = "qcom,krait";
53 enable-method = "qcom,kpss-acc-v1";
54 device_type = "cpu";
55 reg = <3>;
56 next-level-cache = <&L2>;
57 qcom,acc = <&acc3>;
58 qcom,saw = <&saw3>;
06c49f2b 59 cpu-idle-states = <&CPU_SPC>;
f335b8af
KG
60 };
61
62 L2: l2-cache {
63 compatible = "cache";
64 cache-level = <2>;
65 };
06c49f2b
LI
66
67 idle-states {
68 CPU_SPC: spc {
69 compatible = "qcom,idle-state-spc",
70 "arm,idle-state";
71 entry-latency-us = <400>;
72 exit-latency-us = <900>;
73 min-residency-us = <3000>;
74 };
75 };
f335b8af
KG
76 };
77
78 cpu-pmu {
79 compatible = "qcom,krait-pmu";
80 interrupts = <1 10 0x304>;
81 };
82
83 soc: soc {
84 #address-cells = <1>;
85 #size-cells = <1>;
86 ranges;
87 compatible = "simple-bus";
88
8b8936fc
PG
89 tlmm_pinmux: pinctrl@800000 {
90 compatible = "qcom,apq8064-pinctrl";
91 reg = <0x800000 0x4000>;
92
93 gpio-controller;
94 #gpio-cells = <2>;
95 interrupt-controller;
96 #interrupt-cells = <2>;
97 interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
cd6dd11a
PG
98
99 pinctrl-names = "default";
100 pinctrl-0 = <&ps_hold>;
101
0be5fef1
SK
102 sdc4_gpios: sdc4-gpios {
103 pios {
104 pins = "gpio63", "gpio64", "gpio65", "gpio66", "gpio67", "gpio68";
105 function = "sdc4";
106 };
107 };
108
cd6dd11a
PG
109 ps_hold: ps_hold {
110 mux {
111 pins = "gpio78";
112 function = "ps_hold";
113 };
114 };
bc0d3076
SK
115
116 i2c1_pins: i2c1 {
117 mux {
118 pins = "gpio20", "gpio21";
119 function = "gsbi1";
120 };
121 };
3f62b46b
SK
122
123 i2c3_pins: i2c3 {
124 mux {
125 pins = "gpio8", "gpio9";
126 function = "gsbi3";
127 };
128 };
8b8936fc
PG
129 };
130
f335b8af
KG
131 intc: interrupt-controller@2000000 {
132 compatible = "qcom,msm-qgic2";
133 interrupt-controller;
134 #interrupt-cells = <3>;
135 reg = <0x02000000 0x1000>,
136 <0x02002000 0x1000>;
137 };
138
139 timer@200a000 {
140 compatible = "qcom,kpss-timer", "qcom,msm-timer";
141 interrupts = <1 1 0x301>,
142 <1 2 0x301>,
143 <1 3 0x301>;
144 reg = <0x0200a000 0x100>;
145 clock-frequency = <27000000>,
146 <32768>;
147 cpu-offset = <0x80000>;
148 };
149
150 acc0: clock-controller@2088000 {
151 compatible = "qcom,kpss-acc-v1";
152 reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
153 };
154
155 acc1: clock-controller@2098000 {
156 compatible = "qcom,kpss-acc-v1";
157 reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
158 };
159
160 acc2: clock-controller@20a8000 {
161 compatible = "qcom,kpss-acc-v1";
162 reg = <0x020a8000 0x1000>, <0x02008000 0x1000>;
163 };
164
165 acc3: clock-controller@20b8000 {
166 compatible = "qcom,kpss-acc-v1";
167 reg = <0x020b8000 0x1000>, <0x02008000 0x1000>;
168 };
169
9fc23ce3
LI
170 saw0: power-controller@2089000 {
171 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
f335b8af
KG
172 reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
173 regulator;
174 };
175
9fc23ce3
LI
176 saw1: power-controller@2099000 {
177 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
f335b8af
KG
178 reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
179 regulator;
180 };
181
9fc23ce3
LI
182 saw2: power-controller@20a9000 {
183 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
f335b8af
KG
184 reg = <0x020a9000 0x1000>, <0x02009000 0x1000>;
185 regulator;
186 };
187
9fc23ce3
LI
188 saw3: power-controller@20b9000 {
189 compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
f335b8af
KG
190 reg = <0x020b9000 0x1000>, <0x02009000 0x1000>;
191 regulator;
192 };
193
8c3166f5 194 gsbi1: gsbi@12440000 {
195 status = "disabled";
196 compatible = "qcom,gsbi-v1.0.0";
4105d9d6 197 cell-index = <1>;
8c3166f5 198 reg = <0x12440000 0x100>;
199 clocks = <&gcc GSBI1_H_CLK>;
200 clock-names = "iface";
201 #address-cells = <1>;
202 #size-cells = <1>;
203 ranges;
204
4105d9d6
AG
205 syscon-tcsr = <&tcsr>;
206
8c3166f5 207 i2c1: i2c@12460000 {
208 compatible = "qcom,i2c-qup-v1.1.1";
209 reg = <0x12460000 0x1000>;
210 interrupts = <0 194 IRQ_TYPE_NONE>;
211 clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
212 clock-names = "core", "iface";
213 #address-cells = <1>;
214 #size-cells = <0>;
215 };
216 };
217
218 gsbi2: gsbi@12480000 {
219 status = "disabled";
220 compatible = "qcom,gsbi-v1.0.0";
4105d9d6 221 cell-index = <2>;
8c3166f5 222 reg = <0x12480000 0x100>;
223 clocks = <&gcc GSBI2_H_CLK>;
224 clock-names = "iface";
225 #address-cells = <1>;
226 #size-cells = <1>;
227 ranges;
228
4105d9d6
AG
229 syscon-tcsr = <&tcsr>;
230
8c3166f5 231 i2c2: i2c@124a0000 {
232 compatible = "qcom,i2c-qup-v1.1.1";
233 reg = <0x124a0000 0x1000>;
234 interrupts = <0 196 IRQ_TYPE_NONE>;
235 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
236 clock-names = "core", "iface";
237 #address-cells = <1>;
238 #size-cells = <0>;
239 };
240 };
241
3f62b46b
SK
242 gsbi3: gsbi@16200000 {
243 status = "disabled";
244 compatible = "qcom,gsbi-v1.0.0";
245 reg = <0x16200000 0x100>;
246 clocks = <&gcc GSBI3_H_CLK>;
247 clock-names = "iface";
248 #address-cells = <1>;
249 #size-cells = <1>;
250 ranges;
251
252 i2c3: i2c@16280000 {
253 compatible = "qcom,i2c-qup-v1.1.1";
254 reg = <0x16280000 0x1000>;
255 interrupts = <GIC_SPI 151 IRQ_TYPE_NONE>;
256 clocks = <&gcc GSBI3_QUP_CLK>,
257 <&gcc GSBI3_H_CLK>;
258 clock-names = "core", "iface";
259 };
260 };
261
f335b8af
KG
262 gsbi7: gsbi@16600000 {
263 status = "disabled";
264 compatible = "qcom,gsbi-v1.0.0";
4105d9d6 265 cell-index = <7>;
f335b8af
KG
266 reg = <0x16600000 0x100>;
267 clocks = <&gcc GSBI7_H_CLK>;
268 clock-names = "iface";
269 #address-cells = <1>;
270 #size-cells = <1>;
271 ranges;
4105d9d6
AG
272 syscon-tcsr = <&tcsr>;
273
d5d4654e 274 gsbi7_serial: serial@16640000 {
f335b8af
KG
275 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
276 reg = <0x16640000 0x1000>,
277 <0x16600000 0x1000>;
278 interrupts = <0 158 0x0>;
279 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
280 clock-names = "core", "iface";
281 status = "disabled";
282 };
283 };
284
285 qcom,ssbi@500000 {
286 compatible = "qcom,ssbi";
287 reg = <0x00500000 0x1000>;
288 qcom,controller-type = "pmic-arbiter";
874443fe
SK
289
290 pmicintc: pmic@0 {
291 compatible = "qcom,pm8921";
292 interrupt-parent = <&tlmm_pinmux>;
293 interrupts = <74 8>;
294 #interrupt-cells = <2>;
295 interrupt-controller;
296 #address-cells = <1>;
297 #size-cells = <0>;
298
299 pm8921_gpio: gpio@150 {
300
301 compatible = "qcom,pm8921-gpio";
302 reg = <0x150>;
303 interrupts = <192 1>, <193 1>, <194 1>,
304 <195 1>, <196 1>, <197 1>,
305 <198 1>, <199 1>, <200 1>,
306 <201 1>, <202 1>, <203 1>,
307 <204 1>, <205 1>, <206 1>,
308 <207 1>, <208 1>, <209 1>,
309 <210 1>, <211 1>, <212 1>,
310 <213 1>, <214 1>, <215 1>,
311 <216 1>, <217 1>, <218 1>,
312 <219 1>, <220 1>, <221 1>,
313 <222 1>, <223 1>, <224 1>,
314 <225 1>, <226 1>, <227 1>,
315 <228 1>, <229 1>, <230 1>,
316 <231 1>, <232 1>, <233 1>,
317 <234 1>, <235 1>;
318
319 gpio-controller;
320 #gpio-cells = <2>;
321
322 };
323 };
f335b8af
KG
324 };
325
326 gcc: clock-controller@900000 {
327 compatible = "qcom,gcc-apq8064";
328 reg = <0x00900000 0x4000>;
329 #clock-cells = <1>;
330 #reset-cells = <1>;
331 };
3fe5e3ce 332
1e1177bf
KG
333 lcc: clock-controller@28000000 {
334 compatible = "qcom,lcc-apq8064";
335 reg = <0x28000000 0x1000>;
336 #clock-cells = <1>;
337 #reset-cells = <1>;
338 };
339
3fe5e3ce
SB
340 mmcc: clock-controller@4000000 {
341 compatible = "qcom,mmcc-apq8064";
342 reg = <0x4000000 0x1000>;
343 #clock-cells = <1>;
344 #reset-cells = <1>;
345 };
045644ff 346
dc2f8152
SK
347 l2cc: clock-controller@2011000 {
348 compatible = "syscon";
349 reg = <0x2011000 0x1000>;
350 };
351
352 rpm@108000 {
353 compatible = "qcom,rpm-apq8064";
354 reg = <0x108000 0x1000>;
355 qcom,ipc = <&l2cc 0x8 2>;
356
357 interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
358 <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
359 <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
360 interrupt-names = "ack", "err", "wakeup";
361
362 regulators {
363 compatible = "qcom,rpm-pm8921-regulators";
364
365 pm8921_hdmi_switch: hdmi-switch {
366 bias-pull-down;
367 };
368 };
369 };
370
ea986611
SK
371 usb1_phy: phy@12500000 {
372 compatible = "qcom,usb-otg-ci";
373 reg = <0x12500000 0x400>;
374 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
375 status = "disabled";
376 dr_mode = "host";
377
378 clocks = <&gcc USB_HS1_XCVR_CLK>,
379 <&gcc USB_HS1_H_CLK>;
380 clock-names = "core", "iface";
381
382 resets = <&gcc USB_HS1_RESET>;
383 reset-names = "link";
384 };
385
223280b1
SK
386 usb3_phy: phy@12520000 {
387 compatible = "qcom,usb-otg-ci";
388 reg = <0x12520000 0x400>;
389 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
390 status = "disabled";
391 dr_mode = "host";
392
393 clocks = <&gcc USB_HS3_XCVR_CLK>,
394 <&gcc USB_HS3_H_CLK>;
395 clock-names = "core", "iface";
396
397 resets = <&gcc USB_HS3_RESET>;
398 reset-names = "link";
399 };
400
401 usb4_phy: phy@12530000 {
402 compatible = "qcom,usb-otg-ci";
403 reg = <0x12530000 0x400>;
404 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
405 status = "disabled";
406 dr_mode = "host";
407
408 clocks = <&gcc USB_HS4_XCVR_CLK>,
409 <&gcc USB_HS4_H_CLK>;
410 clock-names = "core", "iface";
411
412 resets = <&gcc USB_HS4_RESET>;
413 reset-names = "link";
414 };
415
ea986611
SK
416 gadget1: gadget@12500000 {
417 compatible = "qcom,ci-hdrc";
418 reg = <0x12500000 0x400>;
419 status = "disabled";
420 dr_mode = "peripheral";
421 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
422 usb-phy = <&usb1_phy>;
423 };
424
425 usb1: usb@12500000 {
426 compatible = "qcom,ehci-host";
427 reg = <0x12500000 0x400>;
428 interrupts = <GIC_SPI 100 IRQ_TYPE_NONE>;
429 status = "disabled";
430 usb-phy = <&usb1_phy>;
431 };
432
223280b1
SK
433 usb3: usb@12520000 {
434 compatible = "qcom,ehci-host";
435 reg = <0x12520000 0x400>;
436 interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>;
437 status = "disabled";
438 usb-phy = <&usb3_phy>;
439 };
440
441 usb4: usb@12530000 {
442 compatible = "qcom,ehci-host";
443 reg = <0x12530000 0x400>;
444 interrupts = <GIC_SPI 215 IRQ_TYPE_NONE>;
445 status = "disabled";
446 usb-phy = <&usb4_phy>;
447 };
448
e629335f
SK
449 sata_phy0: phy@1b400000 {
450 compatible = "qcom,apq8064-sata-phy";
451 status = "disabled";
452 reg = <0x1b400000 0x200>;
453 reg-names = "phy_mem";
454 clocks = <&gcc SATA_PHY_CFG_CLK>;
455 clock-names = "cfg";
456 #phy-cells = <0>;
457 };
458
459 sata0: sata@29000000 {
460 compatible = "generic-ahci";
461 status = "disabled";
462 reg = <0x29000000 0x180>;
463 interrupts = <GIC_SPI 209 IRQ_TYPE_NONE>;
464
465 clocks = <&gcc SFAB_SATA_S_H_CLK>,
466 <&gcc SATA_H_CLK>,
467 <&gcc SATA_A_CLK>,
468 <&gcc SATA_RXOOB_CLK>,
469 <&gcc SATA_PMALIVE_CLK>;
470 clock-names = "slave_iface",
471 "iface",
472 "bus",
473 "rxoob",
474 "core_pmalive";
475
476 assigned-clocks = <&gcc SATA_RXOOB_CLK>,
477 <&gcc SATA_PMALIVE_CLK>;
478 assigned-clock-rates = <100000000>, <100000000>;
479
480 phys = <&sata_phy0>;
481 phy-names = "sata-phy";
482 };
483
045644ff
SK
484 /* Temporary fixed regulator */
485 vsdcc_fixed: vsdcc-regulator {
486 compatible = "regulator-fixed";
487 regulator-name = "SDCC Power";
488 regulator-min-microvolt = <2700000>;
489 regulator-max-microvolt = <2700000>;
490 regulator-always-on;
491 };
492
edb81ca3
SK
493 sdcc1bam:dma@12402000{
494 compatible = "qcom,bam-v1.3.0";
495 reg = <0x12402000 0x8000>;
496 interrupts = <0 98 0>;
497 clocks = <&gcc SDC1_H_CLK>;
498 clock-names = "bam_clk";
499 #dma-cells = <1>;
500 qcom,ee = <0>;
501 };
502
503 sdcc3bam:dma@12182000{
504 compatible = "qcom,bam-v1.3.0";
505 reg = <0x12182000 0x8000>;
506 interrupts = <0 96 0>;
507 clocks = <&gcc SDC3_H_CLK>;
508 clock-names = "bam_clk";
509 #dma-cells = <1>;
510 qcom,ee = <0>;
511 };
512
0be5fef1
SK
513 sdcc4bam:dma@121c2000{
514 compatible = "qcom,bam-v1.3.0";
515 reg = <0x121c2000 0x8000>;
516 interrupts = <0 95 0>;
517 clocks = <&gcc SDC4_H_CLK>;
518 clock-names = "bam_clk";
519 #dma-cells = <1>;
520 qcom,ee = <0>;
521 };
522
045644ff
SK
523 amba {
524 compatible = "arm,amba-bus";
525 #address-cells = <1>;
526 #size-cells = <1>;
527 ranges;
528 sdcc1: sdcc@12400000 {
529 status = "disabled";
530 compatible = "arm,pl18x", "arm,primecell";
531 arm,primecell-periphid = <0x00051180>;
532 reg = <0x12400000 0x2000>;
533 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
534 interrupt-names = "cmd_irq";
535 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
536 clock-names = "mclk", "apb_pclk";
537 bus-width = <8>;
538 max-frequency = <96000000>;
539 non-removable;
540 cap-sd-highspeed;
541 cap-mmc-highspeed;
542 vmmc-supply = <&vsdcc_fixed>;
edb81ca3
SK
543 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
544 dma-names = "tx", "rx";
045644ff
SK
545 };
546
547 sdcc3: sdcc@12180000 {
548 compatible = "arm,pl18x", "arm,primecell";
549 arm,primecell-periphid = <0x00051180>;
550 status = "disabled";
551 reg = <0x12180000 0x2000>;
552 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
553 interrupt-names = "cmd_irq";
554 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
555 clock-names = "mclk", "apb_pclk";
556 bus-width = <4>;
557 cap-sd-highspeed;
558 cap-mmc-highspeed;
559 max-frequency = <192000000>;
560 no-1-8-v;
561 vmmc-supply = <&vsdcc_fixed>;
edb81ca3
SK
562 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
563 dma-names = "tx", "rx";
045644ff 564 };
0be5fef1
SK
565
566 sdcc4: sdcc@121c0000 {
567 compatible = "arm,pl18x", "arm,primecell";
568 arm,primecell-periphid = <0x00051180>;
569 status = "disabled";
570 reg = <0x121c0000 0x2000>;
571 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
572 interrupt-names = "cmd_irq";
573 clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>;
574 clock-names = "mclk", "apb_pclk";
575 bus-width = <4>;
576 cap-sd-highspeed;
577 cap-mmc-highspeed;
578 max-frequency = <48000000>;
579 vmmc-supply = <&vsdcc_fixed>;
580 vqmmc-supply = <&vsdcc_fixed>;
581 dmas = <&sdcc4bam 2>, <&sdcc4bam 1>;
582 dma-names = "tx", "rx";
583 pinctrl-names = "default";
584 pinctrl-0 = <&sdc4_gpios>;
585 };
045644ff 586 };
4105d9d6
AG
587
588 tcsr: syscon@1a400000 {
589 compatible = "qcom,tcsr-apq8064", "syscon";
590 reg = <0x1a400000 0x100>;
591 };
f335b8af
KG
592 };
593};
This page took 0.106449 seconds and 5 git commands to generate.