blob: 8112a5283ce23c91b0efa5aa47bbd9639d4846d0 [file] [log] [blame]
Manivannan Sadhasivam9d038b22020-11-26 14:01:38 +05301// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * SDX55 SoC device tree source
4 *
5 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
6 * Copyright (c) 2020, Linaro Ltd.
7 */
8
Manivannan Sadhasivamf0365492021-01-06 18:23:08 +05309#include <dt-bindings/clock/qcom,gcc-sdx55.h>
Manivannan Sadhasivam9d038b22020-11-26 14:01:38 +053010#include <dt-bindings/clock/qcom,rpmh.h>
11#include <dt-bindings/interrupt-controller/arm-gic.h>
Vinod Koul3cef2d52021-01-06 18:23:20 +053012#include <dt-bindings/power/qcom-rpmpd.h>
Manivannan Sadhasivam9d038b22020-11-26 14:01:38 +053013#include <dt-bindings/soc/qcom,rpmh-rsc.h>
14
15/ {
16 #address-cells = <1>;
17 #size-cells = <1>;
18 qcom,msm-id = <357 0x10000>, <368 0x10000>, <418 0x10000>;
19 interrupt-parent = <&intc>;
20
21 memory {
22 device_type = "memory";
23 reg = <0 0>;
24 };
25
26 clocks {
27 xo_board: xo-board {
28 compatible = "fixed-clock";
29 #clock-cells = <0>;
30 clock-frequency = <38400000>;
31 clock-output-names = "xo_board";
32 };
33
34 sleep_clk: sleep-clk {
35 compatible = "fixed-clock";
36 #clock-cells = <0>;
37 clock-frequency = <32000>;
38 };
Manivannan Sadhasivam4bd7bfb2021-01-06 18:23:14 +053039
40 nand_clk_dummy: nand-clk-dummy {
41 compatible = "fixed-clock";
42 #clock-cells = <0>;
43 clock-frequency = <32000>;
44 };
Manivannan Sadhasivam9d038b22020-11-26 14:01:38 +053045 };
46
47 cpus {
48 #address-cells = <1>;
49 #size-cells = <0>;
50
51 cpu0: cpu@0 {
52 device_type = "cpu";
53 compatible = "arm,cortex-a7";
54 reg = <0x0>;
55 enable-method = "psci";
56 };
57 };
58
59 psci {
60 compatible = "arm,psci-1.0";
61 method = "smc";
62 };
63
Vinod Koulec997702021-01-06 18:23:06 +053064 reserved-memory {
65 #address-cells = <1>;
66 #size-cells = <1>;
67 ranges;
68
69 hyp_mem: memory@8fc00000 {
70 no-map;
71 reg = <0x8fc00000 0x80000>;
72 };
73
74 ac_db_mem: memory@8fc80000 {
75 no-map;
76 reg = <0x8fc80000 0x40000>;
77 };
78
79 secdata_mem: memory@8fcfd000 {
80 no-map;
81 reg = <0x8fcfd000 0x1000>;
82 };
83
84 sbl_mem: memory@8fd00000 {
85 no-map;
86 reg = <0x8fd00000 0x100000>;
87 };
88
89 aop_image: memory@8fe00000 {
90 no-map;
91 reg = <0x8fe00000 0x20000>;
92 };
93
94 aop_cmd_db: memory@8fe20000 {
95 compatible = "qcom,cmd-db";
96 reg = <0x8fe20000 0x20000>;
97 no-map;
98 };
99
100 smem_mem: memory@8fe40000 {
101 no-map;
102 reg = <0x8fe40000 0xc0000>;
103 };
104
105 tz_mem: memory@8ff00000 {
106 no-map;
107 reg = <0x8ff00000 0x100000>;
108 };
109
110 tz_apps_mem: memory@0x90000000 {
111 no-map;
112 reg = <0x90000000 0x500000>;
113 };
114 };
115
Manivannan Sadhasivam8cf74d02021-01-06 18:23:12 +0530116 smem {
117 compatible = "qcom,smem";
118 memory-region = <&smem_mem>;
119 hwlocks = <&tcsr_mutex 3>;
120 };
121
Manivannan Sadhasivam9d038b22020-11-26 14:01:38 +0530122 soc: soc {
123 #address-cells = <1>;
124 #size-cells = <1>;
125 ranges;
126 compatible = "simple-bus";
127
128 gcc: clock-controller@100000 {
129 compatible = "qcom,gcc-sdx55";
130 reg = <0x100000 0x1f0000>;
131 #clock-cells = <1>;
132 #reset-cells = <1>;
Manivannan Sadhasivamfea4b412021-01-18 10:40:00 +0530133 #power-domain-cells = <1>;
Manivannan Sadhasivam9d038b22020-11-26 14:01:38 +0530134 clock-names = "bi_tcxo", "sleep_clk";
135 clocks = <&rpmhcc RPMH_CXO_CLK>, <&sleep_clk>;
136 };
137
138 blsp1_uart3: serial@831000 {
139 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
140 reg = <0x00831000 0x200>;
141 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_LOW>;
142 clocks = <&gcc 30>,
143 <&gcc 9>;
144 clock-names = "core", "iface";
145 status = "disabled";
146 };
147
Manivannan Sadhasivamfea4b412021-01-18 10:40:00 +0530148 usb_hsphy: phy@ff4000 {
149 compatible = "qcom,usb-snps-hs-7nm-phy";
150 reg = <0x00ff4000 0x114>;
151 status = "disabled";
152 #phy-cells = <0>;
153
154 clocks = <&rpmhcc RPMH_CXO_CLK>;
155 clock-names = "ref";
156
157 resets = <&gcc GCC_QUSB2PHY_BCR>;
158 };
159
160 usb_qmpphy: phy@ff6000 {
161 compatible = "qcom,sdx55-qmp-usb3-uni-phy";
162 reg = <0x00ff6000 0x1c0>;
163 status = "disabled";
164 #clock-cells = <1>;
165 #address-cells = <1>;
166 #size-cells = <1>;
167 ranges;
168
169 clocks = <&gcc GCC_USB3_PHY_AUX_CLK>,
170 <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>,
171 <&gcc GCC_USB3_PRIM_CLKREF_CLK>;
172 clock-names = "aux", "cfg_ahb", "ref";
173
174 resets = <&gcc GCC_USB3PHY_PHY_BCR>,
175 <&gcc GCC_USB3_PHY_BCR>;
176 reset-names = "phy", "common";
177
178 usb_ssphy: phy@ff6200 {
179 reg = <0x00ff6200 0x170>,
180 <0x00ff6400 0x200>,
181 <0x00ff6800 0x800>;
182 #phy-cells = <0>;
183 #clock-cells = <0>;
184 clocks = <&gcc GCC_USB3_PHY_PIPE_CLK>;
185 clock-names = "pipe0";
186 clock-output-names = "usb3_uni_phy_pipe_clk_src";
187 };
188 };
189
Manivannan Sadhasivam24709412021-01-06 18:23:13 +0530190 qpic_bam: dma-controller@1b04000 {
191 compatible = "qcom,bam-v1.7.0";
192 reg = <0x01b04000 0x1c000>;
193 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>;
194 clocks = <&rpmhcc RPMH_QPIC_CLK>;
195 clock-names = "bam_clk";
196 #dma-cells = <1>;
197 qcom,ee = <0>;
198 qcom,controlled-remotely;
199 status = "disabled";
200 };
201
Manivannan Sadhasivam4bd7bfb2021-01-06 18:23:14 +0530202 qpic_nand: nand@1b30000 {
203 compatible = "qcom,sdx55-nand";
204 reg = <0x01b30000 0x10000>;
205 #address-cells = <1>;
206 #size-cells = <0>;
207 clocks = <&rpmhcc RPMH_QPIC_CLK>,
208 <&nand_clk_dummy>;
209 clock-names = "core", "aon";
210
211 dmas = <&qpic_bam 0>,
212 <&qpic_bam 1>,
213 <&qpic_bam 2>;
214 dma-names = "tx", "rx", "cmd";
215 status = "disabled";
216 };
217
Manivannan Sadhasivam985eef12021-01-06 18:23:11 +0530218 tcsr_mutex: hwlock@1f40000 {
219 compatible = "qcom,tcsr-mutex";
220 reg = <0x01f40000 0x40000>;
221 #hwlock-cells = <1>;
222 };
223
Manivannan Sadhasivamf0365492021-01-06 18:23:08 +0530224 sdhc_1: sdhci@8804000 {
225 compatible = "qcom,sdx55-sdhci", "qcom,sdhci-msm-v5";
226 reg = <0x08804000 0x1000>;
227 interrupts = <GIC_SPI 210 IRQ_TYPE_LEVEL_HIGH>,
228 <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
229 interrupt-names = "hc_irq", "pwr_irq";
230 clocks = <&gcc GCC_SDCC1_AHB_CLK>,
231 <&gcc GCC_SDCC1_APPS_CLK>;
232 clock-names = "iface", "core";
233 status = "disabled";
234 };
235
Manivannan Sadhasivamfea4b412021-01-18 10:40:00 +0530236 usb: usb@a6f8800 {
237 compatible = "qcom,sdx55-dwc3", "qcom,dwc3";
238 reg = <0x0a6f8800 0x400>;
239 status = "disabled";
240 #address-cells = <1>;
241 #size-cells = <1>;
242 ranges;
243
244 clocks = <&gcc GCC_USB30_SLV_AHB_CLK>,
245 <&gcc GCC_USB30_MASTER_CLK>,
246 <&gcc GCC_USB30_MSTR_AXI_CLK>,
247 <&gcc GCC_USB30_MOCK_UTMI_CLK>,
248 <&gcc GCC_USB30_SLEEP_CLK>;
249 clock-names = "cfg_noc", "core", "iface", "mock_utmi",
250 "sleep";
251
252 assigned-clocks = <&gcc GCC_USB30_MOCK_UTMI_CLK>,
253 <&gcc GCC_USB30_MASTER_CLK>;
254 assigned-clock-rates = <19200000>, <200000000>;
255
256 interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>,
257 <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
258 <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
259 <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>;
260 interrupt-names = "hs_phy_irq", "ss_phy_irq",
261 "dm_hs_phy_irq", "dp_hs_phy_irq";
262
263 power-domains = <&gcc USB30_GDSC>;
264
265 resets = <&gcc GCC_USB30_BCR>;
266
267 usb_dwc3: dwc3@a600000 {
268 compatible = "snps,dwc3";
269 reg = <0x0a600000 0xcd00>;
270 interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
271 iommus = <&apps_smmu 0x1a0 0x0>;
272 snps,dis_u2_susphy_quirk;
273 snps,dis_enblslpm_quirk;
274 phys = <&usb_hsphy>, <&usb_ssphy>;
275 phy-names = "usb2-phy", "usb3-phy";
276 };
277 };
278
Manivannan Sadhasivam9d038b22020-11-26 14:01:38 +0530279 pdc: interrupt-controller@b210000 {
280 compatible = "qcom,sdx55-pdc", "qcom,pdc";
281 reg = <0x0b210000 0x30000>;
282 qcom,pdc-ranges = <0 179 52>;
283 #interrupt-cells = <3>;
284 interrupt-parent = <&intc>;
285 interrupt-controller;
286 };
287
Manivannan Sadhasivamc4aa86f2021-01-18 10:40:04 +0530288 restart@c264000 {
289 compatible = "qcom,pshold";
290 reg = <0x0c264000 0x1000>;
291 };
292
Vinod Koul3b6785e2021-01-06 18:23:17 +0530293 spmi_bus: qcom,spmi@c440000 {
294 compatible = "qcom,spmi-pmic-arb";
295 reg = <0x0c440000 0x0000d00>,
296 <0x0c600000 0x2000000>,
297 <0x0e600000 0x0100000>,
298 <0x0e700000 0x00a0000>,
299 <0x0c40a000 0x0000700>;
300 reg-names = "core", "chnls", "obsrvr", "intr", "cnfg";
301 interrupt-names = "periph_irq";
302 interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
303 qcom,ee = <0>;
304 qcom,channel = <0>;
305 #address-cells = <2>;
306 #size-cells = <0>;
307 interrupt-controller;
308 #interrupt-cells = <4>;
309 cell-index = <0>;
310 };
311
Vinod Kouldea0e9b2021-01-06 18:23:05 +0530312 tlmm: pinctrl@f100000 {
313 compatible = "qcom,sdx55-pinctrl";
314 reg = <0xf100000 0x300000>;
315 interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
316 gpio-controller;
317 #gpio-cells = <2>;
318 interrupt-controller;
319 #interrupt-cells = <2>;
320 };
321
Bjorn Anderssona2bdfdf2021-01-06 18:23:10 +0530322 apps_smmu: iommu@15000000 {
323 compatible = "qcom,sdx55-smmu-500", "arm,mmu-500";
324 reg = <0x15000000 0x20000>;
325 #iommu-cells = <2>;
326 #global-interrupts = <1>;
327 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
328 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
329 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
330 <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
331 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
332 <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
333 <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
334 <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
335 <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
336 <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
337 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
338 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
339 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
340 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
341 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
342 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
343 <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
344 };
345
Manivannan Sadhasivam9d038b22020-11-26 14:01:38 +0530346 intc: interrupt-controller@17800000 {
347 compatible = "qcom,msm-qgic2";
348 interrupt-controller;
349 interrupt-parent = <&intc>;
350 #interrupt-cells = <3>;
351 reg = <0x17800000 0x1000>,
352 <0x17802000 0x1000>;
353 };
354
Manivannan Sadhasivam37f0f242021-04-08 22:34:43 +0530355 a7pll: clock@17808000 {
356 compatible = "qcom,sdx55-a7pll";
357 reg = <0x17808000 0x1000>;
358 clocks = <&rpmhcc RPMH_CXO_CLK>;
359 clock-names = "bi_tcxo";
360 #clock-cells = <0>;
361 };
362
Manivannan Sadhasivam8e3d9a72021-04-08 22:34:44 +0530363 apcs: mailbox@17810000 {
364 compatible = "qcom,sdx55-apcs-gcc", "syscon";
365 reg = <0x17810000 0x2000>;
366 #mbox-cells = <1>;
367 clocks = <&rpmhcc RPMH_CXO_CLK>, <&a7pll>, <&gcc GPLL0>;
368 clock-names = "ref", "pll", "aux";
369 #clock-cells = <0>;
370 };
371
Manivannan Sadhasivamb1d20462021-01-18 10:40:03 +0530372 watchdog@17817000 {
373 compatible = "qcom,apss-wdt-sdx55", "qcom,kpss-wdt";
374 reg = <0x17817000 0x1000>;
375 clocks = <&sleep_clk>;
376 };
377
Manivannan Sadhasivam9d038b22020-11-26 14:01:38 +0530378 timer@17820000 {
379 #address-cells = <1>;
380 #size-cells = <1>;
381 ranges;
382 compatible = "arm,armv7-timer-mem";
383 reg = <0x17820000 0x1000>;
384 clock-frequency = <19200000>;
385
386 frame@17821000 {
387 frame-number = <0>;
388 interrupts = <GIC_SPI 7 0x4>,
389 <GIC_SPI 6 0x4>;
390 reg = <0x17821000 0x1000>,
391 <0x17822000 0x1000>;
392 };
393
394 frame@17823000 {
395 frame-number = <1>;
396 interrupts = <GIC_SPI 8 0x4>;
397 reg = <0x17823000 0x1000>;
398 status = "disabled";
399 };
400
401 frame@17824000 {
402 frame-number = <2>;
403 interrupts = <GIC_SPI 9 0x4>;
404 reg = <0x17824000 0x1000>;
405 status = "disabled";
406 };
407
408 frame@17825000 {
409 frame-number = <3>;
410 interrupts = <GIC_SPI 10 0x4>;
411 reg = <0x17825000 0x1000>;
412 status = "disabled";
413 };
414
415 frame@17826000 {
416 frame-number = <4>;
417 interrupts = <GIC_SPI 11 0x4>;
418 reg = <0x17826000 0x1000>;
419 status = "disabled";
420 };
421
422 frame@17827000 {
423 frame-number = <5>;
424 interrupts = <GIC_SPI 12 0x4>;
425 reg = <0x17827000 0x1000>;
426 status = "disabled";
427 };
428
429 frame@17828000 {
430 frame-number = <6>;
431 interrupts = <GIC_SPI 13 0x4>;
432 reg = <0x17828000 0x1000>;
433 status = "disabled";
434 };
435
436 frame@17829000 {
437 frame-number = <7>;
438 interrupts = <GIC_SPI 14 0x4>;
439 reg = <0x17829000 0x1000>;
440 status = "disabled";
441 };
442 };
443
444 apps_rsc: rsc@17840000 {
445 compatible = "qcom,rpmh-rsc";
446 reg = <0x17830000 0x10000>, <0x17840000 0x10000>;
447 reg-names = "drv-0", "drv-1";
448 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
449 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
450 qcom,tcs-offset = <0xd00>;
451 qcom,drv-id = <1>;
452 qcom,tcs-config = <ACTIVE_TCS 2>, <SLEEP_TCS 2>,
453 <WAKE_TCS 2>, <CONTROL_TCS 1>;
454
455 rpmhcc: clock-controller {
456 compatible = "qcom,sdx55-rpmh-clk";
457 #clock-cells = <1>;
458 clock-names = "xo";
459 clocks = <&xo_board>;
460 };
Vinod Koul3cef2d52021-01-06 18:23:20 +0530461
462 rpmhpd: power-controller {
463 compatible = "qcom,sdx55-rpmhpd";
464 #power-domain-cells = <1>;
465 operating-points-v2 = <&rpmhpd_opp_table>;
466
467 rpmhpd_opp_table: opp-table {
468 compatible = "operating-points-v2";
469
470 rpmhpd_opp_ret: opp1 {
471 opp-level = <RPMH_REGULATOR_LEVEL_RETENTION>;
472 };
473
474 rpmhpd_opp_min_svs: opp2 {
475 opp-level = <RPMH_REGULATOR_LEVEL_MIN_SVS>;
476 };
477
478 rpmhpd_opp_low_svs: opp3 {
479 opp-level = <RPMH_REGULATOR_LEVEL_LOW_SVS>;
480 };
481
482 rpmhpd_opp_svs: opp4 {
483 opp-level = <RPMH_REGULATOR_LEVEL_SVS>;
484 };
485
486 rpmhpd_opp_svs_l1: opp5 {
487 opp-level = <RPMH_REGULATOR_LEVEL_SVS_L1>;
488 };
489
490 rpmhpd_opp_nom: opp6 {
491 opp-level = <RPMH_REGULATOR_LEVEL_NOM>;
492 };
493
494 rpmhpd_opp_nom_l1: opp7 {
495 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L1>;
496 };
497
498 rpmhpd_opp_nom_l2: opp8 {
499 opp-level = <RPMH_REGULATOR_LEVEL_NOM_L2>;
500 };
501
502 rpmhpd_opp_turbo: opp9 {
503 opp-level = <RPMH_REGULATOR_LEVEL_TURBO>;
504 };
505
506 rpmhpd_opp_turbo_l1: opp10 {
507 opp-level = <RPMH_REGULATOR_LEVEL_TURBO_L1>;
508 };
509 };
510 };
Manivannan Sadhasivam9d038b22020-11-26 14:01:38 +0530511 };
512 };
513
514 timer {
515 compatible = "arm,armv7-timer";
516 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
517 <GIC_PPI 12 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
518 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
519 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
520 clock-frequency = <19200000>;
521 };
522};