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";
98 opp-hz = /bits/ 64 <1488000000>;
99 clock-latency-ns = <200000>;
104 compatible = "arm,cortex-a53-pmu";
105 interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
109 compatible = "arm,psci-1.0";
114 #address-cells = <2>;
118 bootloader@4a100000 {
119 reg = <0x0 0x4a100000 0x0 0x400000>;
124 reg = <0x0 0x4a500000 0x0 0x100000>;
128 tz_mem: tz@4a600000 {
129 reg = <0x0 0x4a600000 0x0 0x200000>;
134 compatible = "qcom,smem";
135 reg = <0x0 0x4a800000 0x0 0x100000>;
138 hwlocks = <&tcsr_mutex 0>;
143 compatible = "simple-bus";
144 #address-cells = <1>;
146 ranges = <0 0 0 0xffffffff>;
148 qfprom: efuse@a4000 {
149 compatible = "qcom,ipq5332-qfprom", "qcom,qfprom";
150 reg = <0x000a4000 0x721>;
151 #address-cells = <1>;
156 compatible = "qcom,prng-ee";
157 reg = <0x000e3000 0x1000>;
158 clocks = <&gcc GCC_PRNG_AHB_CLK>;
159 clock-names = "core";
162 tlmm: pinctrl@1000000 {
163 compatible = "qcom,ipq5332-tlmm";
164 reg = <0x01000000 0x300000>;
165 interrupts = <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>;
168 gpio-ranges = <&tlmm 0 0 53>;
169 interrupt-controller;
170 #interrupt-cells = <2>;
172 serial_0_pins: serial0-state {
173 pins = "gpio18", "gpio19";
174 function = "blsp0_uart0";
175 drive-strength = <8>;
180 gcc: clock-controller@1800000 {
181 compatible = "qcom,ipq5332-gcc";
182 reg = <0x01800000 0x80000>;
185 #power-domain-cells = <1>;
186 clocks = <&xo_board>,
193 tcsr_mutex: hwlock@1905000 {
194 compatible = "qcom,tcsr-mutex";
195 reg = <0x01905000 0x20000>;
199 tcsr: syscon@1937000 {
200 compatible = "qcom,tcsr-ipq5332", "syscon";
201 reg = <0x01937000 0x21000>;
205 compatible = "qcom,ipq5332-sdhci", "qcom,sdhci-msm-v5";
206 reg = <0x07804000 0x1000>, <0x07805000 0x1000>;
208 interrupts = <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>,
209 <GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH>;
210 interrupt-names = "hc_irq", "pwr_irq";
212 clocks = <&gcc GCC_SDCC1_AHB_CLK>,
213 <&gcc GCC_SDCC1_APPS_CLK>,
215 clock-names = "iface", "core", "xo";
219 blsp_dma: dma-controller@7884000 {
220 compatible = "qcom,bam-v1.7.0";
221 reg = <0x07884000 0x1d000>;
222 interrupts = <GIC_SPI 289 IRQ_TYPE_LEVEL_HIGH>;
223 clocks = <&gcc GCC_BLSP1_AHB_CLK>;
224 clock-names = "bam_clk";
229 blsp1_uart0: serial@78af000 {
230 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
231 reg = <0x078af000 0x200>;
232 interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>;
233 clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>,
234 <&gcc GCC_BLSP1_AHB_CLK>;
235 clock-names = "core", "iface";
239 blsp1_uart1: serial@78b0000 {
240 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
241 reg = <0x078b0000 0x200>;
242 interrupts = <GIC_SPI 291 IRQ_TYPE_LEVEL_HIGH>;
243 clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>,
244 <&gcc GCC_BLSP1_AHB_CLK>;
245 clock-names = "core", "iface";
246 dmas = <&blsp_dma 2>, <&blsp_dma 3>;
247 dma-names = "tx", "rx";
251 blsp1_spi0: spi@78b5000 {
252 compatible = "qcom,spi-qup-v2.2.1";
253 reg = <0x078b5000 0x600>;
254 #address-cells = <1>;
256 interrupts = <GIC_SPI 292 IRQ_TYPE_LEVEL_HIGH>;
257 clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
258 <&gcc GCC_BLSP1_AHB_CLK>;
259 clock-names = "core", "iface";
260 dmas = <&blsp_dma 4>, <&blsp_dma 5>;
261 dma-names = "tx", "rx";
265 blsp1_i2c1: i2c@78b6000 {
266 compatible = "qcom,i2c-qup-v2.2.1";
267 reg = <0x078b6000 0x600>;
268 #address-cells = <1>;
270 interrupts = <GIC_SPI 293 IRQ_TYPE_LEVEL_HIGH>;
271 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>,
272 <&gcc GCC_BLSP1_AHB_CLK>;
273 clock-names = "core", "iface";
274 dmas = <&blsp_dma 6>, <&blsp_dma 7>;
275 dma-names = "tx", "rx";
279 blsp1_spi2: spi@78b7000 {
280 compatible = "qcom,spi-qup-v2.2.1";
281 reg = <0x078b7000 0x600>;
282 #address-cells = <1>;
284 interrupts = <GIC_SPI 294 IRQ_TYPE_LEVEL_HIGH>;
285 clocks = <&gcc GCC_BLSP1_QUP3_SPI_APPS_CLK>,
286 <&gcc GCC_BLSP1_AHB_CLK>;
287 clock-names = "core", "iface";
288 dmas = <&blsp_dma 8>, <&blsp_dma 9>;
289 dma-names = "tx", "rx";
293 intc: interrupt-controller@b000000 {
294 compatible = "qcom,msm-qgic2";
295 reg = <0x0b000000 0x1000>, /* GICD */
296 <0x0b002000 0x1000>, /* GICC */
297 <0x0b001000 0x1000>, /* GICH */
298 <0x0b004000 0x1000>; /* GICV */
299 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
300 interrupt-controller;
301 #interrupt-cells = <3>;
302 #address-cells = <1>;
304 ranges = <0 0x0b00c000 0x3000>;
307 compatible = "arm,gic-v2m-frame";
308 reg = <0x00000000 0xffd>;
313 compatible = "arm,gic-v2m-frame";
314 reg = <0x00001000 0xffd>;
319 compatible = "arm,gic-v2m-frame";
320 reg = <0x00002000 0xffd>;
325 watchdog: watchdog@b017000 {
326 compatible = "qcom,apss-wdt-ipq5332", "qcom,kpss-wdt";
327 reg = <0x0b017000 0x1000>;
328 interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
329 clocks = <&sleep_clk>;
333 apcs_glb: mailbox@b111000 {
334 compatible = "qcom,ipq5332-apcs-apps-global",
335 "qcom,ipq6018-apcs-apps-global";
336 reg = <0x0b111000 0x1000>;
338 clocks = <&a53pll>, <&xo_board>;
339 clock-names = "pll", "xo";
343 a53pll: clock@b116000 {
344 compatible = "qcom,ipq5332-a53pll";
345 reg = <0x0b116000 0x40>;
347 clocks = <&xo_board>;
352 compatible = "arm,armv7-timer-mem";
353 reg = <0x0b120000 0x1000>;
354 #address-cells = <1>;
359 reg = <0x0b121000 0x1000>,
361 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
362 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
367 reg = <0x0b123000 0x1000>;
368 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
374 reg = <0x0b124000 0x1000>;
375 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
381 reg = <0x0b125000 0x1000>;
382 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
388 reg = <0x0b126000 0x1000>;
389 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
395 reg = <0x0b127000 0x1000>;
396 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
402 reg = <0x0b128000 0x1000>;
403 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
411 compatible = "arm,armv8-timer";
412 interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
413 <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
414 <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
415 <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;