Loading...
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include <dt-bindings/interrupt-controller/irq.h>
5#include <dt-bindings/interrupt-controller/arm-gic.h>
6#include <dt-bindings/clock/qcom,gcc-msm8660.h>
7#include <dt-bindings/soc/qcom,gsbi.h>
8
9/ {
10 #address-cells = <1>;
11 #size-cells = <1>;
12 model = "Qualcomm MSM8660";
13 compatible = "qcom,msm8660";
14 interrupt-parent = <&intc>;
15
16 cpus {
17 #address-cells = <1>;
18 #size-cells = <0>;
19
20 cpu@0 {
21 compatible = "qcom,scorpion";
22 enable-method = "qcom,gcc-msm8660";
23 device_type = "cpu";
24 reg = <0>;
25 next-level-cache = <&L2>;
26 };
27
28 cpu@1 {
29 compatible = "qcom,scorpion";
30 enable-method = "qcom,gcc-msm8660";
31 device_type = "cpu";
32 reg = <1>;
33 next-level-cache = <&L2>;
34 };
35
36 L2: l2-cache {
37 compatible = "cache";
38 cache-level = <2>;
39 };
40 };
41
42 memory {
43 device_type = "memory";
44 reg = <0x0 0x0>;
45 };
46
47 cpu-pmu {
48 compatible = "qcom,scorpion-mp-pmu";
49 interrupts = <1 9 0x304>;
50 };
51
52 clocks {
53 cxo_board: cxo-board-clk {
54 compatible = "fixed-clock";
55 #clock-cells = <0>;
56 clock-frequency = <19200000>;
57 clock-output-names = "cxo_board";
58 };
59
60 pxo_board: pxo-board-clk {
61 compatible = "fixed-clock";
62 #clock-cells = <0>;
63 clock-frequency = <27000000>;
64 clock-output-names = "pxo_board";
65 };
66
67 sleep-clk {
68 compatible = "fixed-clock";
69 #clock-cells = <0>;
70 clock-frequency = <32768>;
71 clock-output-names = "sleep_clk";
72 };
73 };
74
75 /*
76 * These channels from the ADC are simply hardware monitors.
77 * That is why the ADC is referred to as "HKADC" - HouseKeeping
78 * ADC.
79 */
80 iio-hwmon {
81 compatible = "iio-hwmon";
82 io-channels = <&xoadc 0x00 0x01>, /* Battery */
83 <&xoadc 0x00 0x02>, /* DC in (charger) */
84 <&xoadc 0x00 0x04>, /* VPH the main system voltage */
85 <&xoadc 0x00 0x0b>, /* Die temperature */
86 <&xoadc 0x00 0x0c>, /* Reference voltage 1.25V */
87 <&xoadc 0x00 0x0d>, /* Reference voltage 0.625V */
88 <&xoadc 0x00 0x0e>; /* Reference voltage 0.325V */
89 };
90
91 soc: soc {
92 #address-cells = <1>;
93 #size-cells = <1>;
94 ranges;
95 compatible = "simple-bus";
96
97 intc: interrupt-controller@2080000 {
98 compatible = "qcom,msm-8660-qgic";
99 interrupt-controller;
100 #interrupt-cells = <3>;
101 reg = < 0x02080000 0x1000 >,
102 < 0x02081000 0x1000 >;
103 };
104
105 timer@2000000 {
106 compatible = "qcom,scss-timer", "qcom,msm-timer";
107 interrupts = <1 0 0x301>,
108 <1 1 0x301>,
109 <1 2 0x301>;
110 reg = <0x02000000 0x100>;
111 clock-frequency = <27000000>,
112 <32768>;
113 cpu-offset = <0x40000>;
114 };
115
116 tlmm: pinctrl@800000 {
117 compatible = "qcom,msm8660-pinctrl";
118 reg = <0x800000 0x4000>;
119
120 gpio-controller;
121 gpio-ranges = <&tlmm 0 0 173>;
122 #gpio-cells = <2>;
123 interrupts = <0 16 0x4>;
124 interrupt-controller;
125 #interrupt-cells = <2>;
126
127 };
128
129 gcc: clock-controller@900000 {
130 compatible = "qcom,gcc-msm8660";
131 #clock-cells = <1>;
132 #power-domain-cells = <1>;
133 #reset-cells = <1>;
134 reg = <0x900000 0x4000>;
135 clocks = <&pxo_board>, <&cxo_board>;
136 clock-names = "pxo", "cxo";
137 };
138
139 gsbi1: gsbi@16000000 {
140 compatible = "qcom,gsbi-v1.0.0";
141 cell-index = <12>;
142 reg = <0x16000000 0x100>;
143 clocks = <&gcc GSBI1_H_CLK>;
144 clock-names = "iface";
145 #address-cells = <1>;
146 #size-cells = <1>;
147 ranges;
148
149 syscon-tcsr = <&tcsr>;
150
151 status = "disabled";
152
153 gsbi1_spi: spi@16080000 {
154 compatible = "qcom,spi-qup-v1.1.1";
155 reg = <0x16080000 0x1000>;
156 interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
157 clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
158 clock-names = "core", "iface";
159 #address-cells = <1>;
160 #size-cells = <0>;
161 status = "disabled";
162 };
163 };
164
165 gsbi3: gsbi@16200000 {
166 compatible = "qcom,gsbi-v1.0.0";
167 cell-index = <12>;
168 reg = <0x16200000 0x100>;
169 clocks = <&gcc GSBI3_H_CLK>;
170 clock-names = "iface";
171 #address-cells = <1>;
172 #size-cells = <1>;
173 ranges;
174
175 syscon-tcsr = <&tcsr>;
176 status = "disabled";
177
178 gsbi3_i2c: i2c@16280000 {
179 compatible = "qcom,i2c-qup-v1.1.1";
180 reg = <0x16280000 0x1000>;
181 interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>;
182 clocks = <&gcc GSBI3_QUP_CLK>, <&gcc GSBI3_H_CLK>;
183 clock-names = "core", "iface";
184 #address-cells = <1>;
185 #size-cells = <0>;
186 status = "disabled";
187 };
188 };
189
190 gsbi6: gsbi@16500000 {
191 compatible = "qcom,gsbi-v1.0.0";
192 cell-index = <12>;
193 reg = <0x16500000 0x100>;
194 clocks = <&gcc GSBI6_H_CLK>;
195 clock-names = "iface";
196 #address-cells = <1>;
197 #size-cells = <1>;
198 ranges;
199 status = "disabled";
200
201 syscon-tcsr = <&tcsr>;
202
203 gsbi6_serial: serial@16540000 {
204 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
205 reg = <0x16540000 0x1000>,
206 <0x16500000 0x1000>;
207 interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
208 clocks = <&gcc GSBI6_UART_CLK>, <&gcc GSBI6_H_CLK>;
209 clock-names = "core", "iface";
210 status = "disabled";
211 };
212
213 gsbi6_i2c: i2c@16580000 {
214 compatible = "qcom,i2c-qup-v1.1.1";
215 reg = <0x16580000 0x1000>;
216 interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>;
217 clocks = <&gcc GSBI6_QUP_CLK>, <&gcc GSBI6_H_CLK>;
218 clock-names = "core", "iface";
219 #address-cells = <1>;
220 #size-cells = <0>;
221 status = "disabled";
222 };
223 };
224
225 gsbi7: gsbi@16600000 {
226 compatible = "qcom,gsbi-v1.0.0";
227 cell-index = <12>;
228 reg = <0x16600000 0x100>;
229 clocks = <&gcc GSBI7_H_CLK>;
230 clock-names = "iface";
231 #address-cells = <1>;
232 #size-cells = <1>;
233 ranges;
234 status = "disabled";
235
236 syscon-tcsr = <&tcsr>;
237
238 gsbi7_serial: serial@16640000 {
239 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
240 reg = <0x16640000 0x1000>,
241 <0x16600000 0x1000>;
242 interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
243 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
244 clock-names = "core", "iface";
245 status = "disabled";
246 };
247
248 gsbi7_i2c: i2c@16680000 {
249 compatible = "qcom,i2c-qup-v1.1.1";
250 reg = <0x16680000 0x1000>;
251 interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
252 clocks = <&gcc GSBI7_QUP_CLK>, <&gcc GSBI7_H_CLK>;
253 clock-names = "core", "iface";
254 #address-cells = <1>;
255 #size-cells = <0>;
256 status = "disabled";
257 };
258 };
259
260 gsbi8: gsbi@19800000 {
261 compatible = "qcom,gsbi-v1.0.0";
262 cell-index = <12>;
263 reg = <0x19800000 0x100>;
264 clocks = <&gcc GSBI8_H_CLK>;
265 clock-names = "iface";
266 #address-cells = <1>;
267 #size-cells = <1>;
268 ranges;
269
270 syscon-tcsr = <&tcsr>;
271 status = "disabled";
272
273 gsbi8_i2c: i2c@19880000 {
274 compatible = "qcom,i2c-qup-v1.1.1";
275 reg = <0x19880000 0x1000>;
276 interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
277 clocks = <&gcc GSBI8_QUP_CLK>, <&gcc GSBI8_H_CLK>;
278 clock-names = "core", "iface";
279 #address-cells = <1>;
280 #size-cells = <0>;
281 status = "disabled";
282 };
283 };
284
285 gsbi12: gsbi@19c00000 {
286 compatible = "qcom,gsbi-v1.0.0";
287 cell-index = <12>;
288 reg = <0x19c00000 0x100>;
289 clocks = <&gcc GSBI12_H_CLK>;
290 clock-names = "iface";
291 #address-cells = <1>;
292 #size-cells = <1>;
293 ranges;
294
295 syscon-tcsr = <&tcsr>;
296
297 gsbi12_serial: serial@19c40000 {
298 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
299 reg = <0x19c40000 0x1000>,
300 <0x19c00000 0x1000>;
301 interrupts = <0 195 IRQ_TYPE_LEVEL_HIGH>;
302 clocks = <&gcc GSBI12_UART_CLK>, <&gcc GSBI12_H_CLK>;
303 clock-names = "core", "iface";
304 status = "disabled";
305 };
306
307 gsbi12_i2c: i2c@19c80000 {
308 compatible = "qcom,i2c-qup-v1.1.1";
309 reg = <0x19c80000 0x1000>;
310 interrupts = <0 196 IRQ_TYPE_LEVEL_HIGH>;
311 clocks = <&gcc GSBI12_QUP_CLK>, <&gcc GSBI12_H_CLK>;
312 clock-names = "core", "iface";
313 #address-cells = <1>;
314 #size-cells = <0>;
315 status = "disabled";
316 };
317 };
318
319 ebi2: external-bus@1a100000 {
320 compatible = "qcom,msm8660-ebi2";
321 #address-cells = <2>;
322 #size-cells = <1>;
323 ranges = <0 0x0 0x1a800000 0x00800000>,
324 <1 0x0 0x1b000000 0x00800000>,
325 <2 0x0 0x1b800000 0x00800000>,
326 <3 0x0 0x1d000000 0x08000000>,
327 <4 0x0 0x1c800000 0x00800000>,
328 <5 0x0 0x1c000000 0x00800000>;
329 reg = <0x1a100000 0x1000>, <0x1a110000 0x1000>;
330 reg-names = "ebi2", "xmem";
331 clocks = <&gcc EBI2_2X_CLK>, <&gcc EBI2_CLK>;
332 clock-names = "ebi2x", "ebi2";
333 status = "disabled";
334 };
335
336 ssbi@500000 {
337 compatible = "qcom,ssbi";
338 reg = <0x500000 0x1000>;
339 qcom,controller-type = "pmic-arbiter";
340
341 pm8058: pmic {
342 compatible = "qcom,pm8058";
343 interrupt-parent = <&tlmm>;
344 interrupts = <88 8>;
345 #interrupt-cells = <2>;
346 interrupt-controller;
347 #address-cells = <1>;
348 #size-cells = <0>;
349
350 pm8058_gpio: gpio@150 {
351 compatible = "qcom,pm8058-gpio",
352 "qcom,ssbi-gpio";
353 reg = <0x150>;
354 interrupt-controller;
355 #interrupt-cells = <2>;
356 gpio-controller;
357 gpio-ranges = <&pm8058_gpio 0 0 44>;
358 #gpio-cells = <2>;
359
360 };
361
362 pm8058_mpps: mpps@50 {
363 compatible = "qcom,pm8058-mpp",
364 "qcom,ssbi-mpp";
365 reg = <0x50>;
366 gpio-controller;
367 #gpio-cells = <2>;
368 gpio-ranges = <&pm8058_mpps 0 0 12>;
369 interrupt-controller;
370 #interrupt-cells = <2>;
371 };
372
373 pwrkey@1c {
374 compatible = "qcom,pm8058-pwrkey";
375 reg = <0x1c>;
376 interrupt-parent = <&pm8058>;
377 interrupts = <50 1>, <51 1>;
378 debounce = <15625>;
379 pull-up;
380 };
381
382 pm8058_keypad: keypad@148 {
383 compatible = "qcom,pm8058-keypad";
384 reg = <0x148>;
385 interrupt-parent = <&pm8058>;
386 interrupts = <74 1>, <75 1>;
387 debounce = <15>;
388 scan-delay = <32>;
389 row-hold = <91500>;
390 };
391
392 xoadc: xoadc@197 {
393 compatible = "qcom,pm8058-adc";
394 reg = <0x197>;
395 interrupts-extended = <&pm8058 76 IRQ_TYPE_EDGE_RISING>;
396 #address-cells = <2>;
397 #size-cells = <0>;
398 #io-channel-cells = <2>;
399
400 vcoin: adc-channel@0 {
401 reg = <0x00 0x00>;
402 };
403 vbat: adc-channel@1 {
404 reg = <0x00 0x01>;
405 };
406 dcin: adc-channel@2 {
407 reg = <0x00 0x02>;
408 };
409 ichg: adc-channel@3 {
410 reg = <0x00 0x03>;
411 };
412 vph_pwr: adc-channel@4 {
413 reg = <0x00 0x04>;
414 };
415 usb_vbus: adc-channel@a {
416 reg = <0x00 0x0a>;
417 };
418 die_temp: adc-channel@b {
419 reg = <0x00 0x0b>;
420 };
421 ref_625mv: adc-channel@c {
422 reg = <0x00 0x0c>;
423 };
424 ref_1250mv: adc-channel@d {
425 reg = <0x00 0x0d>;
426 };
427 ref_325mv: adc-channel@e {
428 reg = <0x00 0x0e>;
429 };
430 ref_muxoff: adc-channel@f {
431 reg = <0x00 0x0f>;
432 };
433 };
434
435 rtc@1e8 {
436 compatible = "qcom,pm8058-rtc";
437 reg = <0x1e8>;
438 interrupt-parent = <&pm8058>;
439 interrupts = <39 1>;
440 allow-set-time;
441 };
442
443 vibrator@4a {
444 compatible = "qcom,pm8058-vib";
445 reg = <0x4a>;
446 };
447
448 pm8058_led48: led@48 {
449 compatible = "qcom,pm8058-keypad-led";
450 reg = <0x48>;
451 status = "disabled";
452 };
453
454 pm8058_led131: led@131 {
455 compatible = "qcom,pm8058-led";
456 reg = <0x131>;
457 status = "disabled";
458 };
459
460 pm8058_led132: led@132 {
461 compatible = "qcom,pm8058-led";
462 reg = <0x132>;
463 status = "disabled";
464 };
465
466 pm8058_led133: led@133 {
467 compatible = "qcom,pm8058-led";
468 reg = <0x133>;
469 status = "disabled";
470 };
471
472 };
473 };
474
475 l2cc: clock-controller@2082000 {
476 compatible = "qcom,kpss-gcc", "syscon";
477 reg = <0x02082000 0x1000>;
478 };
479
480 rpm: rpm@104000 {
481 compatible = "qcom,rpm-msm8660";
482 reg = <0x00104000 0x1000>;
483 qcom,ipc = <&l2cc 0x8 2>;
484
485 interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
486 <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
487 <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
488 interrupt-names = "ack", "err", "wakeup";
489 clocks = <&gcc RPM_MSG_RAM_H_CLK>;
490 clock-names = "ram";
491
492 rpmcc: clock-controller {
493 compatible = "qcom,rpmcc-msm8660", "qcom,rpmcc";
494 #clock-cells = <1>;
495 clocks = <&pxo_board>;
496 clock-names = "pxo";
497 };
498
499 regulators-0 {
500 compatible = "qcom,rpm-pm8901-regulators";
501
502 pm8901_l0: l0 {};
503 pm8901_l1: l1 {};
504 pm8901_l2: l2 {};
505 pm8901_l3: l3 {};
506 pm8901_l4: l4 {};
507 pm8901_l5: l5 {};
508 pm8901_l6: l6 {};
509
510 /* S0 and S1 Handled as SAW regulators by SPM */
511 pm8901_s2: s2 {};
512 pm8901_s3: s3 {};
513 pm8901_s4: s4 {};
514
515 pm8901_lvs0: lvs0 {};
516 pm8901_lvs1: lvs1 {};
517 pm8901_lvs2: lvs2 {};
518 pm8901_lvs3: lvs3 {};
519
520 pm8901_mvs: mvs {};
521 };
522
523 regulators-1 {
524 compatible = "qcom,rpm-pm8058-regulators";
525
526 pm8058_l0: l0 {};
527 pm8058_l1: l1 {};
528 pm8058_l2: l2 {};
529 pm8058_l3: l3 {};
530 pm8058_l4: l4 {};
531 pm8058_l5: l5 {};
532 pm8058_l6: l6 {};
533 pm8058_l7: l7 {};
534 pm8058_l8: l8 {};
535 pm8058_l9: l9 {};
536 pm8058_l10: l10 {};
537 pm8058_l11: l11 {};
538 pm8058_l12: l12 {};
539 pm8058_l13: l13 {};
540 pm8058_l14: l14 {};
541 pm8058_l15: l15 {};
542 pm8058_l16: l16 {};
543 pm8058_l17: l17 {};
544 pm8058_l18: l18 {};
545 pm8058_l19: l19 {};
546 pm8058_l20: l20 {};
547 pm8058_l21: l21 {};
548 pm8058_l22: l22 {};
549 pm8058_l23: l23 {};
550 pm8058_l24: l24 {};
551 pm8058_l25: l25 {};
552
553 pm8058_s0: s0 {};
554 pm8058_s1: s1 {};
555 pm8058_s2: s2 {};
556 pm8058_s3: s3 {};
557 pm8058_s4: s4 {};
558
559 pm8058_lvs0: lvs0 {};
560 pm8058_lvs1: lvs1 {};
561
562 pm8058_ncp: ncp {};
563 };
564 };
565
566 amba {
567 compatible = "simple-bus";
568 #address-cells = <1>;
569 #size-cells = <1>;
570 ranges;
571 sdcc1: mmc@12400000 {
572 status = "disabled";
573 compatible = "arm,pl18x", "arm,primecell";
574 arm,primecell-periphid = <0x00051180>;
575 reg = <0x12400000 0x8000>;
576 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
577 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
578 clock-names = "mclk", "apb_pclk";
579 bus-width = <8>;
580 max-frequency = <48000000>;
581 non-removable;
582 cap-sd-highspeed;
583 cap-mmc-highspeed;
584 };
585
586 sdcc2: mmc@12140000 {
587 status = "disabled";
588 compatible = "arm,pl18x", "arm,primecell";
589 arm,primecell-periphid = <0x00051180>;
590 reg = <0x12140000 0x8000>;
591 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
592 clocks = <&gcc SDC2_CLK>, <&gcc SDC2_H_CLK>;
593 clock-names = "mclk", "apb_pclk";
594 bus-width = <8>;
595 max-frequency = <48000000>;
596 cap-sd-highspeed;
597 cap-mmc-highspeed;
598 };
599
600 sdcc3: mmc@12180000 {
601 compatible = "arm,pl18x", "arm,primecell";
602 arm,primecell-periphid = <0x00051180>;
603 status = "disabled";
604 reg = <0x12180000 0x8000>;
605 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
606 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
607 clock-names = "mclk", "apb_pclk";
608 bus-width = <4>;
609 cap-sd-highspeed;
610 cap-mmc-highspeed;
611 max-frequency = <48000000>;
612 no-1-8-v;
613 };
614
615 sdcc4: mmc@121c0000 {
616 compatible = "arm,pl18x", "arm,primecell";
617 arm,primecell-periphid = <0x00051180>;
618 status = "disabled";
619 reg = <0x121c0000 0x8000>;
620 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
621 clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>;
622 clock-names = "mclk", "apb_pclk";
623 bus-width = <4>;
624 max-frequency = <48000000>;
625 cap-sd-highspeed;
626 cap-mmc-highspeed;
627 };
628
629 sdcc5: mmc@12200000 {
630 compatible = "arm,pl18x", "arm,primecell";
631 arm,primecell-periphid = <0x00051180>;
632 status = "disabled";
633 reg = <0x12200000 0x8000>;
634 interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
635 clocks = <&gcc SDC5_CLK>, <&gcc SDC5_H_CLK>;
636 clock-names = "mclk", "apb_pclk";
637 bus-width = <4>;
638 cap-sd-highspeed;
639 cap-mmc-highspeed;
640 max-frequency = <48000000>;
641 };
642 };
643
644 tcsr: syscon@1a400000 {
645 compatible = "qcom,tcsr-msm8660", "syscon";
646 reg = <0x1a400000 0x100>;
647 };
648 };
649
650};
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include <dt-bindings/interrupt-controller/irq.h>
5#include <dt-bindings/interrupt-controller/arm-gic.h>
6#include <dt-bindings/clock/qcom,gcc-msm8660.h>
7#include <dt-bindings/soc/qcom,gsbi.h>
8
9/ {
10 #address-cells = <1>;
11 #size-cells = <1>;
12 model = "Qualcomm MSM8660";
13 compatible = "qcom,msm8660";
14 interrupt-parent = <&intc>;
15
16 cpus {
17 #address-cells = <1>;
18 #size-cells = <0>;
19
20 cpu@0 {
21 compatible = "qcom,scorpion";
22 enable-method = "qcom,gcc-msm8660";
23 device_type = "cpu";
24 reg = <0>;
25 next-level-cache = <&L2>;
26 };
27
28 cpu@1 {
29 compatible = "qcom,scorpion";
30 enable-method = "qcom,gcc-msm8660";
31 device_type = "cpu";
32 reg = <1>;
33 next-level-cache = <&L2>;
34 };
35
36 L2: l2-cache {
37 compatible = "cache";
38 cache-level = <2>;
39 };
40 };
41
42 memory {
43 device_type = "memory";
44 reg = <0x0 0x0>;
45 };
46
47 cpu-pmu {
48 compatible = "qcom,scorpion-mp-pmu";
49 interrupts = <1 9 0x304>;
50 };
51
52 clocks {
53 cxo_board {
54 compatible = "fixed-clock";
55 #clock-cells = <0>;
56 clock-frequency = <19200000>;
57 };
58
59 pxo_board {
60 compatible = "fixed-clock";
61 #clock-cells = <0>;
62 clock-frequency = <27000000>;
63 };
64
65 sleep_clk {
66 compatible = "fixed-clock";
67 #clock-cells = <0>;
68 clock-frequency = <32768>;
69 };
70 };
71
72 /*
73 * These channels from the ADC are simply hardware monitors.
74 * That is why the ADC is referred to as "HKADC" - HouseKeeping
75 * ADC.
76 */
77 iio-hwmon {
78 compatible = "iio-hwmon";
79 io-channels = <&xoadc 0x00 0x01>, /* Battery */
80 <&xoadc 0x00 0x02>, /* DC in (charger) */
81 <&xoadc 0x00 0x04>, /* VPH the main system voltage */
82 <&xoadc 0x00 0x0b>, /* Die temperature */
83 <&xoadc 0x00 0x0c>, /* Reference voltage 1.25V */
84 <&xoadc 0x00 0x0d>, /* Reference voltage 0.625V */
85 <&xoadc 0x00 0x0e>; /* Reference voltage 0.325V */
86 };
87
88 soc: soc {
89 #address-cells = <1>;
90 #size-cells = <1>;
91 ranges;
92 compatible = "simple-bus";
93
94 intc: interrupt-controller@2080000 {
95 compatible = "qcom,msm-8660-qgic";
96 interrupt-controller;
97 #interrupt-cells = <3>;
98 reg = < 0x02080000 0x1000 >,
99 < 0x02081000 0x1000 >;
100 };
101
102 timer@2000000 {
103 compatible = "qcom,scss-timer", "qcom,msm-timer";
104 interrupts = <1 0 0x301>,
105 <1 1 0x301>,
106 <1 2 0x301>;
107 reg = <0x02000000 0x100>;
108 clock-frequency = <27000000>,
109 <32768>;
110 cpu-offset = <0x40000>;
111 };
112
113 tlmm: pinctrl@800000 {
114 compatible = "qcom,msm8660-pinctrl";
115 reg = <0x800000 0x4000>;
116
117 gpio-controller;
118 gpio-ranges = <&tlmm 0 0 173>;
119 #gpio-cells = <2>;
120 interrupts = <0 16 0x4>;
121 interrupt-controller;
122 #interrupt-cells = <2>;
123
124 };
125
126 gcc: clock-controller@900000 {
127 compatible = "qcom,gcc-msm8660";
128 #clock-cells = <1>;
129 #reset-cells = <1>;
130 reg = <0x900000 0x4000>;
131 };
132
133 gsbi6: gsbi@16500000 {
134 compatible = "qcom,gsbi-v1.0.0";
135 cell-index = <12>;
136 reg = <0x16500000 0x100>;
137 clocks = <&gcc GSBI6_H_CLK>;
138 clock-names = "iface";
139 #address-cells = <1>;
140 #size-cells = <1>;
141 ranges;
142 status = "disabled";
143
144 syscon-tcsr = <&tcsr>;
145
146 gsbi6_serial: serial@16540000 {
147 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
148 reg = <0x16540000 0x1000>,
149 <0x16500000 0x1000>;
150 interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
151 clocks = <&gcc GSBI6_UART_CLK>, <&gcc GSBI6_H_CLK>;
152 clock-names = "core", "iface";
153 status = "disabled";
154 };
155
156 gsbi6_i2c: i2c@16580000 {
157 compatible = "qcom,i2c-qup-v1.1.1";
158 reg = <0x16580000 0x1000>;
159 interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>;
160 clocks = <&gcc GSBI6_QUP_CLK>, <&gcc GSBI6_H_CLK>;
161 clock-names = "core", "iface";
162 #address-cells = <1>;
163 #size-cells = <0>;
164 status = "disabled";
165 };
166 };
167
168 gsbi7: gsbi@16600000 {
169 compatible = "qcom,gsbi-v1.0.0";
170 cell-index = <12>;
171 reg = <0x16600000 0x100>;
172 clocks = <&gcc GSBI7_H_CLK>;
173 clock-names = "iface";
174 #address-cells = <1>;
175 #size-cells = <1>;
176 ranges;
177 status = "disabled";
178
179 syscon-tcsr = <&tcsr>;
180
181 gsbi7_serial: serial@16640000 {
182 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
183 reg = <0x16640000 0x1000>,
184 <0x16600000 0x1000>;
185 interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
186 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
187 clock-names = "core", "iface";
188 status = "disabled";
189 };
190
191 gsbi7_i2c: i2c@16680000 {
192 compatible = "qcom,i2c-qup-v1.1.1";
193 reg = <0x16680000 0x1000>;
194 interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>;
195 clocks = <&gcc GSBI7_QUP_CLK>, <&gcc GSBI7_H_CLK>;
196 clock-names = "core", "iface";
197 #address-cells = <1>;
198 #size-cells = <0>;
199 status = "disabled";
200 };
201 };
202
203 gsbi8: gsbi@19800000 {
204 compatible = "qcom,gsbi-v1.0.0";
205 cell-index = <12>;
206 reg = <0x19800000 0x100>;
207 clocks = <&gcc GSBI8_H_CLK>;
208 clock-names = "iface";
209 #address-cells = <1>;
210 #size-cells = <1>;
211 ranges;
212
213 syscon-tcsr = <&tcsr>;
214
215 gsbi8_i2c: i2c@19880000 {
216 compatible = "qcom,i2c-qup-v1.1.1";
217 reg = <0x19880000 0x1000>;
218 interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
219 clocks = <&gcc GSBI8_QUP_CLK>, <&gcc GSBI8_H_CLK>;
220 clock-names = "core", "iface";
221 #address-cells = <1>;
222 #size-cells = <0>;
223 status = "disabled";
224 };
225 };
226
227 gsbi12: gsbi@19c00000 {
228 compatible = "qcom,gsbi-v1.0.0";
229 cell-index = <12>;
230 reg = <0x19c00000 0x100>;
231 clocks = <&gcc GSBI12_H_CLK>;
232 clock-names = "iface";
233 #address-cells = <1>;
234 #size-cells = <1>;
235 ranges;
236
237 syscon-tcsr = <&tcsr>;
238
239 gsbi12_serial: serial@19c40000 {
240 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
241 reg = <0x19c40000 0x1000>,
242 <0x19c00000 0x1000>;
243 interrupts = <0 195 IRQ_TYPE_LEVEL_HIGH>;
244 clocks = <&gcc GSBI12_UART_CLK>, <&gcc GSBI12_H_CLK>;
245 clock-names = "core", "iface";
246 status = "disabled";
247 };
248
249 gsbi12_i2c: i2c@19c80000 {
250 compatible = "qcom,i2c-qup-v1.1.1";
251 reg = <0x19c80000 0x1000>;
252 interrupts = <0 196 IRQ_TYPE_LEVEL_HIGH>;
253 clocks = <&gcc GSBI12_QUP_CLK>, <&gcc GSBI12_H_CLK>;
254 clock-names = "core", "iface";
255 #address-cells = <1>;
256 #size-cells = <0>;
257 status = "disabled";
258 };
259 };
260
261 external-bus@1a100000 {
262 compatible = "qcom,msm8660-ebi2";
263 #address-cells = <2>;
264 #size-cells = <1>;
265 ranges = <0 0x0 0x1a800000 0x00800000>,
266 <1 0x0 0x1b000000 0x00800000>,
267 <2 0x0 0x1b800000 0x00800000>,
268 <3 0x0 0x1d000000 0x08000000>,
269 <4 0x0 0x1c800000 0x00800000>,
270 <5 0x0 0x1c000000 0x00800000>;
271 reg = <0x1a100000 0x1000>, <0x1a110000 0x1000>;
272 reg-names = "ebi2", "xmem";
273 clocks = <&gcc EBI2_2X_CLK>, <&gcc EBI2_CLK>;
274 clock-names = "ebi2x", "ebi2";
275 status = "disabled";
276 };
277
278 qcom,ssbi@500000 {
279 compatible = "qcom,ssbi";
280 reg = <0x500000 0x1000>;
281 qcom,controller-type = "pmic-arbiter";
282
283 pm8058: pmic@0 {
284 compatible = "qcom,pm8058";
285 interrupt-parent = <&tlmm>;
286 interrupts = <88 8>;
287 #interrupt-cells = <2>;
288 interrupt-controller;
289 #address-cells = <1>;
290 #size-cells = <0>;
291
292 pm8058_gpio: gpio@150 {
293 compatible = "qcom,pm8058-gpio",
294 "qcom,ssbi-gpio";
295 reg = <0x150>;
296 interrupt-controller;
297 #interrupt-cells = <2>;
298 gpio-controller;
299 gpio-ranges = <&pm8058_gpio 0 0 44>;
300 #gpio-cells = <2>;
301
302 };
303
304 pm8058_mpps: mpps@50 {
305 compatible = "qcom,pm8058-mpp",
306 "qcom,ssbi-mpp";
307 reg = <0x50>;
308 gpio-controller;
309 #gpio-cells = <2>;
310 interrupt-parent = <&pm8058>;
311 interrupts =
312 <128 IRQ_TYPE_NONE>,
313 <129 IRQ_TYPE_NONE>,
314 <130 IRQ_TYPE_NONE>,
315 <131 IRQ_TYPE_NONE>,
316 <132 IRQ_TYPE_NONE>,
317 <133 IRQ_TYPE_NONE>,
318 <134 IRQ_TYPE_NONE>,
319 <135 IRQ_TYPE_NONE>,
320 <136 IRQ_TYPE_NONE>,
321 <137 IRQ_TYPE_NONE>,
322 <138 IRQ_TYPE_NONE>,
323 <139 IRQ_TYPE_NONE>;
324 };
325
326 pwrkey@1c {
327 compatible = "qcom,pm8058-pwrkey";
328 reg = <0x1c>;
329 interrupt-parent = <&pm8058>;
330 interrupts = <50 1>, <51 1>;
331 debounce = <15625>;
332 pull-up;
333 };
334
335 keypad@148 {
336 compatible = "qcom,pm8058-keypad";
337 reg = <0x148>;
338 interrupt-parent = <&pm8058>;
339 interrupts = <74 1>, <75 1>;
340 debounce = <15>;
341 scan-delay = <32>;
342 row-hold = <91500>;
343 };
344
345 xoadc: xoadc@197 {
346 compatible = "qcom,pm8058-adc";
347 reg = <0x197>;
348 interrupts-extended = <&pm8058 76 IRQ_TYPE_EDGE_RISING>;
349 #address-cells = <2>;
350 #size-cells = <0>;
351 #io-channel-cells = <2>;
352
353 vcoin: adc-channel@0 {
354 reg = <0x00 0x00>;
355 };
356 vbat: adc-channel@1 {
357 reg = <0x00 0x01>;
358 };
359 dcin: adc-channel@2 {
360 reg = <0x00 0x02>;
361 };
362 ichg: adc-channel@3 {
363 reg = <0x00 0x03>;
364 };
365 vph_pwr: adc-channel@4 {
366 reg = <0x00 0x04>;
367 };
368 usb_vbus: adc-channel@a {
369 reg = <0x00 0x0a>;
370 };
371 die_temp: adc-channel@b {
372 reg = <0x00 0x0b>;
373 };
374 ref_625mv: adc-channel@c {
375 reg = <0x00 0x0c>;
376 };
377 ref_1250mv: adc-channel@d {
378 reg = <0x00 0x0d>;
379 };
380 ref_325mv: adc-channel@e {
381 reg = <0x00 0x0e>;
382 };
383 ref_muxoff: adc-channel@f {
384 reg = <0x00 0x0f>;
385 };
386 };
387
388 rtc@1e8 {
389 compatible = "qcom,pm8058-rtc";
390 reg = <0x1e8>;
391 interrupt-parent = <&pm8058>;
392 interrupts = <39 1>;
393 allow-set-time;
394 };
395
396 vibrator@4a {
397 compatible = "qcom,pm8058-vib";
398 reg = <0x4a>;
399 };
400 };
401 };
402
403 l2cc: clock-controller@2082000 {
404 compatible = "syscon";
405 reg = <0x02082000 0x1000>;
406 };
407
408 rpm: rpm@104000 {
409 compatible = "qcom,rpm-msm8660";
410 reg = <0x00104000 0x1000>;
411 qcom,ipc = <&l2cc 0x8 2>;
412
413 interrupts = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
414 <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
415 <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
416 interrupt-names = "ack", "err", "wakeup";
417 clocks = <&gcc RPM_MSG_RAM_H_CLK>;
418 clock-names = "ram";
419
420 rpmcc: clock-controller {
421 compatible = "qcom,rpmcc-msm8660", "qcom,rpmcc";
422 #clock-cells = <1>;
423 };
424
425 pm8901-regulators {
426 compatible = "qcom,rpm-pm8901-regulators";
427
428 pm8901_l0: l0 {};
429 pm8901_l1: l1 {};
430 pm8901_l2: l2 {};
431 pm8901_l3: l3 {};
432 pm8901_l4: l4 {};
433 pm8901_l5: l5 {};
434 pm8901_l6: l6 {};
435
436 /* S0 and S1 Handled as SAW regulators by SPM */
437 pm8901_s2: s2 {};
438 pm8901_s3: s3 {};
439 pm8901_s4: s4 {};
440
441 pm8901_lvs0: lvs0 {};
442 pm8901_lvs1: lvs1 {};
443 pm8901_lvs2: lvs2 {};
444 pm8901_lvs3: lvs3 {};
445
446 pm8901_mvs: mvs {};
447 };
448
449 pm8058-regulators {
450 compatible = "qcom,rpm-pm8058-regulators";
451
452 pm8058_l0: l0 {};
453 pm8058_l1: l1 {};
454 pm8058_l2: l2 {};
455 pm8058_l3: l3 {};
456 pm8058_l4: l4 {};
457 pm8058_l5: l5 {};
458 pm8058_l6: l6 {};
459 pm8058_l7: l7 {};
460 pm8058_l8: l8 {};
461 pm8058_l9: l9 {};
462 pm8058_l10: l10 {};
463 pm8058_l11: l11 {};
464 pm8058_l12: l12 {};
465 pm8058_l13: l13 {};
466 pm8058_l14: l14 {};
467 pm8058_l15: l15 {};
468 pm8058_l16: l16 {};
469 pm8058_l17: l17 {};
470 pm8058_l18: l18 {};
471 pm8058_l19: l19 {};
472 pm8058_l20: l20 {};
473 pm8058_l21: l21 {};
474 pm8058_l22: l22 {};
475 pm8058_l23: l23 {};
476 pm8058_l24: l24 {};
477 pm8058_l25: l25 {};
478
479 pm8058_s0: s0 {};
480 pm8058_s1: s1 {};
481 pm8058_s2: s2 {};
482 pm8058_s3: s3 {};
483 pm8058_s4: s4 {};
484
485 pm8058_lvs0: lvs0 {};
486 pm8058_lvs1: lvs1 {};
487
488 pm8058_ncp: ncp {};
489 };
490 };
491
492 amba {
493 compatible = "simple-bus";
494 #address-cells = <1>;
495 #size-cells = <1>;
496 ranges;
497 sdcc1: sdcc@12400000 {
498 status = "disabled";
499 compatible = "arm,pl18x", "arm,primecell";
500 arm,primecell-periphid = <0x00051180>;
501 reg = <0x12400000 0x8000>;
502 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
503 interrupt-names = "cmd_irq";
504 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
505 clock-names = "mclk", "apb_pclk";
506 bus-width = <8>;
507 max-frequency = <48000000>;
508 non-removable;
509 cap-sd-highspeed;
510 cap-mmc-highspeed;
511 };
512
513 sdcc2: sdcc@12140000 {
514 status = "disabled";
515 compatible = "arm,pl18x", "arm,primecell";
516 arm,primecell-periphid = <0x00051180>;
517 reg = <0x12140000 0x8000>;
518 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
519 interrupt-names = "cmd_irq";
520 clocks = <&gcc SDC2_CLK>, <&gcc SDC2_H_CLK>;
521 clock-names = "mclk", "apb_pclk";
522 bus-width = <8>;
523 max-frequency = <48000000>;
524 cap-sd-highspeed;
525 cap-mmc-highspeed;
526 };
527
528 sdcc3: sdcc@12180000 {
529 compatible = "arm,pl18x", "arm,primecell";
530 arm,primecell-periphid = <0x00051180>;
531 status = "disabled";
532 reg = <0x12180000 0x8000>;
533 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
534 interrupt-names = "cmd_irq";
535 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
536 clock-names = "mclk", "apb_pclk";
537 bus-width = <4>;
538 cap-sd-highspeed;
539 cap-mmc-highspeed;
540 max-frequency = <48000000>;
541 no-1-8-v;
542 };
543
544 sdcc4: sdcc@121c0000 {
545 compatible = "arm,pl18x", "arm,primecell";
546 arm,primecell-periphid = <0x00051180>;
547 status = "disabled";
548 reg = <0x121c0000 0x8000>;
549 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
550 interrupt-names = "cmd_irq";
551 clocks = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>;
552 clock-names = "mclk", "apb_pclk";
553 bus-width = <4>;
554 max-frequency = <48000000>;
555 cap-sd-highspeed;
556 cap-mmc-highspeed;
557 };
558
559 sdcc5: sdcc@12200000 {
560 compatible = "arm,pl18x", "arm,primecell";
561 arm,primecell-periphid = <0x00051180>;
562 status = "disabled";
563 reg = <0x12200000 0x8000>;
564 interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
565 interrupt-names = "cmd_irq";
566 clocks = <&gcc SDC5_CLK>, <&gcc SDC5_H_CLK>;
567 clock-names = "mclk", "apb_pclk";
568 bus-width = <4>;
569 cap-sd-highspeed;
570 cap-mmc-highspeed;
571 max-frequency = <48000000>;
572 };
573 };
574
575 tcsr: syscon@1a400000 {
576 compatible = "qcom,tcsr-msm8660", "syscon";
577 reg = <0x1a400000 0x100>;
578 };
579 };
580
581};