arm64: dts: qcom: align clocks in I2C/SPI with DT schema
[linux-2.6-block.git] / arch / arm64 / boot / dts / qcom / msm8996.dtsi
1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
3  */
4
5 #include <dt-bindings/interrupt-controller/arm-gic.h>
6 #include <dt-bindings/clock/qcom,gcc-msm8996.h>
7 #include <dt-bindings/clock/qcom,mmcc-msm8996.h>
8 #include <dt-bindings/clock/qcom,rpmcc.h>
9 #include <dt-bindings/power/qcom-rpmpd.h>
10 #include <dt-bindings/soc/qcom,apr.h>
11 #include <dt-bindings/thermal/thermal.h>
12
13 / {
14         interrupt-parent = <&intc>;
15
16         #address-cells = <2>;
17         #size-cells = <2>;
18
19         chosen { };
20
21         clocks {
22                 xo_board: xo-board {
23                         compatible = "fixed-clock";
24                         #clock-cells = <0>;
25                         clock-frequency = <19200000>;
26                         clock-output-names = "xo_board";
27                 };
28
29                 sleep_clk: sleep-clk {
30                         compatible = "fixed-clock";
31                         #clock-cells = <0>;
32                         clock-frequency = <32764>;
33                         clock-output-names = "sleep_clk";
34                 };
35         };
36
37         cpus {
38                 #address-cells = <2>;
39                 #size-cells = <0>;
40
41                 CPU0: cpu@0 {
42                         device_type = "cpu";
43                         compatible = "qcom,kryo";
44                         reg = <0x0 0x0>;
45                         enable-method = "psci";
46                         cpu-idle-states = <&CPU_SLEEP_0>;
47                         capacity-dmips-mhz = <1024>;
48                         clocks = <&kryocc 0>;
49                         operating-points-v2 = <&cluster0_opp>;
50                         #cooling-cells = <2>;
51                         next-level-cache = <&L2_0>;
52                         L2_0: l2-cache {
53                               compatible = "cache";
54                               cache-level = <2>;
55                         };
56                 };
57
58                 CPU1: cpu@1 {
59                         device_type = "cpu";
60                         compatible = "qcom,kryo";
61                         reg = <0x0 0x1>;
62                         enable-method = "psci";
63                         cpu-idle-states = <&CPU_SLEEP_0>;
64                         capacity-dmips-mhz = <1024>;
65                         clocks = <&kryocc 0>;
66                         operating-points-v2 = <&cluster0_opp>;
67                         #cooling-cells = <2>;
68                         next-level-cache = <&L2_0>;
69                 };
70
71                 CPU2: cpu@100 {
72                         device_type = "cpu";
73                         compatible = "qcom,kryo";
74                         reg = <0x0 0x100>;
75                         enable-method = "psci";
76                         cpu-idle-states = <&CPU_SLEEP_0>;
77                         capacity-dmips-mhz = <1024>;
78                         clocks = <&kryocc 1>;
79                         operating-points-v2 = <&cluster1_opp>;
80                         #cooling-cells = <2>;
81                         next-level-cache = <&L2_1>;
82                         L2_1: l2-cache {
83                               compatible = "cache";
84                               cache-level = <2>;
85                         };
86                 };
87
88                 CPU3: cpu@101 {
89                         device_type = "cpu";
90                         compatible = "qcom,kryo";
91                         reg = <0x0 0x101>;
92                         enable-method = "psci";
93                         cpu-idle-states = <&CPU_SLEEP_0>;
94                         capacity-dmips-mhz = <1024>;
95                         clocks = <&kryocc 1>;
96                         operating-points-v2 = <&cluster1_opp>;
97                         #cooling-cells = <2>;
98                         next-level-cache = <&L2_1>;
99                 };
100
101                 cpu-map {
102                         cluster0 {
103                                 core0 {
104                                         cpu = <&CPU0>;
105                                 };
106
107                                 core1 {
108                                         cpu = <&CPU1>;
109                                 };
110                         };
111
112                         cluster1 {
113                                 core0 {
114                                         cpu = <&CPU2>;
115                                 };
116
117                                 core1 {
118                                         cpu = <&CPU3>;
119                                 };
120                         };
121                 };
122
123                 idle-states {
124                         entry-method = "psci";
125
126                         CPU_SLEEP_0: cpu-sleep-0 {
127                                 compatible = "arm,idle-state";
128                                 idle-state-name = "standalone-power-collapse";
129                                 arm,psci-suspend-param = <0x00000004>;
130                                 entry-latency-us = <130>;
131                                 exit-latency-us = <80>;
132                                 min-residency-us = <300>;
133                         };
134                 };
135         };
136
137         cluster0_opp: opp-table-cluster0 {
138                 compatible = "operating-points-v2-kryo-cpu";
139                 nvmem-cells = <&speedbin_efuse>;
140                 opp-shared;
141
142                 /* Nominal fmax for now */
143                 opp-307200000 {
144                         opp-hz = /bits/ 64 <307200000>;
145                         opp-supported-hw = <0x77>;
146                         clock-latency-ns = <200000>;
147                 };
148                 opp-422400000 {
149                         opp-hz = /bits/ 64 <422400000>;
150                         opp-supported-hw = <0x77>;
151                         clock-latency-ns = <200000>;
152                 };
153                 opp-480000000 {
154                         opp-hz = /bits/ 64 <480000000>;
155                         opp-supported-hw = <0x77>;
156                         clock-latency-ns = <200000>;
157                 };
158                 opp-556800000 {
159                         opp-hz = /bits/ 64 <556800000>;
160                         opp-supported-hw = <0x77>;
161                         clock-latency-ns = <200000>;
162                 };
163                 opp-652800000 {
164                         opp-hz = /bits/ 64 <652800000>;
165                         opp-supported-hw = <0x77>;
166                         clock-latency-ns = <200000>;
167                 };
168                 opp-729600000 {
169                         opp-hz = /bits/ 64 <729600000>;
170                         opp-supported-hw = <0x77>;
171                         clock-latency-ns = <200000>;
172                 };
173                 opp-844800000 {
174                         opp-hz = /bits/ 64 <844800000>;
175                         opp-supported-hw = <0x77>;
176                         clock-latency-ns = <200000>;
177                 };
178                 opp-960000000 {
179                         opp-hz = /bits/ 64 <960000000>;
180                         opp-supported-hw = <0x77>;
181                         clock-latency-ns = <200000>;
182                 };
183                 opp-1036800000 {
184                         opp-hz = /bits/ 64 <1036800000>;
185                         opp-supported-hw = <0x77>;
186                         clock-latency-ns = <200000>;
187                 };
188                 opp-1113600000 {
189                         opp-hz = /bits/ 64 <1113600000>;
190                         opp-supported-hw = <0x77>;
191                         clock-latency-ns = <200000>;
192                 };
193                 opp-1190400000 {
194                         opp-hz = /bits/ 64 <1190400000>;
195                         opp-supported-hw = <0x77>;
196                         clock-latency-ns = <200000>;
197                 };
198                 opp-1228800000 {
199                         opp-hz = /bits/ 64 <1228800000>;
200                         opp-supported-hw = <0x77>;
201                         clock-latency-ns = <200000>;
202                 };
203                 opp-1324800000 {
204                         opp-hz = /bits/ 64 <1324800000>;
205                         opp-supported-hw = <0x77>;
206                         clock-latency-ns = <200000>;
207                 };
208                 opp-1401600000 {
209                         opp-hz = /bits/ 64 <1401600000>;
210                         opp-supported-hw = <0x77>;
211                         clock-latency-ns = <200000>;
212                 };
213                 opp-1478400000 {
214                         opp-hz = /bits/ 64 <1478400000>;
215                         opp-supported-hw = <0x77>;
216                         clock-latency-ns = <200000>;
217                 };
218                 opp-1593600000 {
219                         opp-hz = /bits/ 64 <1593600000>;
220                         opp-supported-hw = <0x77>;
221                         clock-latency-ns = <200000>;
222                 };
223         };
224
225         cluster1_opp: opp-table-cluster1 {
226                 compatible = "operating-points-v2-kryo-cpu";
227                 nvmem-cells = <&speedbin_efuse>;
228                 opp-shared;
229
230                 /* Nominal fmax for now */
231                 opp-307200000 {
232                         opp-hz = /bits/ 64 <307200000>;
233                         opp-supported-hw = <0x77>;
234                         clock-latency-ns = <200000>;
235                 };
236                 opp-403200000 {
237                         opp-hz = /bits/ 64 <403200000>;
238                         opp-supported-hw = <0x77>;
239                         clock-latency-ns = <200000>;
240                 };
241                 opp-480000000 {
242                         opp-hz = /bits/ 64 <480000000>;
243                         opp-supported-hw = <0x77>;
244                         clock-latency-ns = <200000>;
245                 };
246                 opp-556800000 {
247                         opp-hz = /bits/ 64 <556800000>;
248                         opp-supported-hw = <0x77>;
249                         clock-latency-ns = <200000>;
250                 };
251                 opp-652800000 {
252                         opp-hz = /bits/ 64 <652800000>;
253                         opp-supported-hw = <0x77>;
254                         clock-latency-ns = <200000>;
255                 };
256                 opp-729600000 {
257                         opp-hz = /bits/ 64 <729600000>;
258                         opp-supported-hw = <0x77>;
259                         clock-latency-ns = <200000>;
260                 };
261                 opp-806400000 {
262                         opp-hz = /bits/ 64 <806400000>;
263                         opp-supported-hw = <0x77>;
264                         clock-latency-ns = <200000>;
265                 };
266                 opp-883200000 {
267                         opp-hz = /bits/ 64 <883200000>;
268                         opp-supported-hw = <0x77>;
269                         clock-latency-ns = <200000>;
270                 };
271                 opp-940800000 {
272                         opp-hz = /bits/ 64 <940800000>;
273                         opp-supported-hw = <0x77>;
274                         clock-latency-ns = <200000>;
275                 };
276                 opp-1036800000 {
277                         opp-hz = /bits/ 64 <1036800000>;
278                         opp-supported-hw = <0x77>;
279                         clock-latency-ns = <200000>;
280                 };
281                 opp-1113600000 {
282                         opp-hz = /bits/ 64 <1113600000>;
283                         opp-supported-hw = <0x77>;
284                         clock-latency-ns = <200000>;
285                 };
286                 opp-1190400000 {
287                         opp-hz = /bits/ 64 <1190400000>;
288                         opp-supported-hw = <0x77>;
289                         clock-latency-ns = <200000>;
290                 };
291                 opp-1248000000 {
292                         opp-hz = /bits/ 64 <1248000000>;
293                         opp-supported-hw = <0x77>;
294                         clock-latency-ns = <200000>;
295                 };
296                 opp-1324800000 {
297                         opp-hz = /bits/ 64 <1324800000>;
298                         opp-supported-hw = <0x77>;
299                         clock-latency-ns = <200000>;
300                 };
301                 opp-1401600000 {
302                         opp-hz = /bits/ 64 <1401600000>;
303                         opp-supported-hw = <0x77>;
304                         clock-latency-ns = <200000>;
305                 };
306                 opp-1478400000 {
307                         opp-hz = /bits/ 64 <1478400000>;
308                         opp-supported-hw = <0x77>;
309                         clock-latency-ns = <200000>;
310                 };
311                 opp-1555200000 {
312                         opp-hz = /bits/ 64 <1555200000>;
313                         opp-supported-hw = <0x77>;
314                         clock-latency-ns = <200000>;
315                 };
316                 opp-1632000000 {
317                         opp-hz = /bits/ 64 <1632000000>;
318                         opp-supported-hw = <0x77>;
319                         clock-latency-ns = <200000>;
320                 };
321                 opp-1708800000 {
322                         opp-hz = /bits/ 64 <1708800000>;
323                         opp-supported-hw = <0x77>;
324                         clock-latency-ns = <200000>;
325                 };
326                 opp-1785600000 {
327                         opp-hz = /bits/ 64 <1785600000>;
328                         opp-supported-hw = <0x77>;
329                         clock-latency-ns = <200000>;
330                 };
331                 opp-1824000000 {
332                         opp-hz = /bits/ 64 <1824000000>;
333                         opp-supported-hw = <0x77>;
334                         clock-latency-ns = <200000>;
335                 };
336                 opp-1920000000 {
337                         opp-hz = /bits/ 64 <1920000000>;
338                         opp-supported-hw = <0x77>;
339                         clock-latency-ns = <200000>;
340                 };
341                 opp-1996800000 {
342                         opp-hz = /bits/ 64 <1996800000>;
343                         opp-supported-hw = <0x77>;
344                         clock-latency-ns = <200000>;
345                 };
346                 opp-2073600000 {
347                         opp-hz = /bits/ 64 <2073600000>;
348                         opp-supported-hw = <0x77>;
349                         clock-latency-ns = <200000>;
350                 };
351                 opp-2150400000 {
352                         opp-hz = /bits/ 64 <2150400000>;
353                         opp-supported-hw = <0x77>;
354                         clock-latency-ns = <200000>;
355                 };
356         };
357
358         firmware {
359                 scm {
360                         compatible = "qcom,scm-msm8996";
361                         qcom,dload-mode = <&tcsr 0x13000>;
362                 };
363         };
364
365         tcsr_mutex: hwlock {
366                 compatible = "qcom,tcsr-mutex";
367                 syscon = <&tcsr_mutex_regs 0 0x1000>;
368                 #hwlock-cells = <1>;
369         };
370
371         memory@80000000 {
372                 device_type = "memory";
373                 /* We expect the bootloader to fill in the reg */
374                 reg = <0x0 0x80000000 0x0 0x0>;
375         };
376
377         psci {
378                 compatible = "arm,psci-1.0";
379                 method = "smc";
380         };
381
382         reserved-memory {
383                 #address-cells = <2>;
384                 #size-cells = <2>;
385                 ranges;
386
387                 mba_region: mba@91500000 {
388                         reg = <0x0 0x91500000 0x0 0x200000>;
389                         no-map;
390                 };
391
392                 slpi_region: slpi@90b00000 {
393                         reg = <0x0 0x90b00000 0x0 0xa00000>;
394                         no-map;
395                 };
396
397                 venus_region: venus@90400000 {
398                         reg = <0x0 0x90400000 0x0 0x700000>;
399                         no-map;
400                 };
401
402                 adsp_region: adsp@8ea00000 {
403                         reg = <0x0 0x8ea00000 0x0 0x1a00000>;
404                         no-map;
405                 };
406
407                 mpss_region: mpss@88800000 {
408                         reg = <0x0 0x88800000 0x0 0x6200000>;
409                         no-map;
410                 };
411
412                 smem_mem: smem-mem@86000000 {
413                         reg = <0x0 0x86000000 0x0 0x200000>;
414                         no-map;
415                 };
416
417                 memory@85800000 {
418                         reg = <0x0 0x85800000 0x0 0x800000>;
419                         no-map;
420                 };
421
422                 memory@86200000 {
423                         reg = <0x0 0x86200000 0x0 0x2600000>;
424                         no-map;
425                 };
426
427                 rmtfs@86700000 {
428                         compatible = "qcom,rmtfs-mem";
429
430                         size = <0x0 0x200000>;
431                         alloc-ranges = <0x0 0xa0000000 0x0 0x2000000>;
432                         no-map;
433
434                         qcom,client-id = <1>;
435                         qcom,vmid = <15>;
436                 };
437
438                 zap_shader_region: gpu@8f200000 {
439                         compatible = "shared-dma-pool";
440                         reg = <0x0 0x90b00000 0x0 0xa00000>;
441                         no-map;
442                 };
443         };
444
445         rpm-glink {
446                 compatible = "qcom,glink-rpm";
447
448                 interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
449
450                 qcom,rpm-msg-ram = <&rpm_msg_ram>;
451
452                 mboxes = <&apcs_glb 0>;
453
454                 rpm_requests: rpm-requests {
455                         compatible = "qcom,rpm-msm8996";
456                         qcom,glink-channels = "rpm_requests";
457
458                         rpmcc: qcom,rpmcc {
459                                 compatible = "qcom,rpmcc-msm8996";
460                                 #clock-cells = <1>;
461                         };
462
463                         rpmpd: power-controller {
464                                 compatible = "qcom,msm8996-rpmpd";
465                                 #power-domain-cells = <1>;
466                                 operating-points-v2 = <&rpmpd_opp_table>;
467
468                                 rpmpd_opp_table: opp-table {
469                                         compatible = "operating-points-v2";
470
471                                         rpmpd_opp1: opp1 {
472                                                 opp-level = <1>;
473                                         };
474
475                                         rpmpd_opp2: opp2 {
476                                                 opp-level = <2>;
477                                         };
478
479                                         rpmpd_opp3: opp3 {
480                                                 opp-level = <3>;
481                                         };
482
483                                         rpmpd_opp4: opp4 {
484                                                 opp-level = <4>;
485                                         };
486
487                                         rpmpd_opp5: opp5 {
488                                                 opp-level = <5>;
489                                         };
490
491                                         rpmpd_opp6: opp6 {
492                                                 opp-level = <6>;
493                                         };
494                                 };
495                         };
496                 };
497         };
498
499         smem {
500                 compatible = "qcom,smem";
501                 memory-region = <&smem_mem>;
502                 hwlocks = <&tcsr_mutex 3>;
503         };
504
505         smp2p-adsp {
506                 compatible = "qcom,smp2p";
507                 qcom,smem = <443>, <429>;
508
509                 interrupts = <0 158 IRQ_TYPE_EDGE_RISING>;
510
511                 mboxes = <&apcs_glb 10>;
512
513                 qcom,local-pid = <0>;
514                 qcom,remote-pid = <2>;
515
516                 smp2p_adsp_out: master-kernel {
517                         qcom,entry-name = "master-kernel";
518                         #qcom,smem-state-cells = <1>;
519                 };
520
521                 smp2p_adsp_in: slave-kernel {
522                         qcom,entry-name = "slave-kernel";
523
524                         interrupt-controller;
525                         #interrupt-cells = <2>;
526                 };
527         };
528
529         smp2p-modem {
530                 compatible = "qcom,smp2p";
531                 qcom,smem = <435>, <428>;
532
533                 interrupts = <GIC_SPI 451 IRQ_TYPE_EDGE_RISING>;
534
535                 mboxes = <&apcs_glb 14>;
536
537                 qcom,local-pid = <0>;
538                 qcom,remote-pid = <1>;
539
540                 modem_smp2p_out: master-kernel {
541                         qcom,entry-name = "master-kernel";
542                         #qcom,smem-state-cells = <1>;
543                 };
544
545                 modem_smp2p_in: slave-kernel {
546                         qcom,entry-name = "slave-kernel";
547
548                         interrupt-controller;
549                         #interrupt-cells = <2>;
550                 };
551         };
552
553         smp2p-slpi {
554                 compatible = "qcom,smp2p";
555                 qcom,smem = <481>, <430>;
556
557                 interrupts = <GIC_SPI 178 IRQ_TYPE_EDGE_RISING>;
558
559                 mboxes = <&apcs_glb 26>;
560
561                 qcom,local-pid = <0>;
562                 qcom,remote-pid = <3>;
563
564                 smp2p_slpi_in: slave-kernel {
565                         qcom,entry-name = "slave-kernel";
566                         interrupt-controller;
567                         #interrupt-cells = <2>;
568                 };
569
570                 smp2p_slpi_out: master-kernel {
571                         qcom,entry-name = "master-kernel";
572                         #qcom,smem-state-cells = <1>;
573                 };
574         };
575
576         soc: soc {
577                 #address-cells = <1>;
578                 #size-cells = <1>;
579                 ranges = <0 0 0 0xffffffff>;
580                 compatible = "simple-bus";
581
582                 pcie_phy: phy@34000 {
583                         compatible = "qcom,msm8996-qmp-pcie-phy";
584                         reg = <0x00034000 0x488>;
585                         #address-cells = <1>;
586                         #size-cells = <1>;
587                         ranges;
588
589                         clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>,
590                                 <&gcc GCC_PCIE_PHY_CFG_AHB_CLK>,
591                                 <&gcc GCC_PCIE_CLKREF_CLK>;
592                         clock-names = "aux", "cfg_ahb", "ref";
593
594                         resets = <&gcc GCC_PCIE_PHY_BCR>,
595                                 <&gcc GCC_PCIE_PHY_COM_BCR>,
596                                 <&gcc GCC_PCIE_PHY_COM_NOCSR_BCR>;
597                         reset-names = "phy", "common", "cfg";
598                         status = "disabled";
599
600                         pciephy_0: phy@35000 {
601                                 reg = <0x00035000 0x130>,
602                                       <0x00035200 0x200>,
603                                       <0x00035400 0x1dc>;
604                                 #phy-cells = <0>;
605
606                                 #clock-cells = <1>;
607                                 clock-output-names = "pcie_0_pipe_clk_src";
608                                 clocks = <&gcc GCC_PCIE_0_PIPE_CLK>;
609                                 clock-names = "pipe0";
610                                 resets = <&gcc GCC_PCIE_0_PHY_BCR>;
611                                 reset-names = "lane0";
612                         };
613
614                         pciephy_1: phy@36000 {
615                                 reg = <0x00036000 0x130>,
616                                       <0x00036200 0x200>,
617                                       <0x00036400 0x1dc>;
618                                 #phy-cells = <0>;
619
620                                 clock-output-names = "pcie_1_pipe_clk_src";
621                                 clocks = <&gcc GCC_PCIE_1_PIPE_CLK>;
622                                 clock-names = "pipe1";
623                                 resets = <&gcc GCC_PCIE_1_PHY_BCR>;
624                                 reset-names = "lane1";
625                         };
626
627                         pciephy_2: phy@37000 {
628                                 reg = <0x00037000 0x130>,
629                                       <0x00037200 0x200>,
630                                       <0x00037400 0x1dc>;
631                                 #phy-cells = <0>;
632
633                                 clock-output-names = "pcie_2_pipe_clk_src";
634                                 clocks = <&gcc GCC_PCIE_2_PIPE_CLK>;
635                                 clock-names = "pipe2";
636                                 resets = <&gcc GCC_PCIE_2_PHY_BCR>;
637                                 reset-names = "lane2";
638                         };
639                 };
640
641                 rpm_msg_ram: sram@68000 {
642                         compatible = "qcom,rpm-msg-ram";
643                         reg = <0x00068000 0x6000>;
644                 };
645
646                 qfprom@74000 {
647                         compatible = "qcom,qfprom";
648                         reg = <0x00074000 0x8ff>;
649                         #address-cells = <1>;
650                         #size-cells = <1>;
651
652                         qusb2p_hstx_trim: hstx_trim@24e {
653                                 reg = <0x24e 0x2>;
654                                 bits = <5 4>;
655                         };
656
657                         qusb2s_hstx_trim: hstx_trim@24f {
658                                 reg = <0x24f 0x1>;
659                                 bits = <1 4>;
660                         };
661
662                         speedbin_efuse: speedbin@133 {
663                                 reg = <0x133 0x1>;
664                                 bits = <5 3>;
665                         };
666                 };
667
668                 rng: rng@83000 {
669                         compatible = "qcom,prng-ee";
670                         reg = <0x00083000 0x1000>;
671                         clocks = <&gcc GCC_PRNG_AHB_CLK>;
672                         clock-names = "core";
673                 };
674
675                 gcc: clock-controller@300000 {
676                         compatible = "qcom,gcc-msm8996";
677                         #clock-cells = <1>;
678                         #reset-cells = <1>;
679                         #power-domain-cells = <1>;
680                         reg = <0x00300000 0x90000>;
681
682                         clocks = <&rpmcc RPM_SMD_BB_CLK1>,
683                                  <&rpmcc RPM_SMD_LN_BB_CLK>,
684                                  <&sleep_clk>;
685                         clock-names = "cxo", "cxo2", "sleep_clk";
686                 };
687
688                 tsens0: thermal-sensor@4a9000 {
689                         compatible = "qcom,msm8996-tsens", "qcom,tsens-v2";
690                         reg = <0x004a9000 0x1000>, /* TM */
691                               <0x004a8000 0x1000>; /* SROT */
692                         #qcom,sensors = <13>;
693                         interrupts = <GIC_SPI 458 IRQ_TYPE_LEVEL_HIGH>,
694                                      <GIC_SPI 445 IRQ_TYPE_LEVEL_HIGH>;
695                         interrupt-names = "uplow", "critical";
696                         #thermal-sensor-cells = <1>;
697                 };
698
699                 tsens1: thermal-sensor@4ad000 {
700                         compatible = "qcom,msm8996-tsens", "qcom,tsens-v2";
701                         reg = <0x004ad000 0x1000>, /* TM */
702                               <0x004ac000 0x1000>; /* SROT */
703                         #qcom,sensors = <8>;
704                         interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>,
705                                      <GIC_SPI 430 IRQ_TYPE_LEVEL_HIGH>;
706                         interrupt-names = "uplow", "critical";
707                         #thermal-sensor-cells = <1>;
708                 };
709
710                 cryptobam: dma@644000 {
711                         compatible = "qcom,bam-v1.7.0";
712                         reg = <0x00644000 0x24000>;
713                         interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
714                         clocks = <&gcc GCC_CE1_CLK>;
715                         clock-names = "bam_clk";
716                         #dma-cells = <1>;
717                         qcom,ee = <0>;
718                         qcom,controlled-remotely;
719                 };
720
721                 crypto: crypto@67a000 {
722                         compatible = "qcom,crypto-v5.4";
723                         reg = <0x0067a000 0x6000>;
724                         clocks = <&gcc GCC_CE1_AHB_CLK>,
725                                  <&gcc GCC_CE1_AXI_CLK>,
726                                  <&gcc GCC_CE1_CLK>;
727                         clock-names = "iface", "bus", "core";
728                         dmas = <&cryptobam 6>, <&cryptobam 7>;
729                         dma-names = "rx", "tx";
730                 };
731
732                 tcsr_mutex_regs: syscon@740000 {
733                         compatible = "syscon";
734                         reg = <0x00740000 0x40000>;
735                 };
736
737                 tcsr: syscon@7a0000 {
738                         compatible = "qcom,tcsr-msm8996", "syscon";
739                         reg = <0x007a0000 0x18000>;
740                 };
741
742                 mmcc: clock-controller@8c0000 {
743                         compatible = "qcom,mmcc-msm8996";
744                         #clock-cells = <1>;
745                         #reset-cells = <1>;
746                         #power-domain-cells = <1>;
747                         reg = <0x008c0000 0x40000>;
748                         assigned-clocks = <&mmcc MMPLL9_PLL>,
749                                           <&mmcc MMPLL1_PLL>,
750                                           <&mmcc MMPLL3_PLL>,
751                                           <&mmcc MMPLL4_PLL>,
752                                           <&mmcc MMPLL5_PLL>;
753                         assigned-clock-rates = <624000000>,
754                                                <810000000>,
755                                                <980000000>,
756                                                <960000000>,
757                                                <825000000>;
758                 };
759
760                 mdss: mdss@900000 {
761                         compatible = "qcom,mdss";
762
763                         reg = <0x00900000 0x1000>,
764                               <0x009b0000 0x1040>,
765                               <0x009b8000 0x1040>;
766                         reg-names = "mdss_phys",
767                                     "vbif_phys",
768                                     "vbif_nrt_phys";
769
770                         power-domains = <&mmcc MDSS_GDSC>;
771                         interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
772
773                         interrupt-controller;
774                         #interrupt-cells = <1>;
775
776                         clocks = <&mmcc MDSS_AHB_CLK>;
777                         clock-names = "iface";
778
779                         #address-cells = <1>;
780                         #size-cells = <1>;
781                         ranges;
782
783                         status = "disabled";
784
785                         mdp: mdp@901000 {
786                                 compatible = "qcom,mdp5";
787                                 reg = <0x00901000 0x90000>;
788                                 reg-names = "mdp_phys";
789
790                                 interrupt-parent = <&mdss>;
791                                 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
792
793                                 clocks = <&mmcc MDSS_AHB_CLK>,
794                                          <&mmcc MDSS_AXI_CLK>,
795                                          <&mmcc MDSS_MDP_CLK>,
796                                          <&mmcc SMMU_MDP_AXI_CLK>,
797                                          <&mmcc MDSS_VSYNC_CLK>;
798                                 clock-names = "iface",
799                                               "bus",
800                                               "core",
801                                               "iommu",
802                                               "vsync";
803
804                                 iommus = <&mdp_smmu 0>;
805
806                                 assigned-clocks = <&mmcc MDSS_MDP_CLK>,
807                                          <&mmcc MDSS_VSYNC_CLK>;
808                                 assigned-clock-rates = <300000000>,
809                                          <19200000>;
810
811                                 ports {
812                                         #address-cells = <1>;
813                                         #size-cells = <0>;
814
815                                         port@0 {
816                                                 reg = <0>;
817                                                 mdp5_intf3_out: endpoint {
818                                                         remote-endpoint = <&hdmi_in>;
819                                                 };
820                                         };
821
822                                         port@1 {
823                                                 reg = <1>;
824                                                 mdp5_intf1_out: endpoint {
825                                                         remote-endpoint = <&dsi0_in>;
826                                                 };
827                                         };
828                                 };
829                         };
830
831                         dsi0: dsi@994000 {
832                                 compatible = "qcom,mdss-dsi-ctrl";
833                                 reg = <0x00994000 0x400>;
834                                 reg-names = "dsi_ctrl";
835
836                                 interrupt-parent = <&mdss>;
837                                 interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
838
839                                 clocks = <&mmcc MDSS_MDP_CLK>,
840                                          <&mmcc MDSS_BYTE0_CLK>,
841                                          <&mmcc MDSS_AHB_CLK>,
842                                          <&mmcc MDSS_AXI_CLK>,
843                                          <&mmcc MMSS_MISC_AHB_CLK>,
844                                          <&mmcc MDSS_PCLK0_CLK>,
845                                          <&mmcc MDSS_ESC0_CLK>;
846                                 clock-names = "mdp_core",
847                                               "byte",
848                                               "iface",
849                                               "bus",
850                                               "core_mmss",
851                                               "pixel",
852                                               "core";
853
854                                 phys = <&dsi0_phy>;
855                                 phy-names = "dsi";
856                                 status = "disabled";
857
858                                 #address-cells = <1>;
859                                 #size-cells = <0>;
860
861                                 ports {
862                                         #address-cells = <1>;
863                                         #size-cells = <0>;
864
865                                         port@0 {
866                                                 reg = <0>;
867                                                 dsi0_in: endpoint {
868                                                         remote-endpoint = <&mdp5_intf1_out>;
869                                                 };
870                                         };
871
872                                         port@1 {
873                                                 reg = <1>;
874                                                 dsi0_out: endpoint {
875                                                 };
876                                         };
877                                 };
878                         };
879
880                         dsi0_phy: dsi-phy@994400 {
881                                 compatible = "qcom,dsi-phy-14nm";
882                                 reg = <0x00994400 0x100>,
883                                       <0x00994500 0x300>,
884                                       <0x00994800 0x188>;
885                                 reg-names = "dsi_phy",
886                                             "dsi_phy_lane",
887                                             "dsi_pll";
888
889                                 #clock-cells = <1>;
890                                 #phy-cells = <0>;
891
892                                 clocks = <&mmcc MDSS_AHB_CLK>, <&rpmcc RPM_SMD_BB_CLK1>;
893                                 clock-names = "iface", "ref";
894                                 status = "disabled";
895                         };
896
897                         hdmi: hdmi-tx@9a0000 {
898                                 compatible = "qcom,hdmi-tx-8996";
899                                 reg =   <0x009a0000 0x50c>,
900                                         <0x00070000 0x6158>,
901                                         <0x009e0000 0xfff>;
902                                 reg-names = "core_physical",
903                                             "qfprom_physical",
904                                             "hdcp_physical";
905
906                                 interrupt-parent = <&mdss>;
907                                 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
908
909                                 clocks = <&mmcc MDSS_MDP_CLK>,
910                                          <&mmcc MDSS_AHB_CLK>,
911                                          <&mmcc MDSS_HDMI_CLK>,
912                                          <&mmcc MDSS_HDMI_AHB_CLK>,
913                                          <&mmcc MDSS_EXTPCLK_CLK>;
914                                 clock-names =
915                                         "mdp_core",
916                                         "iface",
917                                         "core",
918                                         "alt_iface",
919                                         "extp";
920
921                                 phys = <&hdmi_phy>;
922                                 phy-names = "hdmi_phy";
923                                 #sound-dai-cells = <1>;
924
925                                 status = "disabled";
926
927                                 ports {
928                                         #address-cells = <1>;
929                                         #size-cells = <0>;
930
931                                         port@0 {
932                                                 reg = <0>;
933                                                 hdmi_in: endpoint {
934                                                         remote-endpoint = <&mdp5_intf3_out>;
935                                                 };
936                                         };
937                                 };
938                         };
939
940                         hdmi_phy: hdmi-phy@9a0600 {
941                                 #phy-cells = <0>;
942                                 compatible = "qcom,hdmi-phy-8996";
943                                 reg = <0x009a0600 0x1c4>,
944                                       <0x009a0a00 0x124>,
945                                       <0x009a0c00 0x124>,
946                                       <0x009a0e00 0x124>,
947                                       <0x009a1000 0x124>,
948                                       <0x009a1200 0x0c8>;
949                                 reg-names = "hdmi_pll",
950                                             "hdmi_tx_l0",
951                                             "hdmi_tx_l1",
952                                             "hdmi_tx_l2",
953                                             "hdmi_tx_l3",
954                                             "hdmi_phy";
955
956                                 clocks = <&mmcc MDSS_AHB_CLK>,
957                                          <&gcc GCC_HDMI_CLKREF_CLK>;
958                                 clock-names = "iface",
959                                               "ref";
960
961                                 status = "disabled";
962                         };
963                 };
964
965                 gpu: gpu@b00000 {
966                         compatible = "qcom,adreno-530.2", "qcom,adreno";
967
968                         reg = <0x00b00000 0x3f000>;
969                         reg-names = "kgsl_3d0_reg_memory";
970
971                         interrupts = <0 300 IRQ_TYPE_LEVEL_HIGH>;
972
973                         clocks = <&mmcc GPU_GX_GFX3D_CLK>,
974                                 <&mmcc GPU_AHB_CLK>,
975                                 <&mmcc GPU_GX_RBBMTIMER_CLK>,
976                                 <&gcc GCC_BIMC_GFX_CLK>,
977                                 <&gcc GCC_MMSS_BIMC_GFX_CLK>;
978
979                         clock-names = "core",
980                                 "iface",
981                                 "rbbmtimer",
982                                 "mem",
983                                 "mem_iface";
984
985                         power-domains = <&mmcc GPU_GX_GDSC>;
986                         iommus = <&adreno_smmu 0>;
987
988                         nvmem-cells = <&speedbin_efuse>;
989                         nvmem-cell-names = "speed_bin";
990
991                         operating-points-v2 = <&gpu_opp_table>;
992
993                         status = "disabled";
994
995                         #cooling-cells = <2>;
996
997                         gpu_opp_table: opp-table {
998                                 compatible  ="operating-points-v2";
999
1000                                 /*
1001                                  * 624Mhz and 560Mhz are only available on speed
1002                                  * bin (1 << 0). All the rest are available on
1003                                  * all bins of the hardware
1004                                  */
1005                                 opp-624000000 {
1006                                         opp-hz = /bits/ 64 <624000000>;
1007                                         opp-supported-hw = <0x01>;
1008                                 };
1009                                 opp-560000000 {
1010                                         opp-hz = /bits/ 64 <560000000>;
1011                                         opp-supported-hw = <0x01>;
1012                                 };
1013                                 opp-510000000 {
1014                                         opp-hz = /bits/ 64 <510000000>;
1015                                         opp-supported-hw = <0xFF>;
1016                                 };
1017                                 opp-401800000 {
1018                                         opp-hz = /bits/ 64 <401800000>;
1019                                         opp-supported-hw = <0xFF>;
1020                                 };
1021                                 opp-315000000 {
1022                                         opp-hz = /bits/ 64 <315000000>;
1023                                         opp-supported-hw = <0xFF>;
1024                                 };
1025                                 opp-214000000 {
1026                                         opp-hz = /bits/ 64 <214000000>;
1027                                         opp-supported-hw = <0xFF>;
1028                                 };
1029                                 opp-133000000 {
1030                                         opp-hz = /bits/ 64 <133000000>;
1031                                         opp-supported-hw = <0xFF>;
1032                                 };
1033                         };
1034
1035                         zap-shader {
1036                                 memory-region = <&zap_shader_region>;
1037                         };
1038                 };
1039
1040                 tlmm: pinctrl@1010000 {
1041                         compatible = "qcom,msm8996-pinctrl";
1042                         reg = <0x01010000 0x300000>;
1043                         interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
1044                         gpio-controller;
1045                         gpio-ranges = <&tlmm 0 0 150>;
1046                         #gpio-cells = <2>;
1047                         interrupt-controller;
1048                         #interrupt-cells = <2>;
1049
1050                         blsp1_spi1_default: blsp1-spi1-default {
1051                                 spi {
1052                                         pins = "gpio0", "gpio1", "gpio3";
1053                                         function = "blsp_spi1";
1054                                         drive-strength = <12>;
1055                                         bias-disable;
1056                                 };
1057
1058                                 cs {
1059                                         pins = "gpio2";
1060                                         function = "gpio";
1061                                         drive-strength = <16>;
1062                                         bias-disable;
1063                                         output-high;
1064                                 };
1065                         };
1066
1067                         blsp1_spi1_sleep: blsp1-spi1-sleep {
1068                                 pins = "gpio0", "gpio1", "gpio2", "gpio3";
1069                                 function = "gpio";
1070                                 drive-strength = <2>;
1071                                 bias-pull-down;
1072                         };
1073
1074                         blsp2_uart2_2pins_default: blsp2-uart1-2pins {
1075                                 pins = "gpio4", "gpio5";
1076                                 function = "blsp_uart8";
1077                                 drive-strength = <16>;
1078                                 bias-disable;
1079                         };
1080
1081                         blsp2_uart2_2pins_sleep: blsp2-uart1-2pins-sleep {
1082                                 pins = "gpio4", "gpio5";
1083                                 function = "gpio";
1084                                 drive-strength = <2>;
1085                                 bias-disable;
1086                         };
1087
1088                         blsp2_i2c2_default: blsp2-i2c2 {
1089                                 pins = "gpio6", "gpio7";
1090                                 function = "blsp_i2c8";
1091                                 drive-strength = <16>;
1092                                 bias-disable;
1093                         };
1094
1095                         blsp2_i2c2_sleep: blsp2-i2c2-sleep {
1096                                 pins = "gpio6", "gpio7";
1097                                 function = "gpio";
1098                                 drive-strength = <2>;
1099                                 bias-disable;
1100                         };
1101
1102                         cci0_default: cci0-default {
1103                                 pins = "gpio17", "gpio18";
1104                                 function = "cci_i2c";
1105                                 drive-strength = <16>;
1106                                 bias-disable;
1107                         };
1108
1109                         camera0_state_on:
1110                         camera_rear_default: camera-rear-default {
1111                                 camera0_mclk: mclk0 {
1112                                         pins = "gpio13";
1113                                         function = "cam_mclk";
1114                                         drive-strength = <16>;
1115                                         bias-disable;
1116                                 };
1117
1118                                 camera0_rst: rst {
1119                                         pins = "gpio25";
1120                                         function = "gpio";
1121                                         drive-strength = <16>;
1122                                         bias-disable;
1123                                 };
1124
1125                                 camera0_pwdn: pwdn {
1126                                         pins = "gpio26";
1127                                         function = "gpio";
1128                                         drive-strength = <16>;
1129                                         bias-disable;
1130                                 };
1131                         };
1132
1133                         cci1_default: cci1-default {
1134                                 pins = "gpio19", "gpio20";
1135                                 function = "cci_i2c";
1136                                 drive-strength = <16>;
1137                                 bias-disable;
1138                         };
1139
1140                         camera1_state_on:
1141                         camera_board_default: camera-board-default {
1142                                 mclk1 {
1143                                         pins = "gpio14";
1144                                         function = "cam_mclk";
1145                                         drive-strength = <16>;
1146                                         bias-disable;
1147                                 };
1148
1149                                 pwdn {
1150                                         pins = "gpio98";
1151                                         function = "gpio";
1152                                         drive-strength = <16>;
1153                                         bias-disable;
1154                                 };
1155
1156                                 rst {
1157                                         pins = "gpio104";
1158                                         function = "gpio";
1159                                         drive-strength = <16>;
1160                                         bias-disable;
1161                                 };
1162                         };
1163
1164                         camera2_state_on:
1165                         camera_front_default: camera-front-default {
1166                                 camera2_mclk: mclk2 {
1167                                         pins = "gpio15";
1168                                         function = "cam_mclk";
1169                                         drive-strength = <16>;
1170                                         bias-disable;
1171                                 };
1172
1173                                 camera2_rst: rst {
1174                                         pins = "gpio23";
1175                                         function = "gpio";
1176                                         drive-strength = <16>;
1177                                         bias-disable;
1178                                 };
1179
1180                                 pwdn {
1181                                         pins = "gpio133";
1182                                         function = "gpio";
1183                                         drive-strength = <16>;
1184                                         bias-disable;
1185                                 };
1186                         };
1187
1188                         pcie0_state_on: pcie0-state-on {
1189                                 perst {
1190                                         pins = "gpio35";
1191                                         function = "gpio";
1192                                         drive-strength = <2>;
1193                                         bias-pull-down;
1194                                 };
1195
1196                                 clkreq {
1197                                         pins = "gpio36";
1198                                         function = "pci_e0";
1199                                         drive-strength = <2>;
1200                                         bias-pull-up;
1201                                 };
1202
1203                                 wake {
1204                                         pins = "gpio37";
1205                                         function = "gpio";
1206                                         drive-strength = <2>;
1207                                         bias-pull-up;
1208                                 };
1209                         };
1210
1211                         pcie0_state_off: pcie0-state-off {
1212                                 perst {
1213                                         pins = "gpio35";
1214                                         function = "gpio";
1215                                         drive-strength = <2>;
1216                                         bias-pull-down;
1217                                 };
1218
1219                                 clkreq {
1220                                         pins = "gpio36";
1221                                         function = "gpio";
1222                                         drive-strength = <2>;
1223                                         bias-disable;
1224                                 };
1225
1226                                 wake {
1227                                         pins = "gpio37";
1228                                         function = "gpio";
1229                                         drive-strength = <2>;
1230                                         bias-disable;
1231                                 };
1232                         };
1233
1234                         blsp1_uart2_default: blsp1-uart2-default {
1235                                 pins = "gpio41", "gpio42", "gpio43", "gpio44";
1236                                 function = "blsp_uart2";
1237                                 drive-strength = <16>;
1238                                 bias-disable;
1239                         };
1240
1241                         blsp1_uart2_sleep: blsp1-uart2-sleep {
1242                                 pins = "gpio41", "gpio42", "gpio43", "gpio44";
1243                                 function = "gpio";
1244                                 drive-strength = <2>;
1245                                 bias-disable;
1246                         };
1247
1248                         blsp1_i2c3_default: blsp1-i2c2-default {
1249                                 pins = "gpio47", "gpio48";
1250                                 function = "blsp_i2c3";
1251                                 drive-strength = <16>;
1252                                 bias-disable = <0>;
1253                         };
1254
1255                         blsp1_i2c3_sleep: blsp1-i2c2-sleep {
1256                                 pins = "gpio47", "gpio48";
1257                                 function = "gpio";
1258                                 drive-strength = <2>;
1259                                 bias-disable = <0>;
1260                         };
1261
1262                         blsp2_uart3_4pins_default: blsp2-uart2-4pins {
1263                                 pins = "gpio49", "gpio50", "gpio51", "gpio52";
1264                                 function = "blsp_uart9";
1265                                 drive-strength = <16>;
1266                                 bias-disable;
1267                         };
1268
1269                         blsp2_uart3_4pins_sleep: blsp2-uart2-4pins-sleep {
1270                                 pins = "gpio49", "gpio50", "gpio51", "gpio52";
1271                                 function = "blsp_uart9";
1272                                 drive-strength = <2>;
1273                                 bias-disable;
1274                         };
1275
1276                         blsp2_i2c3_default: blsp2-i2c3 {
1277                                 pins = "gpio51", "gpio52";
1278                                 function = "blsp_i2c9";
1279                                 drive-strength = <16>;
1280                                 bias-disable;
1281                         };
1282
1283                         blsp2_i2c3_sleep: blsp2-i2c3-sleep {
1284                                 pins = "gpio51", "gpio52";
1285                                 function = "gpio";
1286                                 drive-strength = <2>;
1287                                 bias-disable;
1288                         };
1289
1290                         wcd_intr_default: wcd-intr-default{
1291                                 pins = "gpio54";
1292                                 function = "gpio";
1293                                 drive-strength = <2>;
1294                                 bias-pull-down;
1295                                 input-enable;
1296                         };
1297
1298                         blsp2_i2c1_default: blsp2-i2c1 {
1299                                 pins = "gpio55", "gpio56";
1300                                 function = "blsp_i2c7";
1301                                 drive-strength = <16>;
1302                                 bias-disable;
1303                         };
1304
1305                         blsp2_i2c1_sleep: blsp2-i2c0-sleep {
1306                                 pins = "gpio55", "gpio56";
1307                                 function = "gpio";
1308                                 drive-strength = <2>;
1309                                 bias-disable;
1310                         };
1311
1312                         blsp2_i2c5_default: blsp2-i2c5 {
1313                                 pins = "gpio60", "gpio61";
1314                                 function = "blsp_i2c11";
1315                                 drive-strength = <2>;
1316                                 bias-disable;
1317                         };
1318
1319                         /* Sleep state for BLSP2_I2C5 is missing.. */
1320
1321                         cdc_reset_active: cdc-reset-active {
1322                                 pins = "gpio64";
1323                                 function = "gpio";
1324                                 drive-strength = <16>;
1325                                 bias-pull-down;
1326                                 output-high;
1327                         };
1328
1329                         cdc_reset_sleep: cdc-reset-sleep {
1330                                 pins = "gpio64";
1331                                 function = "gpio";
1332                                 drive-strength = <16>;
1333                                 bias-disable;
1334                                 output-low;
1335                         };
1336
1337                         blsp2_spi6_default: blsp2-spi5-default {
1338                                 spi {
1339                                         pins = "gpio85", "gpio86", "gpio88";
1340                                         function = "blsp_spi12";
1341                                         drive-strength = <12>;
1342                                         bias-disable;
1343                                 };
1344
1345                                 cs {
1346                                         pins = "gpio87";
1347                                         function = "gpio";
1348                                         drive-strength = <16>;
1349                                         bias-disable;
1350                                         output-high;
1351                                 };
1352                         };
1353
1354                         blsp2_spi6_sleep: blsp2-spi5-sleep {
1355                                 pins = "gpio85", "gpio86", "gpio87", "gpio88";
1356                                 function = "gpio";
1357                                 drive-strength = <2>;
1358                                 bias-pull-down;
1359                         };
1360
1361                         blsp2_i2c6_default: blsp2-i2c6 {
1362                                 pins = "gpio87", "gpio88";
1363                                 function = "blsp_i2c12";
1364                                 drive-strength = <16>;
1365                                 bias-disable;
1366                         };
1367
1368                         blsp2_i2c6_sleep: blsp2-i2c6-sleep {
1369                                 pins = "gpio87", "gpio88";
1370                                 function = "gpio";
1371                                 drive-strength = <2>;
1372                                 bias-disable;
1373                         };
1374
1375                         pcie1_state_on: pcie1-state-on {
1376                                 perst {
1377                                         pins = "gpio130";
1378                                         function = "gpio";
1379                                         drive-strength = <2>;
1380                                         bias-pull-down;
1381                                 };
1382
1383                                 clkreq {
1384                                         pins = "gpio131";
1385                                         function = "pci_e1";
1386                                         drive-strength = <2>;
1387                                         bias-pull-up;
1388                                 };
1389
1390                                 wake {
1391                                         pins = "gpio132";
1392                                         function = "gpio";
1393                                         drive-strength = <2>;
1394                                         bias-pull-down;
1395                                 };
1396                         };
1397
1398                         pcie1_state_off: pcie1-state-off {
1399                                 /* Perst is missing? */
1400                                 clkreq {
1401                                         pins = "gpio131";
1402                                         function = "gpio";
1403                                         drive-strength = <2>;
1404                                         bias-disable;
1405                                 };
1406
1407                                 wake {
1408                                         pins = "gpio132";
1409                                         function = "gpio";
1410                                         drive-strength = <2>;
1411                                         bias-disable;
1412                                 };
1413                         };
1414
1415                         pcie2_state_on: pcie2-state-on {
1416                                 perst {
1417                                         pins = "gpio114";
1418                                         function = "gpio";
1419                                         drive-strength = <2>;
1420                                         bias-pull-down;
1421                                 };
1422
1423                                 clkreq {
1424                                         pins = "gpio115";
1425                                         function = "pci_e2";
1426                                         drive-strength = <2>;
1427                                         bias-pull-up;
1428                                 };
1429
1430                                 wake {
1431                                         pins = "gpio116";
1432                                         function = "gpio";
1433                                         drive-strength = <2>;
1434                                         bias-pull-down;
1435                                 };
1436                         };
1437
1438                         pcie2_state_off: pcie2-state-off {
1439                                 /* Perst is missing? */
1440                                 clkreq {
1441                                         pins = "gpio115";
1442                                         function = "gpio";
1443                                         drive-strength = <2>;
1444                                         bias-disable;
1445                                 };
1446
1447                                 wake {
1448                                         pins = "gpio116";
1449                                         function = "gpio";
1450                                         drive-strength = <2>;
1451                                         bias-disable;
1452                                 };
1453                         };
1454
1455                         sdc1_state_on: sdc1-state-on {
1456                                 clk {
1457                                         pins = "sdc1_clk";
1458                                         bias-disable;
1459                                         drive-strength = <16>;
1460                                 };
1461
1462                                 cmd {
1463                                         pins = "sdc1_cmd";
1464                                         bias-pull-up;
1465                                         drive-strength = <10>;
1466                                 };
1467
1468                                 data {
1469                                         pins = "sdc1_data";
1470                                         bias-pull-up;
1471                                         drive-strength = <10>;
1472                                 };
1473
1474                                 rclk {
1475                                         pins = "sdc1_rclk";
1476                                         bias-pull-down;
1477                                 };
1478                         };
1479
1480                         sdc1_state_off: sdc1-state-off {
1481                                 clk {
1482                                         pins = "sdc1_clk";
1483                                         bias-disable;
1484                                         drive-strength = <2>;
1485                                 };
1486
1487                                 cmd {
1488                                         pins = "sdc1_cmd";
1489                                         bias-pull-up;
1490                                         drive-strength = <2>;
1491                                 };
1492
1493                                 data {
1494                                         pins = "sdc1_data";
1495                                         bias-pull-up;
1496                                         drive-strength = <2>;
1497                                 };
1498
1499                                 rclk {
1500                                         pins = "sdc1_rclk";
1501                                         bias-pull-down;
1502                                 };
1503                         };
1504
1505                         sdc2_state_on: sdc2-clk-on {
1506                                 clk {
1507                                         pins = "sdc2_clk";
1508                                         bias-disable;
1509                                         drive-strength = <16>;
1510                                 };
1511
1512                                 cmd {
1513                                         pins = "sdc2_cmd";
1514                                         bias-pull-up;
1515                                         drive-strength = <10>;
1516                                 };
1517
1518                                 data {
1519                                         pins = "sdc2_data";
1520                                         bias-pull-up;
1521                                         drive-strength = <10>;
1522                                 };
1523                         };
1524
1525                         sdc2_state_off: sdc2-clk-off {
1526                                 clk {
1527                                         pins = "sdc2_clk";
1528                                         bias-disable;
1529                                         drive-strength = <2>;
1530                                 };
1531
1532                                 cmd {
1533                                         pins = "sdc2_cmd";
1534                                         bias-pull-up;
1535                                         drive-strength = <2>;
1536                                 };
1537
1538                                 data {
1539                                         pins = "sdc2_data";
1540                                         bias-pull-up;
1541                                         drive-strength = <2>;
1542                                 };
1543                         };
1544                 };
1545
1546                 sram@290000 {
1547                         compatible = "qcom,rpm-stats";
1548                         reg = <0x00290000 0x10000>;
1549                 };
1550
1551                 spmi_bus: spmi@400f000 {
1552                         compatible = "qcom,spmi-pmic-arb";
1553                         reg = <0x0400f000 0x1000>,
1554                               <0x04400000 0x800000>,
1555                               <0x04c00000 0x800000>,
1556                               <0x05800000 0x200000>,
1557                               <0x0400a000 0x002100>;
1558                         reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
1559                         interrupt-names = "periph_irq";
1560                         interrupts = <GIC_SPI 326 IRQ_TYPE_LEVEL_HIGH>;
1561                         qcom,ee = <0>;
1562                         qcom,channel = <0>;
1563                         #address-cells = <2>;
1564                         #size-cells = <0>;
1565                         interrupt-controller;
1566                         #interrupt-cells = <4>;
1567                 };
1568
1569                 agnoc@0 {
1570                         power-domains = <&gcc AGGRE0_NOC_GDSC>;
1571                         compatible = "simple-pm-bus";
1572                         #address-cells = <1>;
1573                         #size-cells = <1>;
1574                         ranges;
1575
1576                         pcie0: pcie@600000 {
1577                                 compatible = "qcom,pcie-msm8996", "snps,dw-pcie";
1578                                 status = "disabled";
1579                                 power-domains = <&gcc PCIE0_GDSC>;
1580                                 bus-range = <0x00 0xff>;
1581                                 num-lanes = <1>;
1582
1583                                 reg = <0x00600000 0x2000>,
1584                                       <0x0c000000 0xf1d>,
1585                                       <0x0c000f20 0xa8>,
1586                                       <0x0c100000 0x100000>;
1587                                 reg-names = "parf", "dbi", "elbi","config";
1588
1589                                 phys = <&pciephy_0>;
1590                                 phy-names = "pciephy";
1591
1592                                 #address-cells = <3>;
1593                                 #size-cells = <2>;
1594                                 ranges = <0x01000000 0x0 0x0c200000 0x0c200000 0x0 0x100000>,
1595                                         <0x02000000 0x0 0x0c300000 0x0c300000 0x0 0xd00000>;
1596
1597                                 device_type = "pci";
1598
1599                                 interrupts = <GIC_SPI 405 IRQ_TYPE_LEVEL_HIGH>;
1600                                 interrupt-names = "msi";
1601                                 #interrupt-cells = <1>;
1602                                 interrupt-map-mask = <0 0 0 0x7>;
1603                                 interrupt-map = <0 0 0 1 &intc 0 244 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
1604                                                 <0 0 0 2 &intc 0 245 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
1605                                                 <0 0 0 3 &intc 0 247 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
1606                                                 <0 0 0 4 &intc 0 248 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
1607
1608                                 pinctrl-names = "default", "sleep";
1609                                 pinctrl-0 = <&pcie0_state_on>;
1610                                 pinctrl-1 = <&pcie0_state_off>;
1611
1612                                 linux,pci-domain = <0>;
1613
1614                                 clocks = <&gcc GCC_PCIE_0_PIPE_CLK>,
1615                                         <&gcc GCC_PCIE_0_AUX_CLK>,
1616                                         <&gcc GCC_PCIE_0_CFG_AHB_CLK>,
1617                                         <&gcc GCC_PCIE_0_MSTR_AXI_CLK>,
1618                                         <&gcc GCC_PCIE_0_SLV_AXI_CLK>;
1619
1620                                 clock-names =  "pipe",
1621                                                 "aux",
1622                                                 "cfg",
1623                                                 "bus_master",
1624                                                 "bus_slave";
1625
1626                         };
1627
1628                         pcie1: pcie@608000 {
1629                                 compatible = "qcom,pcie-msm8996", "snps,dw-pcie";
1630                                 power-domains = <&gcc PCIE1_GDSC>;
1631                                 bus-range = <0x00 0xff>;
1632                                 num-lanes = <1>;
1633
1634                                 status  = "disabled";
1635
1636                                 reg = <0x00608000 0x2000>,
1637                                       <0x0d000000 0xf1d>,
1638                                       <0x0d000f20 0xa8>,
1639                                       <0x0d100000 0x100000>;
1640
1641                                 reg-names = "parf", "dbi", "elbi","config";
1642
1643                                 phys = <&pciephy_1>;
1644                                 phy-names = "pciephy";
1645
1646                                 #address-cells = <3>;
1647                                 #size-cells = <2>;
1648                                 ranges = <0x01000000 0x0 0x0d200000 0x0d200000 0x0 0x100000>,
1649                                         <0x02000000 0x0 0x0d300000 0x0d300000 0x0 0xd00000>;
1650
1651                                 device_type = "pci";
1652
1653                                 interrupts = <GIC_SPI 413 IRQ_TYPE_LEVEL_HIGH>;
1654                                 interrupt-names = "msi";
1655                                 #interrupt-cells = <1>;
1656                                 interrupt-map-mask = <0 0 0 0x7>;
1657                                 interrupt-map = <0 0 0 1 &intc 0 272 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
1658                                                 <0 0 0 2 &intc 0 273 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
1659                                                 <0 0 0 3 &intc 0 274 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
1660                                                 <0 0 0 4 &intc 0 275 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
1661
1662                                 pinctrl-names = "default", "sleep";
1663                                 pinctrl-0 = <&pcie1_state_on>;
1664                                 pinctrl-1 = <&pcie1_state_off>;
1665
1666                                 linux,pci-domain = <1>;
1667
1668                                 clocks = <&gcc GCC_PCIE_1_PIPE_CLK>,
1669                                         <&gcc GCC_PCIE_1_AUX_CLK>,
1670                                         <&gcc GCC_PCIE_1_CFG_AHB_CLK>,
1671                                         <&gcc GCC_PCIE_1_MSTR_AXI_CLK>,
1672                                         <&gcc GCC_PCIE_1_SLV_AXI_CLK>;
1673
1674                                 clock-names =  "pipe",
1675                                                 "aux",
1676                                                 "cfg",
1677                                                 "bus_master",
1678                                                 "bus_slave";
1679                         };
1680
1681                         pcie2: pcie@610000 {
1682                                 compatible = "qcom,pcie-msm8996", "snps,dw-pcie";
1683                                 power-domains = <&gcc PCIE2_GDSC>;
1684                                 bus-range = <0x00 0xff>;
1685                                 num-lanes = <1>;
1686                                 status = "disabled";
1687                                 reg = <0x00610000 0x2000>,
1688                                       <0x0e000000 0xf1d>,
1689                                       <0x0e000f20 0xa8>,
1690                                       <0x0e100000 0x100000>;
1691
1692                                 reg-names = "parf", "dbi", "elbi","config";
1693
1694                                 phys = <&pciephy_2>;
1695                                 phy-names = "pciephy";
1696
1697                                 #address-cells = <3>;
1698                                 #size-cells = <2>;
1699                                 ranges = <0x01000000 0x0 0x0e200000 0x0e200000 0x0 0x100000>,
1700                                         <0x02000000 0x0 0x0e300000 0x0e300000 0x0 0x1d00000>;
1701
1702                                 device_type = "pci";
1703
1704                                 interrupts = <GIC_SPI 421 IRQ_TYPE_LEVEL_HIGH>;
1705                                 interrupt-names = "msi";
1706                                 #interrupt-cells = <1>;
1707                                 interrupt-map-mask = <0 0 0 0x7>;
1708                                 interrupt-map = <0 0 0 1 &intc 0 142 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
1709                                                 <0 0 0 2 &intc 0 143 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
1710                                                 <0 0 0 3 &intc 0 144 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
1711                                                 <0 0 0 4 &intc 0 145 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
1712
1713                                 pinctrl-names = "default", "sleep";
1714                                 pinctrl-0 = <&pcie2_state_on>;
1715                                 pinctrl-1 = <&pcie2_state_off>;
1716
1717                                 linux,pci-domain = <2>;
1718                                 clocks = <&gcc GCC_PCIE_2_PIPE_CLK>,
1719                                         <&gcc GCC_PCIE_2_AUX_CLK>,
1720                                         <&gcc GCC_PCIE_2_CFG_AHB_CLK>,
1721                                         <&gcc GCC_PCIE_2_MSTR_AXI_CLK>,
1722                                         <&gcc GCC_PCIE_2_SLV_AXI_CLK>;
1723
1724                                 clock-names =  "pipe",
1725                                                 "aux",
1726                                                 "cfg",
1727                                                 "bus_master",
1728                                                 "bus_slave";
1729                         };
1730                 };
1731
1732                 ufshc: ufshc@624000 {
1733                         compatible = "qcom,msm8996-ufshc", "qcom,ufshc",
1734                                      "jedec,ufs-2.0";
1735                         reg = <0x00624000 0x2500>;
1736                         interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
1737
1738                         phys = <&ufsphy_lane>;
1739                         phy-names = "ufsphy";
1740
1741                         power-domains = <&gcc UFS_GDSC>;
1742
1743                         clock-names =
1744                                 "core_clk_src",
1745                                 "core_clk",
1746                                 "bus_clk",
1747                                 "bus_aggr_clk",
1748                                 "iface_clk",
1749                                 "core_clk_unipro_src",
1750                                 "core_clk_unipro",
1751                                 "core_clk_ice",
1752                                 "ref_clk",
1753                                 "tx_lane0_sync_clk",
1754                                 "rx_lane0_sync_clk";
1755                         clocks =
1756                                 <&gcc UFS_AXI_CLK_SRC>,
1757                                 <&gcc GCC_UFS_AXI_CLK>,
1758                                 <&gcc GCC_SYS_NOC_UFS_AXI_CLK>,
1759                                 <&gcc GCC_AGGRE2_UFS_AXI_CLK>,
1760                                 <&gcc GCC_UFS_AHB_CLK>,
1761                                 <&gcc UFS_ICE_CORE_CLK_SRC>,
1762                                 <&gcc GCC_UFS_UNIPRO_CORE_CLK>,
1763                                 <&gcc GCC_UFS_ICE_CORE_CLK>,
1764                                 <&rpmcc RPM_SMD_LN_BB_CLK>,
1765                                 <&gcc GCC_UFS_TX_SYMBOL_0_CLK>,
1766                                 <&gcc GCC_UFS_RX_SYMBOL_0_CLK>;
1767                         freq-table-hz =
1768                                 <100000000 200000000>,
1769                                 <0 0>,
1770                                 <0 0>,
1771                                 <0 0>,
1772                                 <0 0>,
1773                                 <150000000 300000000>,
1774                                 <0 0>,
1775                                 <0 0>,
1776                                 <0 0>,
1777                                 <0 0>,
1778                                 <0 0>;
1779
1780                         lanes-per-direction = <1>;
1781                         #reset-cells = <1>;
1782                         status = "disabled";
1783
1784                         ufs_variant {
1785                                 compatible = "qcom,ufs_variant";
1786                         };
1787                 };
1788
1789                 ufsphy: phy@627000 {
1790                         compatible = "qcom,msm8996-qmp-ufs-phy";
1791                         reg = <0x00627000 0x1c4>;
1792                         #address-cells = <1>;
1793                         #size-cells = <1>;
1794                         ranges;
1795
1796                         clocks = <&gcc GCC_UFS_CLKREF_CLK>;
1797                         clock-names = "ref";
1798
1799                         resets = <&ufshc 0>;
1800                         reset-names = "ufsphy";
1801                         status = "disabled";
1802
1803                         ufsphy_lane: phy@627400 {
1804                                 reg = <0x627400 0x12c>,
1805                                       <0x627600 0x200>,
1806                                       <0x627c00 0x1b4>;
1807                                 #phy-cells = <0>;
1808                         };
1809                 };
1810
1811                 camss: camss@a00000 {
1812                         compatible = "qcom,msm8996-camss";
1813                         reg = <0x00a34000 0x1000>,
1814                               <0x00a00030 0x4>,
1815                               <0x00a35000 0x1000>,
1816                               <0x00a00038 0x4>,
1817                               <0x00a36000 0x1000>,
1818                               <0x00a00040 0x4>,
1819                               <0x00a30000 0x100>,
1820                               <0x00a30400 0x100>,
1821                               <0x00a30800 0x100>,
1822                               <0x00a30c00 0x100>,
1823                               <0x00a31000 0x500>,
1824                               <0x00a00020 0x10>,
1825                               <0x00a10000 0x1000>,
1826                               <0x00a14000 0x1000>;
1827                         reg-names = "csiphy0",
1828                                 "csiphy0_clk_mux",
1829                                 "csiphy1",
1830                                 "csiphy1_clk_mux",
1831                                 "csiphy2",
1832                                 "csiphy2_clk_mux",
1833                                 "csid0",
1834                                 "csid1",
1835                                 "csid2",
1836                                 "csid3",
1837                                 "ispif",
1838                                 "csi_clk_mux",
1839                                 "vfe0",
1840                                 "vfe1";
1841                         interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>,
1842                                 <GIC_SPI 79 IRQ_TYPE_EDGE_RISING>,
1843                                 <GIC_SPI 80 IRQ_TYPE_EDGE_RISING>,
1844                                 <GIC_SPI 296 IRQ_TYPE_EDGE_RISING>,
1845                                 <GIC_SPI 297 IRQ_TYPE_EDGE_RISING>,
1846                                 <GIC_SPI 298 IRQ_TYPE_EDGE_RISING>,
1847                                 <GIC_SPI 299 IRQ_TYPE_EDGE_RISING>,
1848                                 <GIC_SPI 309 IRQ_TYPE_EDGE_RISING>,
1849                                 <GIC_SPI 314 IRQ_TYPE_EDGE_RISING>,
1850                                 <GIC_SPI 315 IRQ_TYPE_EDGE_RISING>;
1851                         interrupt-names = "csiphy0",
1852                                 "csiphy1",
1853                                 "csiphy2",
1854                                 "csid0",
1855                                 "csid1",
1856                                 "csid2",
1857                                 "csid3",
1858                                 "ispif",
1859                                 "vfe0",
1860                                 "vfe1";
1861                         power-domains = <&mmcc VFE0_GDSC>,
1862                                         <&mmcc VFE1_GDSC>;
1863                         clocks = <&mmcc CAMSS_TOP_AHB_CLK>,
1864                                 <&mmcc CAMSS_ISPIF_AHB_CLK>,
1865                                 <&mmcc CAMSS_CSI0PHYTIMER_CLK>,
1866                                 <&mmcc CAMSS_CSI1PHYTIMER_CLK>,
1867                                 <&mmcc CAMSS_CSI2PHYTIMER_CLK>,
1868                                 <&mmcc CAMSS_CSI0_AHB_CLK>,
1869                                 <&mmcc CAMSS_CSI0_CLK>,
1870                                 <&mmcc CAMSS_CSI0PHY_CLK>,
1871                                 <&mmcc CAMSS_CSI0PIX_CLK>,
1872                                 <&mmcc CAMSS_CSI0RDI_CLK>,
1873                                 <&mmcc CAMSS_CSI1_AHB_CLK>,
1874                                 <&mmcc CAMSS_CSI1_CLK>,
1875                                 <&mmcc CAMSS_CSI1PHY_CLK>,
1876                                 <&mmcc CAMSS_CSI1PIX_CLK>,
1877                                 <&mmcc CAMSS_CSI1RDI_CLK>,
1878                                 <&mmcc CAMSS_CSI2_AHB_CLK>,
1879                                 <&mmcc CAMSS_CSI2_CLK>,
1880                                 <&mmcc CAMSS_CSI2PHY_CLK>,
1881                                 <&mmcc CAMSS_CSI2PIX_CLK>,
1882                                 <&mmcc CAMSS_CSI2RDI_CLK>,
1883                                 <&mmcc CAMSS_CSI3_AHB_CLK>,
1884                                 <&mmcc CAMSS_CSI3_CLK>,
1885                                 <&mmcc CAMSS_CSI3PHY_CLK>,
1886                                 <&mmcc CAMSS_CSI3PIX_CLK>,
1887                                 <&mmcc CAMSS_CSI3RDI_CLK>,
1888                                 <&mmcc CAMSS_AHB_CLK>,
1889                                 <&mmcc CAMSS_VFE0_CLK>,
1890                                 <&mmcc CAMSS_CSI_VFE0_CLK>,
1891                                 <&mmcc CAMSS_VFE0_AHB_CLK>,
1892                                 <&mmcc CAMSS_VFE0_STREAM_CLK>,
1893                                 <&mmcc CAMSS_VFE1_CLK>,
1894                                 <&mmcc CAMSS_CSI_VFE1_CLK>,
1895                                 <&mmcc CAMSS_VFE1_AHB_CLK>,
1896                                 <&mmcc CAMSS_VFE1_STREAM_CLK>,
1897                                 <&mmcc CAMSS_VFE_AHB_CLK>,
1898                                 <&mmcc CAMSS_VFE_AXI_CLK>;
1899                         clock-names = "top_ahb",
1900                                 "ispif_ahb",
1901                                 "csiphy0_timer",
1902                                 "csiphy1_timer",
1903                                 "csiphy2_timer",
1904                                 "csi0_ahb",
1905                                 "csi0",
1906                                 "csi0_phy",
1907                                 "csi0_pix",
1908                                 "csi0_rdi",
1909                                 "csi1_ahb",
1910                                 "csi1",
1911                                 "csi1_phy",
1912                                 "csi1_pix",
1913                                 "csi1_rdi",
1914                                 "csi2_ahb",
1915                                 "csi2",
1916                                 "csi2_phy",
1917                                 "csi2_pix",
1918                                 "csi2_rdi",
1919                                 "csi3_ahb",
1920                                 "csi3",
1921                                 "csi3_phy",
1922                                 "csi3_pix",
1923                                 "csi3_rdi",
1924                                 "ahb",
1925                                 "vfe0",
1926                                 "csi_vfe0",
1927                                 "vfe0_ahb",
1928                                 "vfe0_stream",
1929                                 "vfe1",
1930                                 "csi_vfe1",
1931                                 "vfe1_ahb",
1932                                 "vfe1_stream",
1933                                 "vfe_ahb",
1934                                 "vfe_axi";
1935                         iommus = <&vfe_smmu 0>,
1936                                  <&vfe_smmu 1>,
1937                                  <&vfe_smmu 2>,
1938                                  <&vfe_smmu 3>;
1939                         status = "disabled";
1940                         ports {
1941                                 #address-cells = <1>;
1942                                 #size-cells = <0>;
1943                         };
1944                 };
1945
1946                 cci: cci@a0c000 {
1947                         compatible = "qcom,msm8996-cci";
1948                         #address-cells = <1>;
1949                         #size-cells = <0>;
1950                         reg = <0xa0c000 0x1000>;
1951                         interrupts = <GIC_SPI 295 IRQ_TYPE_EDGE_RISING>;
1952                         power-domains = <&mmcc CAMSS_GDSC>;
1953                         clocks = <&mmcc CAMSS_TOP_AHB_CLK>,
1954                                  <&mmcc CAMSS_CCI_AHB_CLK>,
1955                                  <&mmcc CAMSS_CCI_CLK>,
1956                                  <&mmcc CAMSS_AHB_CLK>;
1957                         clock-names = "camss_top_ahb",
1958                                       "cci_ahb",
1959                                       "cci",
1960                                       "camss_ahb";
1961                         assigned-clocks = <&mmcc CAMSS_CCI_AHB_CLK>,
1962                                           <&mmcc CAMSS_CCI_CLK>;
1963                         assigned-clock-rates = <80000000>, <37500000>;
1964                         pinctrl-names = "default";
1965                         pinctrl-0 = <&cci0_default &cci1_default>;
1966                         status = "disabled";
1967
1968                         cci_i2c0: i2c-bus@0 {
1969                                 reg = <0>;
1970                                 clock-frequency = <400000>;
1971                                 #address-cells = <1>;
1972                                 #size-cells = <0>;
1973                         };
1974
1975                         cci_i2c1: i2c-bus@1 {
1976                                 reg = <1>;
1977                                 clock-frequency = <400000>;
1978                                 #address-cells = <1>;
1979                                 #size-cells = <0>;
1980                         };
1981                 };
1982
1983                 adreno_smmu: iommu@b40000 {
1984                         compatible = "qcom,msm8996-smmu-v2", "qcom,adreno-smmu", "qcom,smmu-v2";
1985                         reg = <0x00b40000 0x10000>;
1986
1987                         #global-interrupts = <1>;
1988                         interrupts = <GIC_SPI 334 IRQ_TYPE_LEVEL_HIGH>,
1989                                      <GIC_SPI 329 IRQ_TYPE_LEVEL_HIGH>,
1990                                      <GIC_SPI 330 IRQ_TYPE_LEVEL_HIGH>;
1991                         #iommu-cells = <1>;
1992
1993                         clocks = <&mmcc GPU_AHB_CLK>,
1994                                  <&gcc GCC_MMSS_BIMC_GFX_CLK>;
1995                         clock-names = "iface", "bus";
1996
1997                         power-domains = <&mmcc GPU_GDSC>;
1998                 };
1999
2000                 venus: video-codec@c00000 {
2001                         compatible = "qcom,msm8996-venus";
2002                         reg = <0x00c00000 0xff000>;
2003                         interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
2004                         power-domains = <&mmcc VENUS_GDSC>;
2005                         clocks = <&mmcc VIDEO_CORE_CLK>,
2006                                  <&mmcc VIDEO_AHB_CLK>,
2007                                  <&mmcc VIDEO_AXI_CLK>,
2008                                  <&mmcc VIDEO_MAXI_CLK>;
2009                         clock-names = "core", "iface", "bus", "mbus";
2010                         iommus = <&venus_smmu 0x00>,
2011                                  <&venus_smmu 0x01>,
2012                                  <&venus_smmu 0x0a>,
2013                                  <&venus_smmu 0x07>,
2014                                  <&venus_smmu 0x0e>,
2015                                  <&venus_smmu 0x0f>,
2016                                  <&venus_smmu 0x08>,
2017                                  <&venus_smmu 0x09>,
2018                                  <&venus_smmu 0x0b>,
2019                                  <&venus_smmu 0x0c>,
2020                                  <&venus_smmu 0x0d>,
2021                                  <&venus_smmu 0x10>,
2022                                  <&venus_smmu 0x11>,
2023                                  <&venus_smmu 0x21>,
2024                                  <&venus_smmu 0x28>,
2025                                  <&venus_smmu 0x29>,
2026                                  <&venus_smmu 0x2b>,
2027                                  <&venus_smmu 0x2c>,
2028                                  <&venus_smmu 0x2d>,
2029                                  <&venus_smmu 0x31>;
2030                         memory-region = <&venus_region>;
2031                         status = "disabled";
2032
2033                         video-decoder {
2034                                 compatible = "venus-decoder";
2035                                 clocks = <&mmcc VIDEO_SUBCORE0_CLK>;
2036                                 clock-names = "core";
2037                                 power-domains = <&mmcc VENUS_CORE0_GDSC>;
2038                         };
2039
2040                         video-encoder {
2041                                 compatible = "venus-encoder";
2042                                 clocks = <&mmcc VIDEO_SUBCORE1_CLK>;
2043                                 clock-names = "core";
2044                                 power-domains = <&mmcc VENUS_CORE1_GDSC>;
2045                         };
2046                 };
2047
2048                 mdp_smmu: iommu@d00000 {
2049                         compatible = "qcom,msm8996-smmu-v2", "qcom,smmu-v2";
2050                         reg = <0x00d00000 0x10000>;
2051
2052                         #global-interrupts = <1>;
2053                         interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
2054                                      <GIC_SPI 320 IRQ_TYPE_LEVEL_HIGH>,
2055                                      <GIC_SPI 321 IRQ_TYPE_LEVEL_HIGH>;
2056                         #iommu-cells = <1>;
2057                         clocks = <&mmcc SMMU_MDP_AHB_CLK>,
2058                                  <&mmcc SMMU_MDP_AXI_CLK>;
2059                         clock-names = "iface", "bus";
2060
2061                         power-domains = <&mmcc MDSS_GDSC>;
2062                 };
2063
2064                 venus_smmu: iommu@d40000 {
2065                         compatible = "qcom,msm8996-smmu-v2", "qcom,smmu-v2";
2066                         reg = <0x00d40000 0x20000>;
2067                         #global-interrupts = <1>;
2068                         interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>,
2069                                      <GIC_SPI 335 IRQ_TYPE_LEVEL_HIGH>,
2070                                      <GIC_SPI 336 IRQ_TYPE_LEVEL_HIGH>,
2071                                      <GIC_SPI 337 IRQ_TYPE_LEVEL_HIGH>,
2072                                      <GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH>,
2073                                      <GIC_SPI 339 IRQ_TYPE_LEVEL_HIGH>,
2074                                      <GIC_SPI 340 IRQ_TYPE_LEVEL_HIGH>,
2075                                      <GIC_SPI 341 IRQ_TYPE_LEVEL_HIGH>;
2076                         power-domains = <&mmcc MMAGIC_VIDEO_GDSC>;
2077                         clocks = <&mmcc SMMU_VIDEO_AHB_CLK>,
2078                                  <&mmcc SMMU_VIDEO_AXI_CLK>;
2079                         clock-names = "iface", "bus";
2080                         #iommu-cells = <1>;
2081                         status = "okay";
2082                 };
2083
2084                 vfe_smmu: iommu@da0000 {
2085                         compatible = "qcom,msm8996-smmu-v2", "qcom,smmu-v2";
2086                         reg = <0x00da0000 0x10000>;
2087
2088                         #global-interrupts = <1>;
2089                         interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
2090                                      <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>,
2091                                      <GIC_SPI 344 IRQ_TYPE_LEVEL_HIGH>;
2092                         power-domains = <&mmcc MMAGIC_CAMSS_GDSC>;
2093                         clocks = <&mmcc SMMU_VFE_AHB_CLK>,
2094                                  <&mmcc SMMU_VFE_AXI_CLK>;
2095                         clock-names = "iface",
2096                                       "bus";
2097                         #iommu-cells = <1>;
2098                 };
2099
2100                 lpass_q6_smmu: iommu@1600000 {
2101                         compatible = "qcom,msm8996-smmu-v2", "qcom,smmu-v2";
2102                         reg = <0x01600000 0x20000>;
2103                         #iommu-cells = <1>;
2104                         power-domains = <&gcc HLOS1_VOTE_LPASS_CORE_GDSC>;
2105
2106                         #global-interrupts = <1>;
2107                         interrupts = <GIC_SPI 404 IRQ_TYPE_LEVEL_HIGH>,
2108                                 <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>,
2109                                 <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH>,
2110                                 <GIC_SPI 394 IRQ_TYPE_LEVEL_HIGH>,
2111                                 <GIC_SPI 395 IRQ_TYPE_LEVEL_HIGH>,
2112                                 <GIC_SPI 396 IRQ_TYPE_LEVEL_HIGH>,
2113                                 <GIC_SPI 397 IRQ_TYPE_LEVEL_HIGH>,
2114                                 <GIC_SPI 398 IRQ_TYPE_LEVEL_HIGH>,
2115                                 <GIC_SPI 399 IRQ_TYPE_LEVEL_HIGH>,
2116                                 <GIC_SPI 400 IRQ_TYPE_LEVEL_HIGH>,
2117                                 <GIC_SPI 401 IRQ_TYPE_LEVEL_HIGH>,
2118                                 <GIC_SPI 402 IRQ_TYPE_LEVEL_HIGH>,
2119                                 <GIC_SPI 403 IRQ_TYPE_LEVEL_HIGH>;
2120
2121                         clocks = <&gcc GCC_HLOS1_VOTE_LPASS_CORE_SMMU_CLK>,
2122                                  <&gcc GCC_HLOS1_VOTE_LPASS_ADSP_SMMU_CLK>;
2123                         clock-names = "iface", "bus";
2124                 };
2125
2126                 stm@3002000 {
2127                         compatible = "arm,coresight-stm", "arm,primecell";
2128                         reg = <0x3002000 0x1000>,
2129                               <0x8280000 0x180000>;
2130                         reg-names = "stm-base", "stm-stimulus-base";
2131
2132                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2133                         clock-names = "apb_pclk", "atclk";
2134
2135                         out-ports {
2136                                 port {
2137                                         stm_out: endpoint {
2138                                                 remote-endpoint =
2139                                                   <&funnel0_in>;
2140                                         };
2141                                 };
2142                         };
2143                 };
2144
2145                 tpiu@3020000 {
2146                         compatible = "arm,coresight-tpiu", "arm,primecell";
2147                         reg = <0x3020000 0x1000>;
2148
2149                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2150                         clock-names = "apb_pclk", "atclk";
2151
2152                         in-ports {
2153                                 port {
2154                                         tpiu_in: endpoint {
2155                                                 remote-endpoint =
2156                                                   <&replicator_out1>;
2157                                         };
2158                                 };
2159                         };
2160                 };
2161
2162                 funnel@3021000 {
2163                         compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
2164                         reg = <0x3021000 0x1000>;
2165
2166                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2167                         clock-names = "apb_pclk", "atclk";
2168
2169                         in-ports {
2170                                 #address-cells = <1>;
2171                                 #size-cells = <0>;
2172
2173                                 port@7 {
2174                                         reg = <7>;
2175                                         funnel0_in: endpoint {
2176                                                 remote-endpoint =
2177                                                   <&stm_out>;
2178                                         };
2179                                 };
2180                         };
2181
2182                         out-ports {
2183                                 port {
2184                                         funnel0_out: endpoint {
2185                                                 remote-endpoint =
2186                                                   <&merge_funnel_in0>;
2187                                         };
2188                                 };
2189                         };
2190                 };
2191
2192                 funnel@3022000 {
2193                         compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
2194                         reg = <0x3022000 0x1000>;
2195
2196                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2197                         clock-names = "apb_pclk", "atclk";
2198
2199                         in-ports {
2200                                 #address-cells = <1>;
2201                                 #size-cells = <0>;
2202
2203                                 port@6 {
2204                                         reg = <6>;
2205                                         funnel1_in: endpoint {
2206                                                 remote-endpoint =
2207                                                   <&apss_merge_funnel_out>;
2208                                         };
2209                                 };
2210                         };
2211
2212                         out-ports {
2213                                 port {
2214                                         funnel1_out: endpoint {
2215                                                 remote-endpoint =
2216                                                   <&merge_funnel_in1>;
2217                                         };
2218                                 };
2219                         };
2220                 };
2221
2222                 funnel@3023000 {
2223                         compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
2224                         reg = <0x3023000 0x1000>;
2225
2226                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2227                         clock-names = "apb_pclk", "atclk";
2228
2229
2230                         out-ports {
2231                                 port {
2232                                         funnel2_out: endpoint {
2233                                                 remote-endpoint =
2234                                                   <&merge_funnel_in2>;
2235                                         };
2236                                 };
2237                         };
2238                 };
2239
2240                 funnel@3025000 {
2241                         compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
2242                         reg = <0x3025000 0x1000>;
2243
2244                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2245                         clock-names = "apb_pclk", "atclk";
2246
2247                         in-ports {
2248                                 #address-cells = <1>;
2249                                 #size-cells = <0>;
2250
2251                                 port@0 {
2252                                         reg = <0>;
2253                                         merge_funnel_in0: endpoint {
2254                                                 remote-endpoint =
2255                                                   <&funnel0_out>;
2256                                         };
2257                                 };
2258
2259                                 port@1 {
2260                                         reg = <1>;
2261                                         merge_funnel_in1: endpoint {
2262                                                 remote-endpoint =
2263                                                   <&funnel1_out>;
2264                                         };
2265                                 };
2266
2267                                 port@2 {
2268                                         reg = <2>;
2269                                         merge_funnel_in2: endpoint {
2270                                                 remote-endpoint =
2271                                                   <&funnel2_out>;
2272                                         };
2273                                 };
2274                         };
2275
2276                         out-ports {
2277                                 port {
2278                                         merge_funnel_out: endpoint {
2279                                                 remote-endpoint =
2280                                                   <&etf_in>;
2281                                         };
2282                                 };
2283                         };
2284                 };
2285
2286                 replicator@3026000 {
2287                         compatible = "arm,coresight-dynamic-replicator", "arm,primecell";
2288                         reg = <0x3026000 0x1000>;
2289
2290                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2291                         clock-names = "apb_pclk", "atclk";
2292
2293                         in-ports {
2294                                 port {
2295                                         replicator_in: endpoint {
2296                                                 remote-endpoint =
2297                                                   <&etf_out>;
2298                                         };
2299                                 };
2300                         };
2301
2302                         out-ports {
2303                                 #address-cells = <1>;
2304                                 #size-cells = <0>;
2305
2306                                 port@0 {
2307                                         reg = <0>;
2308                                         replicator_out0: endpoint {
2309                                                 remote-endpoint =
2310                                                   <&etr_in>;
2311                                         };
2312                                 };
2313
2314                                 port@1 {
2315                                         reg = <1>;
2316                                         replicator_out1: endpoint {
2317                                                 remote-endpoint =
2318                                                   <&tpiu_in>;
2319                                         };
2320                                 };
2321                         };
2322                 };
2323
2324                 etf@3027000 {
2325                         compatible = "arm,coresight-tmc", "arm,primecell";
2326                         reg = <0x3027000 0x1000>;
2327
2328                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2329                         clock-names = "apb_pclk", "atclk";
2330
2331                         in-ports {
2332                                 port {
2333                                         etf_in: endpoint {
2334                                                 remote-endpoint =
2335                                                   <&merge_funnel_out>;
2336                                         };
2337                                 };
2338                         };
2339
2340                         out-ports {
2341                                 port {
2342                                         etf_out: endpoint {
2343                                                 remote-endpoint =
2344                                                   <&replicator_in>;
2345                                         };
2346                                 };
2347                         };
2348                 };
2349
2350                 etr@3028000 {
2351                         compatible = "arm,coresight-tmc", "arm,primecell";
2352                         reg = <0x3028000 0x1000>;
2353
2354                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2355                         clock-names = "apb_pclk", "atclk";
2356                         arm,scatter-gather;
2357
2358                         in-ports {
2359                                 port {
2360                                         etr_in: endpoint {
2361                                                 remote-endpoint =
2362                                                   <&replicator_out0>;
2363                                         };
2364                                 };
2365                         };
2366                 };
2367
2368                 debug@3810000 {
2369                         compatible = "arm,coresight-cpu-debug", "arm,primecell";
2370                         reg = <0x3810000 0x1000>;
2371
2372                         clocks = <&rpmcc RPM_QDSS_CLK>;
2373                         clock-names = "apb_pclk";
2374
2375                         cpu = <&CPU0>;
2376                 };
2377
2378                 etm@3840000 {
2379                         compatible = "arm,coresight-etm4x", "arm,primecell";
2380                         reg = <0x3840000 0x1000>;
2381
2382                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2383                         clock-names = "apb_pclk", "atclk";
2384
2385                         cpu = <&CPU0>;
2386
2387                         out-ports {
2388                                 port {
2389                                         etm0_out: endpoint {
2390                                                 remote-endpoint =
2391                                                   <&apss_funnel0_in0>;
2392                                         };
2393                                 };
2394                         };
2395                 };
2396
2397                 debug@3910000 {
2398                         compatible = "arm,coresight-cpu-debug", "arm,primecell";
2399                         reg = <0x3910000 0x1000>;
2400
2401                         clocks = <&rpmcc RPM_QDSS_CLK>;
2402                         clock-names = "apb_pclk";
2403
2404                         cpu = <&CPU1>;
2405                 };
2406
2407                 etm@3940000 {
2408                         compatible = "arm,coresight-etm4x", "arm,primecell";
2409                         reg = <0x3940000 0x1000>;
2410
2411                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2412                         clock-names = "apb_pclk", "atclk";
2413
2414                         cpu = <&CPU1>;
2415
2416                         out-ports {
2417                                 port {
2418                                         etm1_out: endpoint {
2419                                                 remote-endpoint =
2420                                                   <&apss_funnel0_in1>;
2421                                         };
2422                                 };
2423                         };
2424                 };
2425
2426                 funnel@39b0000 { /* APSS Funnel 0 */
2427                         compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
2428                         reg = <0x39b0000 0x1000>;
2429
2430                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2431                         clock-names = "apb_pclk", "atclk";
2432
2433                         in-ports {
2434                                 #address-cells = <1>;
2435                                 #size-cells = <0>;
2436
2437                                 port@0 {
2438                                         reg = <0>;
2439                                         apss_funnel0_in0: endpoint {
2440                                                 remote-endpoint = <&etm0_out>;
2441                                         };
2442                                 };
2443
2444                                 port@1 {
2445                                         reg = <1>;
2446                                         apss_funnel0_in1: endpoint {
2447                                                 remote-endpoint = <&etm1_out>;
2448                                         };
2449                                 };
2450                         };
2451
2452                         out-ports {
2453                                 port {
2454                                         apss_funnel0_out: endpoint {
2455                                                 remote-endpoint =
2456                                                   <&apss_merge_funnel_in0>;
2457                                         };
2458                                 };
2459                         };
2460                 };
2461
2462                 debug@3a10000 {
2463                         compatible = "arm,coresight-cpu-debug", "arm,primecell";
2464                         reg = <0x3a10000 0x1000>;
2465
2466                         clocks = <&rpmcc RPM_QDSS_CLK>;
2467                         clock-names = "apb_pclk";
2468
2469                         cpu = <&CPU2>;
2470                 };
2471
2472                 etm@3a40000 {
2473                         compatible = "arm,coresight-etm4x", "arm,primecell";
2474                         reg = <0x3a40000 0x1000>;
2475
2476                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2477                         clock-names = "apb_pclk", "atclk";
2478
2479                         cpu = <&CPU2>;
2480
2481                         out-ports {
2482                                 port {
2483                                         etm2_out: endpoint {
2484                                                 remote-endpoint =
2485                                                   <&apss_funnel1_in0>;
2486                                         };
2487                                 };
2488                         };
2489                 };
2490
2491                 debug@3b10000 {
2492                         compatible = "arm,coresight-cpu-debug", "arm,primecell";
2493                         reg = <0x3b10000 0x1000>;
2494
2495                         clocks = <&rpmcc RPM_QDSS_CLK>;
2496                         clock-names = "apb_pclk";
2497
2498                         cpu = <&CPU3>;
2499                 };
2500
2501                 etm@3b40000 {
2502                         compatible = "arm,coresight-etm4x", "arm,primecell";
2503                         reg = <0x3b40000 0x1000>;
2504
2505                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2506                         clock-names = "apb_pclk", "atclk";
2507
2508                         cpu = <&CPU3>;
2509
2510                         out-ports {
2511                                 port {
2512                                         etm3_out: endpoint {
2513                                                 remote-endpoint =
2514                                                   <&apss_funnel1_in1>;
2515                                         };
2516                                 };
2517                         };
2518                 };
2519
2520                 funnel@3bb0000 { /* APSS Funnel 1 */
2521                         compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
2522                         reg = <0x3bb0000 0x1000>;
2523
2524                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2525                         clock-names = "apb_pclk", "atclk";
2526
2527                         in-ports {
2528                                 #address-cells = <1>;
2529                                 #size-cells = <0>;
2530
2531                                 port@0 {
2532                                         reg = <0>;
2533                                         apss_funnel1_in0: endpoint {
2534                                                 remote-endpoint = <&etm2_out>;
2535                                         };
2536                                 };
2537
2538                                 port@1 {
2539                                         reg = <1>;
2540                                         apss_funnel1_in1: endpoint {
2541                                                 remote-endpoint = <&etm3_out>;
2542                                         };
2543                                 };
2544                         };
2545
2546                         out-ports {
2547                                 port {
2548                                         apss_funnel1_out: endpoint {
2549                                                 remote-endpoint =
2550                                                   <&apss_merge_funnel_in1>;
2551                                         };
2552                                 };
2553                         };
2554                 };
2555
2556                 funnel@3bc0000 {
2557                         compatible = "arm,coresight-dynamic-funnel", "arm,primecell";
2558                         reg = <0x3bc0000 0x1000>;
2559
2560                         clocks = <&rpmcc RPM_QDSS_CLK>, <&rpmcc RPM_QDSS_A_CLK>;
2561                         clock-names = "apb_pclk", "atclk";
2562
2563                         in-ports {
2564                                 #address-cells = <1>;
2565                                 #size-cells = <0>;
2566
2567                                 port@0 {
2568                                         reg = <0>;
2569                                         apss_merge_funnel_in0: endpoint {
2570                                                 remote-endpoint =
2571                                                   <&apss_funnel0_out>;
2572                                         };
2573                                 };
2574
2575                                 port@1 {
2576                                         reg = <1>;
2577                                         apss_merge_funnel_in1: endpoint {
2578                                                 remote-endpoint =
2579                                                   <&apss_funnel1_out>;
2580                                         };
2581                                 };
2582                         };
2583
2584                         out-ports {
2585                                 port {
2586                                         apss_merge_funnel_out: endpoint {
2587                                                 remote-endpoint =
2588                                                   <&funnel1_in>;
2589                                         };
2590                                 };
2591                         };
2592                 };
2593
2594                 kryocc: clock-controller@6400000 {
2595                         compatible = "qcom,msm8996-apcc";
2596                         reg = <0x06400000 0x90000>;
2597
2598                         clock-names = "xo";
2599                         clocks = <&rpmcc RPM_SMD_BB_CLK1>;
2600
2601                         #clock-cells = <1>;
2602                 };
2603
2604                 usb3: usb@6af8800 {
2605                         compatible = "qcom,msm8996-dwc3", "qcom,dwc3";
2606                         reg = <0x06af8800 0x400>;
2607                         #address-cells = <1>;
2608                         #size-cells = <1>;
2609                         ranges;
2610
2611                         interrupts = <GIC_SPI 347 IRQ_TYPE_LEVEL_HIGH>,
2612                                      <GIC_SPI 243 IRQ_TYPE_LEVEL_HIGH>;
2613                         interrupt-names = "hs_phy_irq", "ss_phy_irq";
2614
2615                         clocks = <&gcc GCC_SYS_NOC_USB3_AXI_CLK>,
2616                                 <&gcc GCC_USB30_MASTER_CLK>,
2617                                 <&gcc GCC_AGGRE2_USB3_AXI_CLK>,
2618                                 <&gcc GCC_USB30_MOCK_UTMI_CLK>,
2619                                 <&gcc GCC_USB30_SLEEP_CLK>,
2620                                 <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>;
2621
2622                         assigned-clocks = <&gcc GCC_USB30_MOCK_UTMI_CLK>,
2623                                           <&gcc GCC_USB30_MASTER_CLK>;
2624                         assigned-clock-rates = <19200000>, <120000000>;
2625
2626                         power-domains = <&gcc USB30_GDSC>;
2627                         status = "disabled";
2628
2629                         usb3_dwc3: dwc3@6a00000 {
2630                                 compatible = "snps,dwc3";
2631                                 reg = <0x06a00000 0xcc00>;
2632                                 interrupts = <0 131 IRQ_TYPE_LEVEL_HIGH>;
2633                                 phys = <&hsusb_phy1>, <&ssusb_phy_0>;
2634                                 phy-names = "usb2-phy", "usb3-phy";
2635                                 snps,dis_u2_susphy_quirk;
2636                                 snps,dis_enblslpm_quirk;
2637                         };
2638                 };
2639
2640                 usb3phy: phy@7410000 {
2641                         compatible = "qcom,msm8996-qmp-usb3-phy";
2642                         reg = <0x07410000 0x1c4>;
2643                         #address-cells = <1>;
2644                         #size-cells = <1>;
2645                         ranges;
2646
2647                         clocks = <&gcc GCC_USB3_PHY_AUX_CLK>,
2648                                 <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
2649                                 <&gcc GCC_USB3_CLKREF_CLK>;
2650                         clock-names = "aux", "cfg_ahb", "ref";
2651
2652                         resets = <&gcc GCC_USB3_PHY_BCR>,
2653                                 <&gcc GCC_USB3PHY_PHY_BCR>;
2654                         reset-names = "phy", "common";
2655                         status = "disabled";
2656
2657                         ssusb_phy_0: phy@7410200 {
2658                                 reg = <0x07410200 0x200>,
2659                                       <0x07410400 0x130>,
2660                                       <0x07410600 0x1a8>;
2661                                 #phy-cells = <0>;
2662
2663                                 #clock-cells = <1>;
2664                                 clock-output-names = "usb3_phy_pipe_clk_src";
2665                                 clocks = <&gcc GCC_USB3_PHY_PIPE_CLK>;
2666                                 clock-names = "pipe0";
2667                         };
2668                 };
2669
2670                 hsusb_phy1: phy@7411000 {
2671                         compatible = "qcom,msm8996-qusb2-phy";
2672                         reg = <0x07411000 0x180>;
2673                         #phy-cells = <0>;
2674
2675                         clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
2676                                 <&gcc GCC_RX1_USB2_CLKREF_CLK>;
2677                         clock-names = "cfg_ahb", "ref";
2678
2679                         resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>;
2680                         nvmem-cells = <&qusb2p_hstx_trim>;
2681                         status = "disabled";
2682                 };
2683
2684                 hsusb_phy2: phy@7412000 {
2685                         compatible = "qcom,msm8996-qusb2-phy";
2686                         reg = <0x07412000 0x180>;
2687                         #phy-cells = <0>;
2688
2689                         clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
2690                                 <&gcc GCC_RX2_USB2_CLKREF_CLK>;
2691                         clock-names = "cfg_ahb", "ref";
2692
2693                         resets = <&gcc GCC_QUSB2PHY_SEC_BCR>;
2694                         nvmem-cells = <&qusb2s_hstx_trim>;
2695                         status = "disabled";
2696                 };
2697
2698                 sdhc1: sdhci@7464900 {
2699                         compatible = "qcom,msm8996-sdhci", "qcom,sdhci-msm-v4";
2700                         reg = <0x07464900 0x11c>, <0x07464000 0x800>;
2701                         reg-names = "hc_mem", "core_mem";
2702
2703                         interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
2704                                         <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
2705                         interrupt-names = "hc_irq", "pwr_irq";
2706
2707                         clock-names = "iface", "core", "xo";
2708                         clocks = <&gcc GCC_SDCC1_AHB_CLK>,
2709                                 <&gcc GCC_SDCC1_APPS_CLK>,
2710                                 <&rpmcc RPM_SMD_BB_CLK1>;
2711
2712                         pinctrl-names = "default", "sleep";
2713                         pinctrl-0 = <&sdc1_state_on>;
2714                         pinctrl-1 = <&sdc1_state_off>;
2715
2716                         bus-width = <8>;
2717                         non-removable;
2718                         status = "disabled";
2719                 };
2720
2721                 sdhc2: sdhci@74a4900 {
2722                         compatible = "qcom,msm8996-sdhci", "qcom,sdhci-msm-v4";
2723                         reg = <0x074a4900 0x314>, <0x074a4000 0x800>;
2724                         reg-names = "hc_mem", "core_mem";
2725
2726                         interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
2727                                       <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>;
2728                         interrupt-names = "hc_irq", "pwr_irq";
2729
2730                         clock-names = "iface", "core", "xo";
2731                         clocks = <&gcc GCC_SDCC2_AHB_CLK>,
2732                                 <&gcc GCC_SDCC2_APPS_CLK>,
2733                                 <&rpmcc RPM_SMD_BB_CLK1>;
2734
2735                         pinctrl-names = "default", "sleep";
2736                         pinctrl-0 = <&sdc2_state_on>;
2737                         pinctrl-1 = <&sdc2_state_off>;
2738
2739                         bus-width = <4>;
2740                         status = "disabled";
2741                  };
2742
2743                 blsp1_dma: dma-controller@7544000 {
2744                         compatible = "qcom,bam-v1.7.0";
2745                         reg = <0x07544000 0x2b000>;
2746                         interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
2747                         clocks = <&gcc GCC_BLSP1_AHB_CLK>;
2748                         clock-names = "bam_clk";
2749                         qcom,controlled-remotely;
2750                         #dma-cells = <1>;
2751                         qcom,ee = <0>;
2752                 };
2753
2754                 blsp1_uart2: serial@7570000 {
2755                         compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
2756                         reg = <0x07570000 0x1000>;
2757                         interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
2758                         clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>,
2759                                  <&gcc GCC_BLSP1_AHB_CLK>;
2760                         clock-names = "core", "iface";
2761                         pinctrl-names = "default", "sleep";
2762                         pinctrl-0 = <&blsp1_uart2_default>;
2763                         pinctrl-1 = <&blsp1_uart2_sleep>;
2764                         dmas = <&blsp1_dma 2>, <&blsp1_dma 3>;
2765                         dma-names = "tx", "rx";
2766                         status = "disabled";
2767                 };
2768
2769                 blsp1_spi1: spi@7575000 {
2770                         compatible = "qcom,spi-qup-v2.2.1";
2771                         reg = <0x07575000 0x600>;
2772                         interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
2773                         clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
2774                                  <&gcc GCC_BLSP1_AHB_CLK>;
2775                         clock-names = "core", "iface";
2776                         pinctrl-names = "default", "sleep";
2777                         pinctrl-0 = <&blsp1_spi1_default>;
2778                         pinctrl-1 = <&blsp1_spi1_sleep>;
2779                         dmas = <&blsp1_dma 12>, <&blsp1_dma 13>;
2780                         dma-names = "tx", "rx";
2781                         #address-cells = <1>;
2782                         #size-cells = <0>;
2783                         status = "disabled";
2784                 };
2785
2786                 blsp1_i2c3: i2c@7577000 {
2787                         compatible = "qcom,i2c-qup-v2.2.1";
2788                         reg = <0x07577000 0x1000>;
2789                         interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
2790                         clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>,
2791                                  <&gcc GCC_BLSP1_AHB_CLK>;
2792                         clock-names = "core", "iface";
2793                         pinctrl-names = "default", "sleep";
2794                         pinctrl-0 = <&blsp1_i2c3_default>;
2795                         pinctrl-1 = <&blsp1_i2c3_sleep>;
2796                         dmas = <&blsp1_dma 16>, <&blsp1_dma 17>;
2797                         dma-names = "tx", "rx";
2798                         #address-cells = <1>;
2799                         #size-cells = <0>;
2800                         status = "disabled";
2801                 };
2802
2803                 blsp2_dma: dma-controller@7584000 {
2804                         compatible = "qcom,bam-v1.7.0";
2805                         reg = <0x07584000 0x2b000>;
2806                         interrupts = <GIC_SPI 239 IRQ_TYPE_LEVEL_HIGH>;
2807                         clocks = <&gcc GCC_BLSP2_AHB_CLK>;
2808                         clock-names = "bam_clk";
2809                         qcom,controlled-remotely;
2810                         #dma-cells = <1>;
2811                         qcom,ee = <0>;
2812                 };
2813
2814                 blsp2_uart2: serial@75b0000 {
2815                         compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
2816                         reg = <0x075b0000 0x1000>;
2817                         interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
2818                         clocks = <&gcc GCC_BLSP2_UART2_APPS_CLK>,
2819                                  <&gcc GCC_BLSP2_AHB_CLK>;
2820                         clock-names = "core", "iface";
2821                         status = "disabled";
2822                 };
2823
2824                 blsp2_uart3: serial@75b1000 {
2825                         compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
2826                         reg = <0x075b1000 0x1000>;
2827                         interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
2828                         clocks = <&gcc GCC_BLSP2_UART3_APPS_CLK>,
2829                                  <&gcc GCC_BLSP2_AHB_CLK>;
2830                         clock-names = "core", "iface";
2831                         status = "disabled";
2832                 };
2833
2834                 blsp2_i2c1: i2c@75b5000 {
2835                         compatible = "qcom,i2c-qup-v2.2.1";
2836                         reg = <0x075b5000 0x1000>;
2837                         interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
2838                         clocks = <&gcc GCC_BLSP2_QUP1_I2C_APPS_CLK>,
2839                                  <&gcc GCC_BLSP2_AHB_CLK>;
2840                         clock-names = "core", "iface";
2841                         pinctrl-names = "default", "sleep";
2842                         pinctrl-0 = <&blsp2_i2c1_default>;
2843                         pinctrl-1 = <&blsp2_i2c1_sleep>;
2844                         dmas = <&blsp2_dma 12>, <&blsp2_dma 13>;
2845                         dma-names = "tx", "rx";
2846                         #address-cells = <1>;
2847                         #size-cells = <0>;
2848                         status = "disabled";
2849                 };
2850
2851                 blsp2_i2c2: i2c@75b6000 {
2852                         compatible = "qcom,i2c-qup-v2.2.1";
2853                         reg = <0x075b6000 0x1000>;
2854                         interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
2855                         clocks = <&gcc GCC_BLSP2_QUP2_I2C_APPS_CLK>,
2856                                  <&gcc GCC_BLSP2_AHB_CLK>;
2857                         clock-names = "core", "iface";
2858                         pinctrl-names = "default", "sleep";
2859                         pinctrl-0 = <&blsp2_i2c2_default>;
2860                         pinctrl-1 = <&blsp2_i2c2_sleep>;
2861                         dmas = <&blsp2_dma 14>, <&blsp2_dma 15>;
2862                         dma-names = "tx", "rx";
2863                         #address-cells = <1>;
2864                         #size-cells = <0>;
2865                         status = "disabled";
2866                 };
2867
2868                 blsp2_i2c3: i2c@75b7000 {
2869                         compatible = "qcom,i2c-qup-v2.2.1";
2870                         reg = <0x075b7000 0x1000>;
2871                         interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
2872                         clocks = <&gcc GCC_BLSP2_QUP3_I2C_APPS_CLK>,
2873                                  <&gcc GCC_BLSP2_AHB_CLK>;
2874                         clock-names = "core", "iface";
2875                         clock-frequency = <400000>;
2876                         pinctrl-names = "default", "sleep";
2877                         pinctrl-0 = <&blsp2_i2c3_default>;
2878                         pinctrl-1 = <&blsp2_i2c3_sleep>;
2879                         dmas = <&blsp2_dma 16>, <&blsp2_dma 17>;
2880                         dma-names = "tx", "rx";
2881                         #address-cells = <1>;
2882                         #size-cells = <0>;
2883                         status = "disabled";
2884                 };
2885
2886                 blsp2_i2c5: i2c@75b9000 {
2887                         compatible = "qcom,i2c-qup-v2.2.1";
2888                         reg = <0x75b9000 0x1000>;
2889                         interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
2890                         clocks = <&gcc GCC_BLSP2_QUP5_I2C_APPS_CLK>,
2891                                  <&gcc GCC_BLSP2_AHB_CLK>;
2892                         clock-names = "core", "iface";
2893                         pinctrl-names = "default";
2894                         pinctrl-0 = <&blsp2_i2c5_default>;
2895                         dmas = <&blsp2_dma 20>, <&blsp2_dma 21>;
2896                         dma-names = "tx", "rx";
2897                         #address-cells = <1>;
2898                         #size-cells = <0>;
2899                         status = "disabled";
2900                 };
2901
2902                 blsp2_i2c6: i2c@75ba000 {
2903                         compatible = "qcom,i2c-qup-v2.2.1";
2904                         reg = <0x75ba000 0x1000>;
2905                         interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
2906                         clocks = <&gcc GCC_BLSP2_QUP6_I2C_APPS_CLK>,
2907                                  <&gcc GCC_BLSP2_AHB_CLK>;
2908                         clock-names = "core", "iface";
2909                         pinctrl-names = "default", "sleep";
2910                         pinctrl-0 = <&blsp2_i2c6_default>;
2911                         pinctrl-1 = <&blsp2_i2c6_sleep>;
2912                         dmas = <&blsp2_dma 22>, <&blsp2_dma 23>;
2913                         dma-names = "tx", "rx";
2914                         #address-cells = <1>;
2915                         #size-cells = <0>;
2916                         status = "disabled";
2917                 };
2918
2919                 blsp2_spi6: spi@75ba000{
2920                         compatible = "qcom,spi-qup-v2.2.1";
2921                         reg = <0x075ba000 0x600>;
2922                         interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
2923                         clocks = <&gcc GCC_BLSP2_QUP6_SPI_APPS_CLK>,
2924                                  <&gcc GCC_BLSP2_AHB_CLK>;
2925                         clock-names = "core", "iface";
2926                         pinctrl-names = "default", "sleep";
2927                         pinctrl-0 = <&blsp2_spi6_default>;
2928                         pinctrl-1 = <&blsp2_spi6_sleep>;
2929                         dmas = <&blsp2_dma 22>, <&blsp2_dma 23>;
2930                         dma-names = "tx", "rx";
2931                         #address-cells = <1>;
2932                         #size-cells = <0>;
2933                         status = "disabled";
2934                 };
2935
2936                 usb2: usb@76f8800 {
2937                         compatible = "qcom,msm8996-dwc3", "qcom,dwc3";
2938                         reg = <0x076f8800 0x400>;
2939                         #address-cells = <1>;
2940                         #size-cells = <1>;
2941                         ranges;
2942
2943                         clocks = <&gcc GCC_PERIPH_NOC_USB20_AHB_CLK>,
2944                                 <&gcc GCC_USB20_MASTER_CLK>,
2945                                 <&gcc GCC_USB20_MOCK_UTMI_CLK>,
2946                                 <&gcc GCC_USB20_SLEEP_CLK>,
2947                                 <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>;
2948
2949                         assigned-clocks = <&gcc GCC_USB20_MOCK_UTMI_CLK>,
2950                                           <&gcc GCC_USB20_MASTER_CLK>;
2951                         assigned-clock-rates = <19200000>, <60000000>;
2952
2953                         power-domains = <&gcc USB30_GDSC>;
2954                         qcom,select-utmi-as-pipe-clk;
2955                         status = "disabled";
2956
2957                         dwc3@7600000 {
2958                                 compatible = "snps,dwc3";
2959                                 reg = <0x07600000 0xcc00>;
2960                                 interrupts = <0 138 IRQ_TYPE_LEVEL_HIGH>;
2961                                 phys = <&hsusb_phy2>;
2962                                 phy-names = "usb2-phy";
2963                                 maximum-speed = "high-speed";
2964                                 snps,dis_u2_susphy_quirk;
2965                                 snps,dis_enblslpm_quirk;
2966                         };
2967                 };
2968
2969                 slimbam: dma-controller@9184000 {
2970                         compatible = "qcom,bam-v1.7.0";
2971                         qcom,controlled-remotely;
2972                         reg = <0x09184000 0x32000>;
2973                         num-channels  = <31>;
2974                         interrupts = <0 164 IRQ_TYPE_LEVEL_HIGH>;
2975                         #dma-cells = <1>;
2976                         qcom,ee = <1>;
2977                         qcom,num-ees = <2>;
2978                 };
2979
2980                 slim_msm: slim@91c0000 {
2981                         compatible = "qcom,slim-ngd-v1.5.0";
2982                         reg = <0x091c0000 0x2C000>;
2983                         reg-names = "ctrl";
2984                         interrupts = <0 163 IRQ_TYPE_LEVEL_HIGH>;
2985                         dmas =  <&slimbam 3>, <&slimbam 4>,
2986                                 <&slimbam 5>, <&slimbam 6>;
2987                         dma-names = "rx", "tx", "tx2", "rx2";
2988                         #address-cells = <1>;
2989                         #size-cells = <0>;
2990                         ngd@1 {
2991                                 reg = <1>;
2992                                 #address-cells = <1>;
2993                                 #size-cells = <1>;
2994
2995                                 tasha_ifd: tas-ifd {
2996                                         compatible = "slim217,1a0";
2997                                         reg  = <0 0>;
2998                                 };
2999
3000                                 wcd9335: codec@1{
3001                                         pinctrl-0 = <&cdc_reset_active &wcd_intr_default>;
3002                                         pinctrl-names = "default";
3003
3004                                         compatible = "slim217,1a0";
3005                                         reg  = <1 0>;
3006
3007                                         interrupt-parent = <&tlmm>;
3008                                         interrupts = <54 IRQ_TYPE_LEVEL_HIGH>,
3009                                                      <53 IRQ_TYPE_LEVEL_HIGH>;
3010                                         interrupt-names  = "intr1", "intr2";
3011                                         interrupt-controller;
3012                                         #interrupt-cells = <1>;
3013                                         reset-gpios = <&tlmm 64 0>;
3014
3015                                         slim-ifc-dev  = <&tasha_ifd>;
3016
3017                                         #sound-dai-cells = <1>;
3018                                 };
3019                         };
3020                 };
3021
3022                 adsp_pil: remoteproc@9300000 {
3023                         compatible = "qcom,msm8996-adsp-pil";
3024                         reg = <0x09300000 0x80000>;
3025
3026                         interrupts-extended = <&intc 0 162 IRQ_TYPE_EDGE_RISING>,
3027                                               <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>,
3028                                               <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>,
3029                                               <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>,
3030                                               <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>;
3031                         interrupt-names = "wdog", "fatal", "ready",
3032                                           "handover", "stop-ack";
3033
3034                         clocks = <&rpmcc RPM_SMD_BB_CLK1>;
3035                         clock-names = "xo";
3036
3037                         memory-region = <&adsp_region>;
3038
3039                         qcom,smem-states = <&smp2p_adsp_out 0>;
3040                         qcom,smem-state-names = "stop";
3041
3042                         power-domains = <&rpmpd MSM8996_VDDCX>;
3043                         power-domain-names = "cx";
3044
3045                         status = "disabled";
3046
3047                         smd-edge {
3048                                 interrupts = <GIC_SPI 156 IRQ_TYPE_EDGE_RISING>;
3049
3050                                 label = "lpass";
3051                                 mboxes = <&apcs_glb 8>;
3052                                 qcom,smd-edge = <1>;
3053                                 qcom,remote-pid = <2>;
3054                                 #address-cells = <1>;
3055                                 #size-cells = <0>;
3056                                 apr {
3057                                         power-domains = <&gcc HLOS1_VOTE_LPASS_ADSP_GDSC>;
3058                                         compatible = "qcom,apr-v2";
3059                                         qcom,smd-channels = "apr_audio_svc";
3060                                         qcom,domain = <APR_DOMAIN_ADSP>;
3061                                         #address-cells = <1>;
3062                                         #size-cells = <0>;
3063
3064                                         q6core {
3065                                                 reg = <APR_SVC_ADSP_CORE>;
3066                                                 compatible = "qcom,q6core";
3067                                         };
3068
3069                                         q6afe: q6afe {
3070                                                 compatible = "qcom,q6afe";
3071                                                 reg = <APR_SVC_AFE>;
3072                                                 q6afedai: dais {
3073                                                         compatible = "qcom,q6afe-dais";
3074                                                         #address-cells = <1>;
3075                                                         #size-cells = <0>;
3076                                                         #sound-dai-cells = <1>;
3077                                                         hdmi@1 {
3078                                                                 reg = <1>;
3079                                                         };
3080                                                 };
3081                                         };
3082
3083                                         q6asm: q6asm {
3084                                                 compatible = "qcom,q6asm";
3085                                                 reg = <APR_SVC_ASM>;
3086                                                 q6asmdai: dais {
3087                                                         compatible = "qcom,q6asm-dais";
3088                                                         #address-cells = <1>;
3089                                                         #size-cells = <0>;
3090                                                         #sound-dai-cells = <1>;
3091                                                         iommus = <&lpass_q6_smmu 1>;
3092                                                 };
3093                                         };
3094
3095                                         q6adm: q6adm {
3096                                                 compatible = "qcom,q6adm";
3097                                                 reg = <APR_SVC_ADM>;
3098                                                 q6routing: routing {
3099                                                         compatible = "qcom,q6adm-routing";
3100                                                         #sound-dai-cells = <0>;
3101                                                 };
3102                                         };
3103                                 };
3104
3105                         };
3106                 };
3107
3108                 apcs_glb: mailbox@9820000 {
3109                         compatible = "qcom,msm8996-apcs-hmss-global";
3110                         reg = <0x09820000 0x1000>;
3111
3112                         #mbox-cells = <1>;
3113                 };
3114
3115                 timer@9840000 {
3116                         #address-cells = <1>;
3117                         #size-cells = <1>;
3118                         ranges;
3119                         compatible = "arm,armv7-timer-mem";
3120                         reg = <0x09840000 0x1000>;
3121                         clock-frequency = <19200000>;
3122
3123                         frame@9850000 {
3124                                 frame-number = <0>;
3125                                 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>,
3126                                              <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
3127                                 reg = <0x09850000 0x1000>,
3128                                       <0x09860000 0x1000>;
3129                         };
3130
3131                         frame@9870000 {
3132                                 frame-number = <1>;
3133                                 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
3134                                 reg = <0x09870000 0x1000>;
3135                                 status = "disabled";
3136                         };
3137
3138                         frame@9880000 {
3139                                 frame-number = <2>;
3140                                 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
3141                                 reg = <0x09880000 0x1000>;
3142                                 status = "disabled";
3143                         };
3144
3145                         frame@9890000 {
3146                                 frame-number = <3>;
3147                                 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
3148                                 reg = <0x09890000 0x1000>;
3149                                 status = "disabled";
3150                         };
3151
3152                         frame@98a0000 {
3153                                 frame-number = <4>;
3154                                 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
3155                                 reg = <0x098a0000 0x1000>;
3156                                 status = "disabled";
3157                         };
3158
3159                         frame@98b0000 {
3160                                 frame-number = <5>;
3161                                 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
3162                                 reg = <0x098b0000 0x1000>;
3163                                 status = "disabled";
3164                         };
3165
3166                         frame@98c0000 {
3167                                 frame-number = <6>;
3168                                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
3169                                 reg = <0x098c0000 0x1000>;
3170                                 status = "disabled";
3171                         };
3172                 };
3173
3174                 saw3: syscon@9a10000 {
3175                         compatible = "syscon";
3176                         reg = <0x09a10000 0x1000>;
3177                 };
3178
3179                 intc: interrupt-controller@9bc0000 {
3180                         compatible = "qcom,msm8996-gic-v3", "arm,gic-v3";
3181                         #interrupt-cells = <3>;
3182                         interrupt-controller;
3183                         #redistributor-regions = <1>;
3184                         redistributor-stride = <0x0 0x40000>;
3185                         reg = <0x09bc0000 0x10000>,
3186                               <0x09c00000 0x100000>;
3187                         interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
3188                 };
3189         };
3190
3191         sound: sound {
3192         };
3193
3194         thermal-zones {
3195                 cpu0-thermal {
3196                         polling-delay-passive = <250>;
3197                         polling-delay = <1000>;
3198
3199                         thermal-sensors = <&tsens0 3>;
3200
3201                         trips {
3202                                 cpu0_alert0: trip-point0 {
3203                                         temperature = <75000>;
3204                                         hysteresis = <2000>;
3205                                         type = "passive";
3206                                 };
3207
3208                                 cpu0_crit: cpu_crit {
3209                                         temperature = <110000>;
3210                                         hysteresis = <2000>;
3211                                         type = "critical";
3212                                 };
3213                         };
3214                 };
3215
3216                 cpu1-thermal {
3217                         polling-delay-passive = <250>;
3218                         polling-delay = <1000>;
3219
3220                         thermal-sensors = <&tsens0 5>;
3221
3222                         trips {
3223                                 cpu1_alert0: trip-point0 {
3224                                         temperature = <75000>;
3225                                         hysteresis = <2000>;
3226                                         type = "passive";
3227                                 };
3228
3229                                 cpu1_crit: cpu_crit {
3230                                         temperature = <110000>;
3231                                         hysteresis = <2000>;
3232                                         type = "critical";
3233                                 };
3234                         };
3235                 };
3236
3237                 cpu2-thermal {
3238                         polling-delay-passive = <250>;
3239                         polling-delay = <1000>;
3240
3241                         thermal-sensors = <&tsens0 8>;
3242
3243                         trips {
3244                                 cpu2_alert0: trip-point0 {
3245                                         temperature = <75000>;
3246                                         hysteresis = <2000>;
3247                                         type = "passive";
3248                                 };
3249
3250                                 cpu2_crit: cpu_crit {
3251                                         temperature = <110000>;
3252                                         hysteresis = <2000>;
3253                                         type = "critical";
3254                                 };
3255                         };
3256                 };
3257
3258                 cpu3-thermal {
3259                         polling-delay-passive = <250>;
3260                         polling-delay = <1000>;
3261
3262                         thermal-sensors = <&tsens0 10>;
3263
3264                         trips {
3265                                 cpu3_alert0: trip-point0 {
3266                                         temperature = <75000>;
3267                                         hysteresis = <2000>;
3268                                         type = "passive";
3269                                 };
3270
3271                                 cpu3_crit: cpu_crit {
3272                                         temperature = <110000>;
3273                                         hysteresis = <2000>;
3274                                         type = "critical";
3275                                 };
3276                         };
3277                 };
3278
3279                 gpu-top-thermal {
3280                         polling-delay-passive = <250>;
3281                         polling-delay = <1000>;
3282
3283                         thermal-sensors = <&tsens1 6>;
3284
3285                         trips {
3286                                 gpu1_alert0: trip-point0 {
3287                                         temperature = <90000>;
3288                                         hysteresis = <2000>;
3289                                         type = "passive";
3290                                 };
3291                         };
3292
3293                         cooling-maps {
3294                                 map0 {
3295                                         trip = <&gpu1_alert0>;
3296                                         cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
3297                                 };
3298                         };
3299                 };
3300
3301                 gpu-bottom-thermal {
3302                         polling-delay-passive = <250>;
3303                         polling-delay = <1000>;
3304
3305                         thermal-sensors = <&tsens1 7>;
3306
3307                         trips {
3308                                 gpu2_alert0: trip-point0 {
3309                                         temperature = <90000>;
3310                                         hysteresis = <2000>;
3311                                         type = "passive";
3312                                 };
3313                         };
3314
3315                         cooling-maps {
3316                                 map0 {
3317                                         trip = <&gpu2_alert0>;
3318                                         cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
3319                                 };
3320                         };
3321                 };
3322
3323                 m4m-thermal {
3324                         polling-delay-passive = <250>;
3325                         polling-delay = <1000>;
3326
3327                         thermal-sensors = <&tsens0 1>;
3328
3329                         trips {
3330                                 m4m_alert0: trip-point0 {
3331                                         temperature = <90000>;
3332                                         hysteresis = <2000>;
3333                                         type = "hot";
3334                                 };
3335                         };
3336                 };
3337
3338                 l3-or-venus-thermal {
3339                         polling-delay-passive = <250>;
3340                         polling-delay = <1000>;
3341
3342                         thermal-sensors = <&tsens0 2>;
3343
3344                         trips {
3345                                 l3_or_venus_alert0: trip-point0 {
3346                                         temperature = <90000>;
3347                                         hysteresis = <2000>;
3348                                         type = "hot";
3349                                 };
3350                         };
3351                 };
3352
3353                 cluster0-l2-thermal {
3354                         polling-delay-passive = <250>;
3355                         polling-delay = <1000>;
3356
3357                         thermal-sensors = <&tsens0 7>;
3358
3359                         trips {
3360                                 cluster0_l2_alert0: trip-point0 {
3361                                         temperature = <90000>;
3362                                         hysteresis = <2000>;
3363                                         type = "hot";
3364                                 };
3365                         };
3366                 };
3367
3368                 cluster1-l2-thermal {
3369                         polling-delay-passive = <250>;
3370                         polling-delay = <1000>;
3371
3372                         thermal-sensors = <&tsens0 12>;
3373
3374                         trips {
3375                                 cluster1_l2_alert0: trip-point0 {
3376                                         temperature = <90000>;
3377                                         hysteresis = <2000>;
3378                                         type = "hot";
3379                                 };
3380                         };
3381                 };
3382
3383                 camera-thermal {
3384                         polling-delay-passive = <250>;
3385                         polling-delay = <1000>;
3386
3387                         thermal-sensors = <&tsens1 1>;
3388
3389                         trips {
3390                                 camera_alert0: trip-point0 {
3391                                         temperature = <90000>;
3392                                         hysteresis = <2000>;
3393                                         type = "hot";
3394                                 };
3395                         };
3396                 };
3397
3398                 q6-dsp-thermal {
3399                         polling-delay-passive = <250>;
3400                         polling-delay = <1000>;
3401
3402                         thermal-sensors = <&tsens1 2>;
3403
3404                         trips {
3405                                 q6_dsp_alert0: trip-point0 {
3406                                         temperature = <90000>;
3407                                         hysteresis = <2000>;
3408                                         type = "hot";
3409                                 };
3410                         };
3411                 };
3412
3413                 mem-thermal {
3414                         polling-delay-passive = <250>;
3415                         polling-delay = <1000>;
3416
3417                         thermal-sensors = <&tsens1 3>;
3418
3419                         trips {
3420                                 mem_alert0: trip-point0 {
3421                                         temperature = <90000>;
3422                                         hysteresis = <2000>;
3423                                         type = "hot";
3424                                 };
3425                         };
3426                 };
3427
3428                 modemtx-thermal {
3429                         polling-delay-passive = <250>;
3430                         polling-delay = <1000>;
3431
3432                         thermal-sensors = <&tsens1 4>;
3433
3434                         trips {
3435                                 modemtx_alert0: trip-point0 {
3436                                         temperature = <90000>;
3437                                         hysteresis = <2000>;
3438                                         type = "hot";
3439                                 };
3440                         };
3441                 };
3442         };
3443
3444         timer {
3445                 compatible = "arm,armv8-timer";
3446                 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
3447                              <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
3448                              <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
3449                              <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
3450         };
3451 };