1 // SPDX-License-Identifier: BSD-3-Clause
3 * SDX55 SoC device tree source
5 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
6 * Copyright (c) 2020, Linaro Ltd.
9 #include <dt-bindings/clock/qcom,gcc-sdx55.h>
10 #include <dt-bindings/clock/qcom,rpmh.h>
11 #include <dt-bindings/interconnect/qcom,sdx55.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/power/qcom-rpmpd.h>
14 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
19 qcom,msm-id = <357 0x10000>, <368 0x10000>, <418 0x10000>;
20 interrupt-parent = <&intc>;
23 device_type = "memory";
29 compatible = "fixed-clock";
31 clock-frequency = <38400000>;
32 clock-output-names = "xo_board";
35 sleep_clk: sleep-clk {
36 compatible = "fixed-clock";
38 clock-frequency = <32000>;
41 nand_clk_dummy: nand-clk-dummy {
42 compatible = "fixed-clock";
44 clock-frequency = <32000>;
54 compatible = "arm,cortex-a7";
56 enable-method = "psci";
58 power-domains = <&rpmhpd SDX55_CX>;
59 power-domain-names = "rpmhpd";
60 operating-points-v2 = <&cpu_opp_table>;
64 cpu_opp_table: cpu-opp-table {
65 compatible = "operating-points-v2";
69 opp-hz = /bits/ 64 <345600000>;
70 required-opps = <&rpmhpd_opp_low_svs>;
74 opp-hz = /bits/ 64 <576000000>;
75 required-opps = <&rpmhpd_opp_svs>;
79 opp-hz = /bits/ 64 <1094400000>;
80 required-opps = <&rpmhpd_opp_nom>;
84 opp-hz = /bits/ 64 <1555200000>;
85 required-opps = <&rpmhpd_opp_turbo>;
91 compatible = "qcom,scm-sdx55", "qcom,scm";
96 compatible = "arm,psci-1.0";
101 #address-cells = <1>;
105 hyp_mem: memory@8fc00000 {
107 reg = <0x8fc00000 0x80000>;
110 ac_db_mem: memory@8fc80000 {
112 reg = <0x8fc80000 0x40000>;
115 secdata_mem: memory@8fcfd000 {
117 reg = <0x8fcfd000 0x1000>;
120 sbl_mem: memory@8fd00000 {
122 reg = <0x8fd00000 0x100000>;
125 aop_image: memory@8fe00000 {
127 reg = <0x8fe00000 0x20000>;
130 aop_cmd_db: memory@8fe20000 {
131 compatible = "qcom,cmd-db";
132 reg = <0x8fe20000 0x20000>;
136 smem_mem: memory@8fe40000 {
138 reg = <0x8fe40000 0xc0000>;
141 tz_mem: memory@8ff00000 {
143 reg = <0x8ff00000 0x100000>;
146 tz_apps_mem: memory@0x90000000 {
148 reg = <0x90000000 0x500000>;
153 compatible = "qcom,smem";
154 memory-region = <&smem_mem>;
155 hwlocks = <&tcsr_mutex 3>;
159 compatible = "qcom,smp2p";
160 qcom,smem = <435>, <428>;
161 interrupts = <GIC_SPI 113 IRQ_TYPE_EDGE_RISING>;
163 qcom,local-pid = <0>;
164 qcom,remote-pid = <1>;
166 modem_smp2p_out: master-kernel {
167 qcom,entry-name = "master-kernel";
168 #qcom,smem-state-cells = <1>;
171 modem_smp2p_in: slave-kernel {
172 qcom,entry-name = "slave-kernel";
173 interrupt-controller;
174 #interrupt-cells = <2>;
177 ipa_smp2p_out: ipa-ap-to-modem {
178 qcom,entry-name = "ipa";
179 #qcom,smem-state-cells = <1>;
182 ipa_smp2p_in: ipa-modem-to-ap {
183 qcom,entry-name = "ipa";
184 interrupt-controller;
185 #interrupt-cells = <2>;
190 #address-cells = <1>;
193 compatible = "simple-bus";
195 gcc: clock-controller@100000 {
196 compatible = "qcom,gcc-sdx55";
197 reg = <0x100000 0x1f0000>;
200 #power-domain-cells = <1>;
201 clock-names = "bi_tcxo", "sleep_clk";
202 clocks = <&rpmhcc RPMH_CXO_CLK>, <&sleep_clk>;
205 blsp1_uart3: serial@831000 {
206 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
207 reg = <0x00831000 0x200>;
208 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_LOW>;
211 clock-names = "core", "iface";
215 usb_hsphy: phy@ff4000 {
216 compatible = "qcom,usb-snps-hs-7nm-phy";
217 reg = <0x00ff4000 0x114>;
221 clocks = <&rpmhcc RPMH_CXO_CLK>;
224 resets = <&gcc GCC_QUSB2PHY_BCR>;
227 usb_qmpphy: phy@ff6000 {
228 compatible = "qcom,sdx55-qmp-usb3-uni-phy";
229 reg = <0x00ff6000 0x1c0>;
232 #address-cells = <1>;
236 clocks = <&gcc GCC_USB3_PHY_AUX_CLK>,
237 <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
238 <&gcc GCC_USB3_PRIM_CLKREF_CLK>;
239 clock-names = "aux", "cfg_ahb", "ref";
241 resets = <&gcc GCC_USB3PHY_PHY_BCR>,
242 <&gcc GCC_USB3_PHY_BCR>;
243 reset-names = "phy", "common";
245 usb_ssphy: phy@ff6200 {
246 reg = <0x00ff6200 0x170>,
251 clocks = <&gcc GCC_USB3_PHY_PIPE_CLK>;
252 clock-names = "pipe0";
253 clock-output-names = "usb3_uni_phy_pipe_clk_src";
257 mc_virt: interconnect@1100000 {
258 compatible = "qcom,sdx55-mc-virt";
259 reg = <0x01100000 0x400000>;
260 #interconnect-cells = <1>;
261 qcom,bcm-voters = <&apps_bcm_voter>;
264 mem_noc: interconnect@9680000 {
265 compatible = "qcom,sdx55-mem-noc";
266 reg = <0x09680000 0x40000>;
267 #interconnect-cells = <1>;
268 qcom,bcm-voters = <&apps_bcm_voter>;
271 system_noc: interconnect@162c000 {
272 compatible = "qcom,sdx55-system-noc";
273 reg = <0x0162c000 0x31200>;
274 #interconnect-cells = <1>;
275 qcom,bcm-voters = <&apps_bcm_voter>;
278 ipa_virt: interconnect@1e00000 {
279 compatible = "qcom,sdx55-ipa-virt";
280 reg = <0x01e00000 0x100000>;
281 #interconnect-cells = <1>;
282 qcom,bcm-voters = <&apps_bcm_voter>;
285 qpic_bam: dma-controller@1b04000 {
286 compatible = "qcom,bam-v1.7.0";
287 reg = <0x01b04000 0x1c000>;
288 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
289 clocks = <&rpmhcc RPMH_QPIC_CLK>;
290 clock-names = "bam_clk";
293 qcom,controlled-remotely;
297 qpic_nand: nand-controller@1b30000 {
298 compatible = "qcom,sdx55-nand";
299 reg = <0x01b30000 0x10000>;
300 #address-cells = <1>;
302 clocks = <&rpmhcc RPMH_QPIC_CLK>,
304 clock-names = "core", "aon";
306 dmas = <&qpic_bam 0>,
309 dma-names = "tx", "rx", "cmd";
314 compatible = "qcom,sdx55-ipa";
316 iommus = <&apps_smmu 0x5e0 0x0>,
317 <&apps_smmu 0x5e2 0x0>;
318 reg = <0x1e40000 0x7000>,
321 reg-names = "ipa-reg",
325 interrupts-extended = <&intc GIC_SPI 241 IRQ_TYPE_EDGE_RISING>,
326 <&intc GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
327 <&ipa_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
328 <&ipa_smp2p_in 1 IRQ_TYPE_EDGE_RISING>;
329 interrupt-names = "ipa",
334 clocks = <&rpmhcc RPMH_IPA_CLK>;
335 clock-names = "core";
337 interconnects = <&system_noc MASTER_IPA &system_noc SLAVE_SNOC_MEM_NOC_GC>,
338 <&mem_noc MASTER_SNOC_GC_MEM_NOC &mc_virt SLAVE_EBI_CH0>,
339 <&system_noc MASTER_IPA &system_noc SLAVE_OCIMEM>,
340 <&mem_noc MASTER_AMPSS_M0 &system_noc SLAVE_IPA_CFG>;
341 interconnect-names = "memory-a",
346 qcom,smem-states = <&ipa_smp2p_out 0>,
348 qcom,smem-state-names = "ipa-clock-enabled-valid",
354 tcsr_mutex: hwlock@1f40000 {
355 compatible = "qcom,tcsr-mutex";
356 reg = <0x01f40000 0x40000>;
360 sdhc_1: sdhci@8804000 {
361 compatible = "qcom,sdx55-sdhci", "qcom,sdhci-msm-v5";
362 reg = <0x08804000 0x1000>;
363 interrupts = <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>,
364 <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
365 interrupt-names = "hc_irq", "pwr_irq";
366 clocks = <&gcc GCC_SDCC1_AHB_CLK>,
367 <&gcc GCC_SDCC1_APPS_CLK>;
368 clock-names = "iface", "core";
372 remoteproc_mpss: remoteproc@4080000 {
373 compatible = "qcom,sdx55-mpss-pas";
374 reg = <0x04080000 0x4040>;
376 interrupts-extended = <&intc GIC_SPI 250 IRQ_TYPE_EDGE_RISING>,
377 <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
378 <&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
379 <&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
380 <&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>,
381 <&modem_smp2p_in 7 IRQ_TYPE_EDGE_RISING>;
382 interrupt-names = "wdog", "fatal", "ready", "handover",
383 "stop-ack", "shutdown-ack";
385 clocks = <&rpmhcc RPMH_CXO_CLK>;
388 power-domains = <&rpmhpd SDX55_CX>,
390 power-domain-names = "cx", "mss";
392 qcom,smem-states = <&modem_smp2p_out 0>;
393 qcom,smem-state-names = "stop";
398 interrupts = <GIC_SPI 114 IRQ_TYPE_EDGE_RISING>;
400 qcom,remote-pid = <1>;
406 compatible = "qcom,sdx55-dwc3", "qcom,dwc3";
407 reg = <0x0a6f8800 0x400>;
409 #address-cells = <1>;
413 clocks = <&gcc GCC_USB30_SLV_AHB_CLK>,
414 <&gcc GCC_USB30_MASTER_CLK>,
415 <&gcc GCC_USB30_MSTR_AXI_CLK>,
416 <&gcc GCC_USB30_MOCK_UTMI_CLK>,
417 <&gcc GCC_USB30_SLEEP_CLK>;
418 clock-names = "cfg_noc", "core", "iface", "mock_utmi",
421 assigned-clocks = <&gcc GCC_USB30_MOCK_UTMI_CLK>,
422 <&gcc GCC_USB30_MASTER_CLK>;
423 assigned-clock-rates = <19200000>, <200000000>;
425 interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>,
426 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
427 <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
428 <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>;
429 interrupt-names = "hs_phy_irq", "ss_phy_irq",
430 "dm_hs_phy_irq", "dp_hs_phy_irq";
432 power-domains = <&gcc USB30_GDSC>;
434 resets = <&gcc GCC_USB30_BCR>;
436 usb_dwc3: dwc3@a600000 {
437 compatible = "snps,dwc3";
438 reg = <0x0a600000 0xcd00>;
439 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
440 iommus = <&apps_smmu 0x1a0 0x0>;
441 snps,dis_u2_susphy_quirk;
442 snps,dis_enblslpm_quirk;
443 phys = <&usb_hsphy>, <&usb_ssphy>;
444 phy-names = "usb2-phy", "usb3-phy";
448 pdc: interrupt-controller@b210000 {
449 compatible = "qcom,sdx55-pdc", "qcom,pdc";
450 reg = <0x0b210000 0x30000>;
451 qcom,pdc-ranges = <0 179 52>;
452 #interrupt-cells = <3>;
453 interrupt-parent = <&intc>;
454 interrupt-controller;
458 compatible = "qcom,pshold";
459 reg = <0x0c264000 0x1000>;
462 spmi_bus: qcom,spmi@c440000 {
463 compatible = "qcom,spmi-pmic-arb";
464 reg = <0x0c440000 0x0000d00>,
465 <0x0c600000 0x2000000>,
466 <0x0e600000 0x0100000>,
467 <0x0e700000 0x00a0000>,
468 <0x0c40a000 0x0000700>;
469 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
470 interrupt-names = "periph_irq";
471 interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
474 #address-cells = <2>;
476 interrupt-controller;
477 #interrupt-cells = <4>;
481 tlmm: pinctrl@f100000 {
482 compatible = "qcom,sdx55-pinctrl";
483 reg = <0xf100000 0x300000>;
484 interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
487 interrupt-controller;
488 #interrupt-cells = <2>;
492 compatible = "simple-mfd";
493 reg = <0x1468f000 0x1000>;
495 #address-cells = <1>;
498 ranges = <0x0 0x1468f000 0x1000>;
501 compatible = "qcom,pil-reloc-info";
506 apps_smmu: iommu@15000000 {
507 compatible = "qcom,sdx55-smmu-500", "arm,mmu-500";
508 reg = <0x15000000 0x20000>;
510 #global-interrupts = <1>;
511 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
512 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
513 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
514 <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
515 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
516 <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
517 <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
518 <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
519 <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
520 <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
521 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
522 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
523 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
524 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
525 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
526 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
527 <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
530 intc: interrupt-controller@17800000 {
531 compatible = "qcom,msm-qgic2";
532 interrupt-controller;
533 interrupt-parent = <&intc>;
534 #interrupt-cells = <3>;
535 reg = <0x17800000 0x1000>,
539 a7pll: clock@17808000 {
540 compatible = "qcom,sdx55-a7pll";
541 reg = <0x17808000 0x1000>;
542 clocks = <&rpmhcc RPMH_CXO_CLK>;
543 clock-names = "bi_tcxo";
547 apcs: mailbox@17810000 {
548 compatible = "qcom,sdx55-apcs-gcc", "syscon";
549 reg = <0x17810000 0x2000>;
551 clocks = <&rpmhcc RPMH_CXO_CLK>, <&a7pll>, <&gcc GPLL0>;
552 clock-names = "ref", "pll", "aux";
557 compatible = "qcom,apss-wdt-sdx55", "qcom,kpss-wdt";
558 reg = <0x17817000 0x1000>;
559 clocks = <&sleep_clk>;
563 #address-cells = <1>;
566 compatible = "arm,armv7-timer-mem";
567 reg = <0x17820000 0x1000>;
568 clock-frequency = <19200000>;
572 interrupts = <GIC_SPI 7 0x4>,
574 reg = <0x17821000 0x1000>,
580 interrupts = <GIC_SPI 8 0x4>;
581 reg = <0x17823000 0x1000>;
587 interrupts = <GIC_SPI 9 0x4>;
588 reg = <0x17824000 0x1000>;
594 interrupts = <GIC_SPI 10 0x4>;
595 reg = <0x17825000 0x1000>;
601 interrupts = <GIC_SPI 11 0x4>;
602 reg = <0x17826000 0x1000>;
608 interrupts = <GIC_SPI 12 0x4>;
609 reg = <0x17827000 0x1000>;
615 interrupts = <GIC_SPI 13 0x4>;
616 reg = <0x17828000 0x1000>;
622 interrupts = <GIC_SPI 14 0x4>;
623 reg = <0x17829000 0x1000>;
628 apps_rsc: rsc@17840000 {
629 compatible = "qcom,rpmh-rsc";
630 reg = <0x17830000 0x10000>, <0x17840000 0x10000>;
631 reg-names = "drv-0", "drv-1";
632 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
633 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
634 qcom,tcs-offset = <0xd00>;
636 qcom,tcs-config = <ACTIVE_TCS 2>, <SLEEP_TCS 2>,
637 <WAKE_TCS 2>, <CONTROL_TCS 1>;
639 rpmhcc: clock-controller {
640 compatible = "qcom,sdx55-rpmh-clk";
643 clocks = <&xo_board>;
646 rpmhpd: power-controller {
647 compatible = "qcom,sdx55-rpmhpd";
648 #power-domain-cells = <1>;
649 operating-points-v2 = <&rpmhpd_opp_table>;
651 rpmhpd_opp_table: opp-table {
652 compatible = "operating-points-v2";
654 rpmhpd_opp_ret: opp1 {
655 opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
658 rpmhpd_opp_min_svs: opp2 {
659 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
662 rpmhpd_opp_low_svs: opp3 {
663 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
666 rpmhpd_opp_svs: opp4 {
667 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
670 rpmhpd_opp_svs_l1: opp5 {
671 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
674 rpmhpd_opp_nom: opp6 {
675 opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
678 rpmhpd_opp_nom_l1: opp7 {
679 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
682 rpmhpd_opp_nom_l2: opp8 {
683 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
686 rpmhpd_opp_turbo: opp9 {
687 opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
690 rpmhpd_opp_turbo_l1: opp10 {
691 opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
696 apps_bcm_voter: bcm_voter {
697 compatible = "qcom,bcm-voter";
703 compatible = "arm,armv7-timer";
704 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
705 <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
706 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
707 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
708 clock-frequency = <19200000>;