device-tree: aqp8064.dtsi: Remove usb phy dr_mode = "host"
[cascardo/linux.git] / arch / arm / boot / dts / qcom-apq8064.dtsi
1 /dts-v1/;
2
3 #include "skeleton.dtsi"
4 #include <dt-bindings/clock/qcom,gcc-msm8960.h>
5 #include <dt-bindings/reset/qcom,gcc-msm8960.h>
6 #include <dt-bindings/clock/qcom,mmcc-msm8960.h>
7 #include <dt-bindings/soc/qcom,gsbi.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 / {
10         model = "Qualcomm APQ8064";
11         compatible = "qcom,apq8064";
12         interrupt-parent = <&intc>;
13
14         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
25         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>;
37                         cpu-idle-states = <&CPU_SPC>;
38                 };
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>;
48                         cpu-idle-states = <&CPU_SPC>;
49                 };
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>;
59                         cpu-idle-states = <&CPU_SPC>;
60                 };
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>;
70                         cpu-idle-states = <&CPU_SPC>;
71                 };
72
73                 L2: l2-cache {
74                         compatible = "cache";
75                         cache-level = <2>;
76                 };
77
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                 };
87         };
88
89         cpu-pmu {
90                 compatible = "qcom,krait-pmu";
91                 interrupts = <1 10 0x304>;
92         };
93
94         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
114         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
127         smd {
128                 compatible = "qcom,smd";
129
130                 modem@0 {
131                         interrupts = <0 37 IRQ_TYPE_EDGE_RISING>;
132
133                         qcom,ipc = <&l2cc 8 3>;
134                         qcom,smd-edge = <0>;
135
136                         status = "disabled";
137                 };
138
139                 q6@1 {
140                         interrupts = <0 90 IRQ_TYPE_EDGE_RISING>;
141
142                         qcom,ipc = <&l2cc 8 15>;
143                         qcom,smd-edge = <1>;
144
145                         status = "disabled";
146                 };
147
148                 dsps@3 {
149                         interrupts = <0 138 IRQ_TYPE_EDGE_RISING>;
150
151                         qcom,ipc = <&sps_sic_non_secure 0x4080 0>;
152                         qcom,smd-edge = <3>;
153
154                         status = "disabled";
155                 };
156
157                 riva@6 {
158                         interrupts = <0 198 IRQ_TYPE_EDGE_RISING>;
159
160                         qcom,ipc = <&l2cc 8 25>;
161                         qcom,smd-edge = <6>;
162
163                         status = "disabled";
164                 };
165         };
166
167         smsm {
168                 compatible = "qcom,smsm";
169
170                 #address-cells = <1>;
171                 #size-cells = <0>;
172
173                 qcom,ipc-1 = <&l2cc 8 4>;
174                 qcom,ipc-2 = <&l2cc 8 14>;
175                 qcom,ipc-3 = <&l2cc 8 23>;
176                 qcom,ipc-4 = <&sps_sic_non_secure 0x4094 0>;
177
178                 apps_smsm: apps@0 {
179                         reg = <0>;
180                         #qcom,smem-state-cells = <1>;
181                 };
182
183                 modem_smsm: modem@1 {
184                         reg = <1>;
185                         interrupts = <0 38 IRQ_TYPE_EDGE_RISING>;
186
187                         interrupt-controller;
188                         #interrupt-cells = <2>;
189                 };
190
191                 q6_smsm: q6@2 {
192                         reg = <2>;
193                         interrupts = <0 89 IRQ_TYPE_EDGE_RISING>;
194
195                         interrupt-controller;
196                         #interrupt-cells = <2>;
197                 };
198
199                 wcnss_smsm: wcnss@3 {
200                         reg = <3>;
201                         interrupts = <0 204 IRQ_TYPE_EDGE_RISING>;
202
203                         interrupt-controller;
204                         #interrupt-cells = <2>;
205                 };
206
207                 dsps_smsm: dsps@4 {
208                         reg = <4>;
209                         interrupts = <0 137 IRQ_TYPE_EDGE_RISING>;
210
211                         interrupt-controller;
212                         #interrupt-cells = <2>;
213                 };
214         };
215
216         firmware {
217                 scm {
218                         compatible = "qcom,scm-apq8064";
219                 };
220         };
221
222         soc: soc {
223                 #address-cells = <1>;
224                 #size-cells = <1>;
225                 ranges;
226                 compatible = "simple-bus";
227
228                 tlmm_pinmux: pinctrl@800000 {
229                         compatible = "qcom,apq8064-pinctrl";
230                         reg = <0x800000 0x4000>;
231
232                         gpio-controller;
233                         #gpio-cells = <2>;
234                         interrupt-controller;
235                         #interrupt-cells = <2>;
236                         interrupts = <0 16 IRQ_TYPE_LEVEL_HIGH>;
237
238                         pinctrl-names = "default";
239                         pinctrl-0 = <&ps_hold>;
240                 };
241
242                 sfpb_wrapper_mutex: syscon@1200000 {
243                         compatible = "syscon";
244                         reg = <0x01200000 0x8000>;
245                 };
246
247                 intc: interrupt-controller@2000000 {
248                         compatible = "qcom,msm-qgic2";
249                         interrupt-controller;
250                         #interrupt-cells = <3>;
251                         reg = <0x02000000 0x1000>,
252                               <0x02002000 0x1000>;
253                 };
254
255                 timer@200a000 {
256                         compatible = "qcom,kpss-timer",
257                                      "qcom,kpss-wdt-apq8064", "qcom,msm-timer";
258                         interrupts = <1 1 0x301>,
259                                      <1 2 0x301>,
260                                      <1 3 0x301>;
261                         reg = <0x0200a000 0x100>;
262                         clock-frequency = <27000000>,
263                                           <32768>;
264                         cpu-offset = <0x80000>;
265                 };
266
267                 acc0: clock-controller@2088000 {
268                         compatible = "qcom,kpss-acc-v1";
269                         reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
270                 };
271
272                 acc1: clock-controller@2098000 {
273                         compatible = "qcom,kpss-acc-v1";
274                         reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
275                 };
276
277                 acc2: clock-controller@20a8000 {
278                         compatible = "qcom,kpss-acc-v1";
279                         reg = <0x020a8000 0x1000>, <0x02008000 0x1000>;
280                 };
281
282                 acc3: clock-controller@20b8000 {
283                         compatible = "qcom,kpss-acc-v1";
284                         reg = <0x020b8000 0x1000>, <0x02008000 0x1000>;
285                 };
286
287                 saw0: power-controller@2089000 {
288                         compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
289                         reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
290                         regulator;
291                 };
292
293                 saw1: power-controller@2099000 {
294                         compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
295                         reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
296                         regulator;
297                 };
298
299                 saw2: power-controller@20a9000 {
300                         compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
301                         reg = <0x020a9000 0x1000>, <0x02009000 0x1000>;
302                         regulator;
303                 };
304
305                 saw3: power-controller@20b9000 {
306                         compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
307                         reg = <0x020b9000 0x1000>, <0x02009000 0x1000>;
308                         regulator;
309                 };
310
311                 sps_sic_non_secure: sps-sic-non-secure@12100000 {
312                         compatible      = "syscon";
313                         reg             = <0x12100000 0x10000>;
314                 };
315
316                 gsbi1: gsbi@12440000 {
317                         status = "disabled";
318                         compatible = "qcom,gsbi-v1.0.0";
319                         cell-index = <1>;
320                         reg = <0x12440000 0x100>;
321                         clocks = <&gcc GSBI1_H_CLK>;
322                         clock-names = "iface";
323                         #address-cells = <1>;
324                         #size-cells = <1>;
325                         ranges;
326
327                         syscon-tcsr = <&tcsr>;
328
329                         gsbi1_serial: serial@12450000 {
330                                 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
331                                 reg = <0x12450000 0x100>,
332                                       <0x12400000 0x03>;
333                                 interrupts = <0 193 0x0>;
334                                 clocks = <&gcc GSBI1_UART_CLK>, <&gcc GSBI1_H_CLK>;
335                                 clock-names = "core", "iface";
336                                 status = "disabled";
337                         };
338
339                         gsbi1_i2c: i2c@12460000 {
340                                 compatible = "qcom,i2c-qup-v1.1.1";
341                                 pinctrl-0 = <&i2c1_pins>;
342                                 pinctrl-1 = <&i2c1_pins_sleep>;
343                                 pinctrl-names = "default", "sleep";
344                                 reg = <0x12460000 0x1000>;
345                                 interrupts = <0 194 IRQ_TYPE_NONE>;
346                                 clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;
347                                 clock-names = "core", "iface";
348                                 #address-cells = <1>;
349                                 #size-cells = <0>;
350                         };
351
352                 };
353
354                 gsbi2: gsbi@12480000 {
355                         status = "disabled";
356                         compatible = "qcom,gsbi-v1.0.0";
357                         cell-index = <2>;
358                         reg = <0x12480000 0x100>;
359                         clocks = <&gcc GSBI2_H_CLK>;
360                         clock-names = "iface";
361                         #address-cells = <1>;
362                         #size-cells = <1>;
363                         ranges;
364
365                         syscon-tcsr = <&tcsr>;
366
367                         gsbi2_i2c: i2c@124a0000 {
368                                 compatible = "qcom,i2c-qup-v1.1.1";
369                                 reg = <0x124a0000 0x1000>;
370                                 pinctrl-0 = <&i2c2_pins>;
371                                 pinctrl-1 = <&i2c2_pins_sleep>;
372                                 pinctrl-names = "default", "sleep";
373                                 interrupts = <0 196 IRQ_TYPE_NONE>;
374                                 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
375                                 clock-names = "core", "iface";
376                                 #address-cells = <1>;
377                                 #size-cells = <0>;
378                         };
379                 };
380
381                 gsbi3: gsbi@16200000 {
382                         status = "disabled";
383                         compatible = "qcom,gsbi-v1.0.0";
384                         cell-index = <3>;
385                         reg = <0x16200000 0x100>;
386                         clocks = <&gcc GSBI3_H_CLK>;
387                         clock-names = "iface";
388                         #address-cells = <1>;
389                         #size-cells = <1>;
390                         ranges;
391                         gsbi3_i2c: i2c@16280000 {
392                                 compatible = "qcom,i2c-qup-v1.1.1";
393                                 pinctrl-0 = <&i2c3_pins>;
394                                 pinctrl-1 = <&i2c3_pins_sleep>;
395                                 pinctrl-names = "default", "sleep";
396                                 reg = <0x16280000 0x1000>;
397                                 interrupts = <GIC_SPI 151 IRQ_TYPE_NONE>;
398                                 clocks = <&gcc GSBI3_QUP_CLK>,
399                                          <&gcc GSBI3_H_CLK>;
400                                 clock-names = "core", "iface";
401                                 #address-cells = <1>;
402                                 #size-cells = <0>;
403                         };
404                 };
405
406                 gsbi4: gsbi@16300000 {
407                         status = "disabled";
408                         compatible = "qcom,gsbi-v1.0.0";
409                         cell-index = <4>;
410                         reg = <0x16300000 0x03>;
411                         clocks = <&gcc GSBI4_H_CLK>;
412                         clock-names = "iface";
413                         #address-cells = <1>;
414                         #size-cells = <1>;
415                         ranges;
416
417                         gsbi4_i2c: i2c@16380000 {
418                                 compatible = "qcom,i2c-qup-v1.1.1";
419                                 pinctrl-0 = <&i2c4_pins>;
420                                 pinctrl-1 = <&i2c4_pins_sleep>;
421                                 pinctrl-names = "default", "sleep";
422                                 reg = <0x16380000 0x1000>;
423                                 interrupts = <GIC_SPI 153 IRQ_TYPE_NONE>;
424                                 clocks = <&gcc GSBI4_QUP_CLK>,
425                                          <&gcc GSBI4_H_CLK>;
426                                 clock-names = "core", "iface";
427                         };
428                 };
429
430                 gsbi5: gsbi@1a200000 {
431                         status = "disabled";
432                         compatible = "qcom,gsbi-v1.0.0";
433                         cell-index = <5>;
434                         reg = <0x1a200000 0x03>;
435                         clocks = <&gcc GSBI5_H_CLK>;
436                         clock-names = "iface";
437                         #address-cells = <1>;
438                         #size-cells = <1>;
439                         ranges;
440
441                         gsbi5_serial: serial@1a240000 {
442                                 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
443                                 reg = <0x1a240000 0x100>,
444                                       <0x1a200000 0x03>;
445                                 interrupts = <0 154 0x0>;
446                                 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
447                                 clock-names = "core", "iface";
448                                 status = "disabled";
449                         };
450
451                         gsbi5_spi: spi@1a280000 {
452                                 compatible = "qcom,spi-qup-v1.1.1";
453                                 reg = <0x1a280000 0x1000>;
454                                 interrupts = <0 155 0>;
455                                 pinctrl-0 = <&spi5_default>;
456                                 pinctrl-1 = <&spi5_sleep>;
457                                 pinctrl-names = "default", "sleep";
458                                 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
459                                 clock-names = "core", "iface";
460                                 status = "disabled";
461                                 #address-cells = <1>;
462                                 #size-cells = <0>;
463                         };
464                 };
465
466                 gsbi6: gsbi@16500000 {
467                         status = "disabled";
468                         compatible = "qcom,gsbi-v1.0.0";
469                         cell-index = <6>;
470                         reg = <0x16500000 0x03>;
471                         clocks = <&gcc GSBI6_H_CLK>;
472                         clock-names = "iface";
473                         #address-cells = <1>;
474                         #size-cells = <1>;
475                         ranges;
476
477                         gsbi6_serial: serial@16540000 {
478                                 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
479                                 reg = <0x16540000 0x100>,
480                                       <0x16500000 0x03>;
481                                 interrupts = <0 156 0x0>;
482                                 clocks = <&gcc GSBI6_UART_CLK>, <&gcc GSBI6_H_CLK>;
483                                 clock-names = "core", "iface";
484                                 status = "disabled";
485                         };
486
487                         gsbi6_i2c: i2c@16580000 {
488                                 compatible = "qcom,i2c-qup-v1.1.1";
489                                 pinctrl-0 = <&i2c6_pins>;
490                                 pinctrl-1 = <&i2c6_pins_sleep>;
491                                 pinctrl-names = "default", "sleep";
492                                 reg = <0x16580000 0x1000>;
493                                 interrupts = <GIC_SPI 157 IRQ_TYPE_NONE>;
494                                 clocks = <&gcc GSBI6_QUP_CLK>,
495                                          <&gcc GSBI6_H_CLK>;
496                                 clock-names = "core", "iface";
497                         };
498                 };
499
500                 gsbi7: gsbi@16600000 {
501                         status = "disabled";
502                         compatible = "qcom,gsbi-v1.0.0";
503                         cell-index = <7>;
504                         reg = <0x16600000 0x100>;
505                         clocks = <&gcc GSBI7_H_CLK>;
506                         clock-names = "iface";
507                         #address-cells = <1>;
508                         #size-cells = <1>;
509                         ranges;
510                         syscon-tcsr = <&tcsr>;
511
512                         gsbi7_serial: serial@16640000 {
513                                 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
514                                 reg = <0x16640000 0x1000>,
515                                       <0x16600000 0x1000>;
516                                 interrupts = <0 158 0x0>;
517                                 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
518                                 clock-names = "core", "iface";
519                                 status = "disabled";
520                         };
521
522                         gsbi7_i2c: i2c@16680000 {
523                                 compatible = "qcom,i2c-qup-v1.1.1";
524                                 pinctrl-0 = <&i2c7_pins>;
525                                 pinctrl-1 = <&i2c7_pins_sleep>;
526                                 pinctrl-names = "default", "sleep";
527                                 reg = <0x16680000 0x1000>;
528                                 interrupts = <GIC_SPI 159 IRQ_TYPE_NONE>;
529                                 clocks = <&gcc GSBI7_QUP_CLK>,
530                                          <&gcc GSBI7_H_CLK>;
531                                 clock-names = "core", "iface";
532                                 status = "disabled";
533                         };
534                 };
535
536                 rng@1a500000 {
537                         compatible = "qcom,prng";
538                         reg = <0x1a500000 0x200>;
539                         clocks = <&gcc PRNG_CLK>;
540                         clock-names = "core";
541                 };
542
543                 qcom,ssbi@500000 {
544                         compatible = "qcom,ssbi";
545                         reg = <0x00500000 0x1000>;
546                         qcom,controller-type = "pmic-arbiter";
547
548                         pmicintc: pmic@0 {
549                                 compatible = "qcom,pm8921";
550                                 interrupt-parent = <&tlmm_pinmux>;
551                                 interrupts = <74 8>;
552                                 #interrupt-cells = <2>;
553                                 interrupt-controller;
554                                 #address-cells = <1>;
555                                 #size-cells = <0>;
556
557                                 pm8921_gpio: gpio@150 {
558
559                                         compatible = "qcom,pm8921-gpio",
560                                                      "qcom,ssbi-gpio";
561                                         reg = <0x150>;
562                                         interrupts = <192 1>, <193 1>, <194 1>,
563                                                      <195 1>, <196 1>, <197 1>,
564                                                      <198 1>, <199 1>, <200 1>,
565                                                      <201 1>, <202 1>, <203 1>,
566                                                      <204 1>, <205 1>, <206 1>,
567                                                      <207 1>, <208 1>, <209 1>,
568                                                      <210 1>, <211 1>, <212 1>,
569                                                      <213 1>, <214 1>, <215 1>,
570                                                      <216 1>, <217 1>, <218 1>,
571                                                      <219 1>, <220 1>, <221 1>,
572                                                      <222 1>, <223 1>, <224 1>,
573                                                      <225 1>, <226 1>, <227 1>,
574                                                      <228 1>, <229 1>, <230 1>,
575                                                      <231 1>, <232 1>, <233 1>,
576                                                      <234 1>, <235 1>;
577
578                                         gpio-controller;
579                                         #gpio-cells = <2>;
580
581                                 };
582
583                                 pm8921_mpps: mpps@50 {
584                                         compatible = "qcom,pm8921-mpp",
585                                                      "qcom,ssbi-mpp";
586                                         reg = <0x50>;
587                                         gpio-controller;
588                                         #gpio-cells = <2>;
589                                         interrupts =
590                                         <128 1>, <129 1>, <130 1>, <131 1>,
591                                         <132 1>, <133 1>, <134 1>, <135 1>,
592                                         <136 1>, <137 1>, <138 1>, <139 1>;
593                                 };
594
595                                 rtc@11d {
596                                         compatible = "qcom,pm8921-rtc";
597                                         interrupt-parent = <&pmicintc>;
598                                         interrupts = <39 1>;
599                                         reg = <0x11d>;
600                                         allow-set-time;
601                                 };
602
603                                 pwrkey@1c {
604                                         compatible = "qcom,pm8921-pwrkey";
605                                         reg = <0x1c>;
606                                         interrupt-parent = <&pmicintc>;
607                                         interrupts = <50 1>, <51 1>;
608                                         debounce = <15625>;
609                                         pull-up;
610                                 };
611                         };
612                 };
613
614                 gcc: clock-controller@900000 {
615                         compatible = "qcom,gcc-apq8064";
616                         reg = <0x00900000 0x4000>;
617                         #clock-cells = <1>;
618                         #reset-cells = <1>;
619                 };
620
621                 lcc: clock-controller@28000000 {
622                         compatible = "qcom,lcc-apq8064";
623                         reg = <0x28000000 0x1000>;
624                         #clock-cells = <1>;
625                         #reset-cells = <1>;
626                 };
627
628                 mmcc: clock-controller@4000000 {
629                         compatible = "qcom,mmcc-apq8064";
630                         reg = <0x4000000 0x1000>;
631                         #clock-cells = <1>;
632                         #reset-cells = <1>;
633                 };
634
635                 l2cc: clock-controller@2011000 {
636                         compatible      = "syscon";
637                         reg             = <0x2011000 0x1000>;
638                 };
639
640                 rpm@108000 {
641                         compatible      = "qcom,rpm-apq8064";
642                         reg             = <0x108000 0x1000>;
643                         qcom,ipc        = <&l2cc 0x8 2>;
644
645                         interrupts      = <GIC_SPI 19 IRQ_TYPE_EDGE_RISING>,
646                                           <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
647                                           <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>;
648                         interrupt-names = "ack", "err", "wakeup";
649
650                         rpmcc: clock-controller {
651                                 compatible      = "qcom,rpmcc-apq8064", "qcom,rpmcc";
652                                 #clock-cells = <1>;
653                         };
654
655                         regulators {
656                                 compatible = "qcom,rpm-pm8921-regulators";
657
658                                 pm8921_s1: s1 {};
659                                 pm8921_s2: s2 {};
660                                 pm8921_s3: s3 {};
661                                 pm8921_s4: s4 {};
662                                 pm8921_s7: s7 {};
663                                 pm8921_s8: s8 {};
664
665                                 pm8921_l1: l1 {};
666                                 pm8921_l2: l2 {};
667                                 pm8921_l3: l3 {};
668                                 pm8921_l4: l4 {};
669                                 pm8921_l5: l5 {};
670                                 pm8921_l6: l6 {};
671                                 pm8921_l7: l7 {};
672                                 pm8921_l8: l8 {};
673                                 pm8921_l9: l9 {};
674                                 pm8921_l10: l10 {};
675                                 pm8921_l11: l11 {};
676                                 pm8921_l12: l12 {};
677                                 pm8921_l14: l14 {};
678                                 pm8921_l15: l15 {};
679                                 pm8921_l16: l16 {};
680                                 pm8921_l17: l17 {};
681                                 pm8921_l18: l18 {};
682                                 pm8921_l21: l21 {};
683                                 pm8921_l22: l22 {};
684                                 pm8921_l23: l23 {};
685                                 pm8921_l24: l24 {};
686                                 pm8921_l25: l25 {};
687                                 pm8921_l26: l26 {};
688                                 pm8921_l27: l27 {};
689                                 pm8921_l28: l28 {};
690                                 pm8921_l29: l29 {};
691
692                                 pm8921_lvs1: lvs1 {};
693                                 pm8921_lvs2: lvs2 {};
694                                 pm8921_lvs3: lvs3 {};
695                                 pm8921_lvs4: lvs4 {};
696                                 pm8921_lvs5: lvs5 {};
697                                 pm8921_lvs6: lvs6 {};
698                                 pm8921_lvs7: lvs7 {};
699
700                                 pm8921_usb_switch: usb-switch {};
701
702                                 pm8921_hdmi_switch: hdmi-switch {
703                                         bias-pull-down;
704                                 };
705
706                                 pm8921_ncp: ncp {};
707                         };
708                 };
709
710                 usb1_phy: phy@12500000 {
711                         compatible      = "qcom,usb-otg-ci";
712                         reg             = <0x12500000 0x400>;
713                         interrupts      = <GIC_SPI 100 IRQ_TYPE_NONE>;
714                         status          = "disabled";
715
716                         clocks          = <&gcc USB_HS1_XCVR_CLK>,
717                                           <&gcc USB_HS1_H_CLK>;
718                         clock-names     = "core", "iface";
719
720                         resets          = <&gcc USB_HS1_RESET>;
721                         reset-names     = "link";
722                 };
723
724                 usb3_phy: phy@12520000 {
725                         compatible      = "qcom,usb-otg-ci";
726                         reg             = <0x12520000 0x400>;
727                         interrupts      = <GIC_SPI 188 IRQ_TYPE_NONE>;
728                         status          = "disabled";
729                         dr_mode         = "host";
730
731                         clocks          = <&gcc USB_HS3_XCVR_CLK>,
732                                           <&gcc USB_HS3_H_CLK>;
733                         clock-names     = "core", "iface";
734
735                         resets          = <&gcc USB_HS3_RESET>;
736                         reset-names     = "link";
737                 };
738
739                 usb4_phy: phy@12530000 {
740                         compatible      = "qcom,usb-otg-ci";
741                         reg             = <0x12530000 0x400>;
742                         interrupts      = <GIC_SPI 215 IRQ_TYPE_NONE>;
743                         status          = "disabled";
744                         dr_mode         = "host";
745
746                         clocks          = <&gcc USB_HS4_XCVR_CLK>,
747                                           <&gcc USB_HS4_H_CLK>;
748                         clock-names     = "core", "iface";
749
750                         resets          = <&gcc USB_HS4_RESET>;
751                         reset-names     = "link";
752                 };
753
754                 gadget1: gadget@12500000 {
755                         compatible      = "qcom,ci-hdrc";
756                         reg             = <0x12500000 0x400>;
757                         status          = "disabled";
758                         dr_mode         = "peripheral";
759                         interrupts      = <GIC_SPI 100 IRQ_TYPE_NONE>;
760                         usb-phy         = <&usb1_phy>;
761                 };
762
763                 usb1: usb@12500000 {
764                         compatible      = "qcom,ehci-host";
765                         reg             = <0x12500000 0x400>;
766                         interrupts      = <GIC_SPI 100 IRQ_TYPE_NONE>;
767                         status          = "disabled";
768                         usb-phy         = <&usb1_phy>;
769                 };
770
771                 usb3: usb@12520000 {
772                         compatible      = "qcom,ehci-host";
773                         reg             = <0x12520000 0x400>;
774                         interrupts      = <GIC_SPI 188 IRQ_TYPE_NONE>;
775                         status          = "disabled";
776                         usb-phy         = <&usb3_phy>;
777                 };
778
779                 usb4: usb@12530000 {
780                         compatible      = "qcom,ehci-host";
781                         reg             = <0x12530000 0x400>;
782                         interrupts      = <GIC_SPI 215 IRQ_TYPE_NONE>;
783                         status          = "disabled";
784                         usb-phy         = <&usb4_phy>;
785                 };
786
787                 sata_phy0: phy@1b400000 {
788                         compatible      = "qcom,apq8064-sata-phy";
789                         status          = "disabled";
790                         reg             = <0x1b400000 0x200>;
791                         reg-names       = "phy_mem";
792                         clocks          = <&gcc SATA_PHY_CFG_CLK>;
793                         clock-names     = "cfg";
794                         #phy-cells      = <0>;
795                 };
796
797                 sata0: sata@29000000 {
798                         compatible              = "qcom,apq8064-ahci", "generic-ahci";
799                         status                  = "disabled";
800                         reg                     = <0x29000000 0x180>;
801                         interrupts              = <GIC_SPI 209 IRQ_TYPE_NONE>;
802
803                         clocks                  = <&gcc SFAB_SATA_S_H_CLK>,
804                                                 <&gcc SATA_H_CLK>,
805                                                 <&gcc SATA_A_CLK>,
806                                                 <&gcc SATA_RXOOB_CLK>,
807                                                 <&gcc SATA_PMALIVE_CLK>;
808                         clock-names             = "slave_iface",
809                                                 "iface",
810                                                 "bus",
811                                                 "rxoob",
812                                                 "core_pmalive";
813
814                         assigned-clocks         = <&gcc SATA_RXOOB_CLK>,
815                                                 <&gcc SATA_PMALIVE_CLK>;
816                         assigned-clock-rates    = <100000000>, <100000000>;
817
818                         phys                    = <&sata_phy0>;
819                         phy-names               = "sata-phy";
820                         ports-implemented       = <0x1>;
821                 };
822
823                 /* Temporary fixed regulator */
824                 sdcc1bam:dma@12402000{
825                         compatible = "qcom,bam-v1.3.0";
826                         reg = <0x12402000 0x8000>;
827                         interrupts = <0 98 0>;
828                         clocks = <&gcc SDC1_H_CLK>;
829                         clock-names = "bam_clk";
830                         #dma-cells = <1>;
831                         qcom,ee = <0>;
832                 };
833
834                 sdcc3bam:dma@12182000{
835                         compatible = "qcom,bam-v1.3.0";
836                         reg = <0x12182000 0x8000>;
837                         interrupts = <0 96 0>;
838                         clocks = <&gcc SDC3_H_CLK>;
839                         clock-names = "bam_clk";
840                         #dma-cells = <1>;
841                         qcom,ee = <0>;
842                 };
843
844                 sdcc4bam:dma@121c2000{
845                         compatible = "qcom,bam-v1.3.0";
846                         reg = <0x121c2000 0x8000>;
847                         interrupts = <0 95 0>;
848                         clocks = <&gcc SDC4_H_CLK>;
849                         clock-names = "bam_clk";
850                         #dma-cells = <1>;
851                         qcom,ee = <0>;
852                 };
853
854                 amba {
855                         compatible = "simple-bus";
856                         #address-cells = <1>;
857                         #size-cells = <1>;
858                         ranges;
859                         sdcc1: sdcc@12400000 {
860                                 status          = "disabled";
861                                 compatible      = "arm,pl18x", "arm,primecell";
862                                 pinctrl-names   = "default";
863                                 pinctrl-0       = <&sdcc1_pins>;
864                                 arm,primecell-periphid = <0x00051180>;
865                                 reg             = <0x12400000 0x2000>;
866                                 interrupts      = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
867                                 interrupt-names = "cmd_irq";
868                                 clocks          = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
869                                 clock-names     = "mclk", "apb_pclk";
870                                 bus-width       = <8>;
871                                 max-frequency   = <96000000>;
872                                 non-removable;
873                                 cap-sd-highspeed;
874                                 cap-mmc-highspeed;
875                                 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
876                                 dma-names = "tx", "rx";
877                         };
878
879                         sdcc3: sdcc@12180000 {
880                                 compatible      = "arm,pl18x", "arm,primecell";
881                                 arm,primecell-periphid = <0x00051180>;
882                                 status          = "disabled";
883                                 reg             = <0x12180000 0x2000>;
884                                 interrupts      = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
885                                 interrupt-names = "cmd_irq";
886                                 clocks          = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
887                                 clock-names     = "mclk", "apb_pclk";
888                                 bus-width       = <4>;
889                                 cap-sd-highspeed;
890                                 cap-mmc-highspeed;
891                                 max-frequency   = <192000000>;
892                                 no-1-8-v;
893                                 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
894                                 dma-names = "tx", "rx";
895                         };
896
897                         sdcc4: sdcc@121c0000 {
898                                 compatible      = "arm,pl18x", "arm,primecell";
899                                 arm,primecell-periphid = <0x00051180>;
900                                 status          = "disabled";
901                                 reg             = <0x121c0000 0x2000>;
902                                 interrupts      = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
903                                 interrupt-names = "cmd_irq";
904                                 clocks          = <&gcc SDC4_CLK>, <&gcc SDC4_H_CLK>;
905                                 clock-names     = "mclk", "apb_pclk";
906                                 bus-width       = <4>;
907                                 cap-sd-highspeed;
908                                 cap-mmc-highspeed;
909                                 max-frequency   = <48000000>;
910                                 dmas = <&sdcc4bam 2>, <&sdcc4bam 1>;
911                                 dma-names = "tx", "rx";
912                                 pinctrl-names = "default";
913                                 pinctrl-0 = <&sdc4_gpios>;
914                         };
915                 };
916
917                 tcsr: syscon@1a400000 {
918                         compatible = "qcom,tcsr-apq8064", "syscon";
919                         reg = <0x1a400000 0x100>;
920                 };
921
922                 pcie: pci@1b500000 {
923                         compatible = "qcom,pcie-apq8064", "snps,dw-pcie";
924                         reg = <0x1b500000 0x1000
925                                0x1b502000 0x80
926                                0x1b600000 0x100
927                                0x0ff00000 0x100000>;
928                         reg-names = "dbi", "elbi", "parf", "config";
929                         device_type = "pci";
930                         linux,pci-domain = <0>;
931                         bus-range = <0x00 0xff>;
932                         num-lanes = <1>;
933                         #address-cells = <3>;
934                         #size-cells = <2>;
935                         ranges = <0x81000000 0 0 0x0fe00000 0 0x00100000   /* I/O */
936                                   0x82000000 0 0 0x08000000 0 0x07e00000>; /* memory */
937                         interrupts = <GIC_SPI 238 IRQ_TYPE_NONE>;
938                         interrupt-names = "msi";
939                         #interrupt-cells = <1>;
940                         interrupt-map-mask = <0 0 0 0x7>;
941                         interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
942                                         <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
943                                         <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
944                                         <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
945                         clocks = <&gcc PCIE_A_CLK>,
946                                  <&gcc PCIE_H_CLK>,
947                                  <&gcc PCIE_PHY_REF_CLK>;
948                         clock-names = "core", "iface", "phy";
949                         resets = <&gcc PCIE_ACLK_RESET>,
950                                  <&gcc PCIE_HCLK_RESET>,
951                                  <&gcc PCIE_POR_RESET>,
952                                  <&gcc PCIE_PCI_RESET>,
953                                  <&gcc PCIE_PHY_RESET>;
954                         reset-names = "axi", "ahb", "por", "pci", "phy";
955                         status = "disabled";
956                 };
957         };
958 };
959 #include "qcom-apq8064-pins.dtsi"