1 // SPDX-License-Identifier: BSD-3-Clause
3 * IPQ5332 device tree source
5 * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
8 #include <dt-bindings/clock/qcom,apss-ipq.h>
9 #include <dt-bindings/clock/qcom,ipq5332-gcc.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 interrupt-parent = <&intc>;
18 sleep_clk: sleep-clk {
19 compatible = "fixed-clock";
23 xo_board: xo-board-clk {
24 compatible = "fixed-clock";
35 compatible = "arm,cortex-a53";
37 enable-method = "psci";
38 next-level-cache = <&L2_0>;
39 clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
40 operating-points-v2 = <&cpu_opp_table>;
45 compatible = "arm,cortex-a53";
47 enable-method = "psci";
48 next-level-cache = <&L2_0>;
49 clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
50 operating-points-v2 = <&cpu_opp_table>;
55 compatible = "arm,cortex-a53";
57 enable-method = "psci";
58 next-level-cache = <&L2_0>;
59 clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
60 operating-points-v2 = <&cpu_opp_table>;
65 compatible = "arm,cortex-a53";
67 enable-method = "psci";
68 next-level-cache = <&L2_0>;
69 clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
70 operating-points-v2 = <&cpu_opp_table>;
82 compatible = "qcom,scm-ipq5332", "qcom,scm";
83 qcom,dload-mode = <&tcsr 0x6100>;
88 device_type = "memory";
89 /* We expect the bootloader to fill in the size */
90 reg = <0x0 0x40000000 0x0 0x0>;
93 cpu_opp_table: opp-table-cpu {
94 compatible = "operating-points-v2-kryo-cpu";
96 nvmem-cells = <&cpu_speed_bin>;
99 opp-hz = /bits/ 64 <1100000000>;
100 opp-supported-hw = <0x7>;
101 clock-latency-ns = <200000>;
105 opp-hz = /bits/ 64 <1500000000>;
106 opp-supported-hw = <0x3>;
107 clock-latency-ns = <200000>;
112 compatible = "arm,cortex-a53-pmu";
113 interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
117 compatible = "arm,psci-1.0";
122 #address-cells = <2>;
126 bootloader@4a100000 {
127 reg = <0x0 0x4a100000 0x0 0x400000>;
132 reg = <0x0 0x4a500000 0x0 0x100000>;
136 tz_mem: tz@4a600000 {
137 reg = <0x0 0x4a600000 0x0 0x200000>;
142 compatible = "qcom,smem";
143 reg = <0x0 0x4a800000 0x0 0x100000>;
146 hwlocks = <&tcsr_mutex 3>;
151 compatible = "simple-bus";
152 #address-cells = <1>;
154 ranges = <0 0 0 0xffffffff>;
157 compatible = "qcom,ipq5332-usb-hsphy";
158 reg = <0x0007b000 0x12c>;
160 clocks = <&gcc GCC_USB0_PHY_CFG_AHB_CLK>;
162 resets = <&gcc GCC_QUSB2_0_PHY_BCR>;
169 qfprom: efuse@a4000 {
170 compatible = "qcom,ipq5332-qfprom", "qcom,qfprom";
171 reg = <0x000a4000 0x721>;
172 #address-cells = <1>;
175 cpu_speed_bin: cpu-speed-bin@1d {
182 compatible = "qcom,prng-ee";
183 reg = <0x000e3000 0x1000>;
184 clocks = <&gcc GCC_PRNG_AHB_CLK>;
185 clock-names = "core";
188 tlmm: pinctrl@1000000 {
189 compatible = "qcom,ipq5332-tlmm";
190 reg = <0x01000000 0x300000>;
191 interrupts = <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>;
194 gpio-ranges = <&tlmm 0 0 53>;
195 interrupt-controller;
196 #interrupt-cells = <2>;
198 serial_0_pins: serial0-state {
199 pins = "gpio18", "gpio19";
200 function = "blsp0_uart0";
201 drive-strength = <8>;
206 gcc: clock-controller@1800000 {
207 compatible = "qcom,ipq5332-gcc";
208 reg = <0x01800000 0x80000>;
211 #power-domain-cells = <1>;
212 clocks = <&xo_board>,
219 tcsr_mutex: hwlock@1905000 {
220 compatible = "qcom,tcsr-mutex";
221 reg = <0x01905000 0x20000>;
225 tcsr: syscon@1937000 {
226 compatible = "qcom,tcsr-ipq5332", "syscon";
227 reg = <0x01937000 0x21000>;
231 compatible = "qcom,ipq5332-sdhci", "qcom,sdhci-msm-v5";
232 reg = <0x07804000 0x1000>, <0x07805000 0x1000>;
234 interrupts = <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>,
235 <GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH>;
236 interrupt-names = "hc_irq", "pwr_irq";
238 clocks = <&gcc GCC_SDCC1_AHB_CLK>,
239 <&gcc GCC_SDCC1_APPS_CLK>,
241 clock-names = "iface", "core", "xo";
245 blsp_dma: dma-controller@7884000 {
246 compatible = "qcom,bam-v1.7.0";
247 reg = <0x07884000 0x1d000>;
248 interrupts = <GIC_SPI 289 IRQ_TYPE_LEVEL_HIGH>;
249 clocks = <&gcc GCC_BLSP1_AHB_CLK>;
250 clock-names = "bam_clk";
255 blsp1_uart0: serial@78af000 {
256 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
257 reg = <0x078af000 0x200>;
258 interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>;
259 clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>,
260 <&gcc GCC_BLSP1_AHB_CLK>;
261 clock-names = "core", "iface";
265 blsp1_uart1: serial@78b0000 {
266 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
267 reg = <0x078b0000 0x200>;
268 interrupts = <GIC_SPI 291 IRQ_TYPE_LEVEL_HIGH>;
269 clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>,
270 <&gcc GCC_BLSP1_AHB_CLK>;
271 clock-names = "core", "iface";
272 dmas = <&blsp_dma 2>, <&blsp_dma 3>;
273 dma-names = "tx", "rx";
277 blsp1_spi0: spi@78b5000 {
278 compatible = "qcom,spi-qup-v2.2.1";
279 reg = <0x078b5000 0x600>;
280 #address-cells = <1>;
282 interrupts = <GIC_SPI 292 IRQ_TYPE_LEVEL_HIGH>;
283 clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
284 <&gcc GCC_BLSP1_AHB_CLK>;
285 clock-names = "core", "iface";
286 dmas = <&blsp_dma 4>, <&blsp_dma 5>;
287 dma-names = "tx", "rx";
291 blsp1_i2c1: i2c@78b6000 {
292 compatible = "qcom,i2c-qup-v2.2.1";
293 reg = <0x078b6000 0x600>;
294 #address-cells = <1>;
296 interrupts = <GIC_SPI 293 IRQ_TYPE_LEVEL_HIGH>;
297 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>,
298 <&gcc GCC_BLSP1_AHB_CLK>;
299 clock-names = "core", "iface";
300 dmas = <&blsp_dma 6>, <&blsp_dma 7>;
301 dma-names = "tx", "rx";
305 blsp1_spi2: spi@78b7000 {
306 compatible = "qcom,spi-qup-v2.2.1";
307 reg = <0x078b7000 0x600>;
308 #address-cells = <1>;
310 interrupts = <GIC_SPI 294 IRQ_TYPE_LEVEL_HIGH>;
311 clocks = <&gcc GCC_BLSP1_QUP3_SPI_APPS_CLK>,
312 <&gcc GCC_BLSP1_AHB_CLK>;
313 clock-names = "core", "iface";
314 dmas = <&blsp_dma 8>, <&blsp_dma 9>;
315 dma-names = "tx", "rx";
320 compatible = "qcom,ipq5332-dwc3", "qcom,dwc3";
321 reg = <0x08af8800 0x400>;
323 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
324 interrupt-names = "hs_phy_irq";
326 clocks = <&gcc GCC_USB0_MASTER_CLK>,
327 <&gcc GCC_SNOC_USB_CLK>,
328 <&gcc GCC_USB0_SLEEP_CLK>,
329 <&gcc GCC_USB0_MOCK_UTMI_CLK>;
330 clock-names = "core",
335 resets = <&gcc GCC_USB_BCR>;
337 qcom,select-utmi-as-pipe-clk;
339 #address-cells = <1>;
345 usb_dwc: usb@8a00000 {
346 compatible = "snps,dwc3";
347 reg = <0x08a00000 0xe000>;
348 clocks = <&gcc GCC_USB0_MOCK_UTMI_CLK>;
350 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
351 phy-names = "usb2-phy";
354 snps,is-utmi-l1-suspend;
355 snps,hird-threshold = /bits/ 8 <0x0>;
356 snps,dis_u2_susphy_quirk;
357 snps,dis_u3_susphy_quirk;
361 intc: interrupt-controller@b000000 {
362 compatible = "qcom,msm-qgic2";
363 reg = <0x0b000000 0x1000>, /* GICD */
364 <0x0b002000 0x1000>, /* GICC */
365 <0x0b001000 0x1000>, /* GICH */
366 <0x0b004000 0x1000>; /* GICV */
367 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
368 interrupt-controller;
369 #interrupt-cells = <3>;
370 #address-cells = <1>;
372 ranges = <0 0x0b00c000 0x3000>;
375 compatible = "arm,gic-v2m-frame";
376 reg = <0x00000000 0xffd>;
381 compatible = "arm,gic-v2m-frame";
382 reg = <0x00001000 0xffd>;
387 compatible = "arm,gic-v2m-frame";
388 reg = <0x00002000 0xffd>;
393 watchdog: watchdog@b017000 {
394 compatible = "qcom,apss-wdt-ipq5332", "qcom,kpss-wdt";
395 reg = <0x0b017000 0x1000>;
396 interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
397 clocks = <&sleep_clk>;
401 apcs_glb: mailbox@b111000 {
402 compatible = "qcom,ipq5332-apcs-apps-global",
403 "qcom,ipq6018-apcs-apps-global";
404 reg = <0x0b111000 0x1000>;
406 clocks = <&a53pll>, <&xo_board>, <&gcc GPLL0>;
407 clock-names = "pll", "xo", "gpll0";
411 a53pll: clock@b116000 {
412 compatible = "qcom,ipq5332-a53pll";
413 reg = <0x0b116000 0x40>;
415 clocks = <&xo_board>;
420 compatible = "arm,armv7-timer-mem";
421 reg = <0x0b120000 0x1000>;
422 #address-cells = <1>;
427 reg = <0x0b121000 0x1000>,
429 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
430 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
435 reg = <0x0b123000 0x1000>;
436 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
442 reg = <0x0b124000 0x1000>;
443 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
449 reg = <0x0b125000 0x1000>;
450 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
456 reg = <0x0b126000 0x1000>;
457 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
463 reg = <0x0b127000 0x1000>;
464 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
470 reg = <0x0b128000 0x1000>;
471 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
479 compatible = "arm,armv8-timer";
480 interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
481 <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
482 <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
483 <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;