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>;
81 compatible = "qcom,scm-ipq5332", "qcom,scm";
82 qcom,dload-mode = <&tcsr 0x6100>;
87 device_type = "memory";
88 /* We expect the bootloader to fill in the size */
89 reg = <0x0 0x40000000 0x0 0x0>;
92 cpu_opp_table: opp-table-cpu {
93 compatible = "operating-points-v2";
97 opp-hz = /bits/ 64 <1488000000>;
98 clock-latency-ns = <200000>;
103 compatible = "arm,cortex-a53-pmu";
104 interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
108 compatible = "arm,psci-1.0";
113 #address-cells = <2>;
117 tz_mem: tz@4a600000 {
118 reg = <0x0 0x4a600000 0x0 0x200000>;
123 compatible = "qcom,smem";
124 reg = <0x0 0x4a800000 0x0 0x00100000>;
127 hwlocks = <&tcsr_mutex 0>;
132 compatible = "simple-bus";
133 #address-cells = <1>;
135 ranges = <0 0 0 0xffffffff>;
137 qfprom: efuse@a4000 {
138 compatible = "qcom,ipq5332-qfprom", "qcom,qfprom";
139 reg = <0x000a4000 0x721>;
140 #address-cells = <1>;
145 compatible = "qcom,prng-ee";
146 reg = <0x000e3000 0x1000>;
147 clocks = <&gcc GCC_PRNG_AHB_CLK>;
148 clock-names = "core";
151 tlmm: pinctrl@1000000 {
152 compatible = "qcom,ipq5332-tlmm";
153 reg = <0x01000000 0x300000>;
154 interrupts = <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>;
157 gpio-ranges = <&tlmm 0 0 53>;
158 interrupt-controller;
159 #interrupt-cells = <2>;
161 serial_0_pins: serial0-state {
162 pins = "gpio18", "gpio19";
163 function = "blsp0_uart0";
164 drive-strength = <8>;
169 gcc: clock-controller@1800000 {
170 compatible = "qcom,ipq5332-gcc";
171 reg = <0x01800000 0x80000>;
174 #power-domain-cells = <1>;
175 clocks = <&xo_board>,
182 tcsr_mutex: hwlock@1905000 {
183 compatible = "qcom,tcsr-mutex";
184 reg = <0x01905000 0x20000>;
188 tcsr: syscon@1937000 {
189 compatible = "qcom,tcsr-ipq5332", "syscon";
190 reg = <0x01937000 0x21000>;
194 compatible = "qcom,ipq5332-sdhci", "qcom,sdhci-msm-v5";
195 reg = <0x07804000 0x1000>, <0x07805000 0x1000>;
197 interrupts = <GIC_SPI 313 IRQ_TYPE_LEVEL_HIGH>,
198 <GIC_SPI 316 IRQ_TYPE_LEVEL_HIGH>;
199 interrupt-names = "hc_irq", "pwr_irq";
201 clocks = <&gcc GCC_SDCC1_AHB_CLK>,
202 <&gcc GCC_SDCC1_APPS_CLK>,
204 clock-names = "iface", "core", "xo";
208 blsp_dma: dma-controller@7884000 {
209 compatible = "qcom,bam-v1.7.0";
210 reg = <0x07884000 0x1d000>;
211 interrupts = <GIC_SPI 289 IRQ_TYPE_LEVEL_HIGH>;
212 clocks = <&gcc GCC_BLSP1_AHB_CLK>;
213 clock-names = "bam_clk";
218 blsp1_uart0: serial@78af000 {
219 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
220 reg = <0x078af000 0x200>;
221 interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>;
222 clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>,
223 <&gcc GCC_BLSP1_AHB_CLK>;
224 clock-names = "core", "iface";
228 blsp1_spi0: spi@78b5000 {
229 compatible = "qcom,spi-qup-v2.2.1";
230 reg = <0x078b5000 0x600>;
231 #address-cells = <1>;
233 interrupts = <GIC_SPI 292 IRQ_TYPE_LEVEL_HIGH>;
234 clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
235 <&gcc GCC_BLSP1_AHB_CLK>;
236 clock-names = "core", "iface";
237 dmas = <&blsp_dma 4>, <&blsp_dma 5>;
238 dma-names = "tx", "rx";
242 blsp1_i2c1: i2c@78b6000 {
243 compatible = "qcom,i2c-qup-v2.2.1";
244 reg = <0x078b6000 0x600>;
245 #address-cells = <1>;
247 interrupts = <GIC_SPI 293 IRQ_TYPE_LEVEL_HIGH>;
248 clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>,
249 <&gcc GCC_BLSP1_AHB_CLK>;
250 clock-names = "core", "iface";
251 dmas = <&blsp_dma 6>, <&blsp_dma 7>;
252 dma-names = "tx", "rx";
256 blsp1_spi2: spi@78b7000 {
257 compatible = "qcom,spi-qup-v2.2.1";
258 reg = <0x078b7000 0x600>;
259 #address-cells = <1>;
261 interrupts = <GIC_SPI 294 IRQ_TYPE_LEVEL_HIGH>;
262 clocks = <&gcc GCC_BLSP1_QUP3_SPI_APPS_CLK>,
263 <&gcc GCC_BLSP1_AHB_CLK>;
264 clock-names = "core", "iface";
265 dmas = <&blsp_dma 8>, <&blsp_dma 9>;
266 dma-names = "tx", "rx";
270 intc: interrupt-controller@b000000 {
271 compatible = "qcom,msm-qgic2";
272 reg = <0x0b000000 0x1000>, /* GICD */
273 <0x0b002000 0x1000>, /* GICC */
274 <0x0b001000 0x1000>, /* GICH */
275 <0x0b004000 0x1000>; /* GICV */
276 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
277 interrupt-controller;
278 #interrupt-cells = <3>;
279 #address-cells = <1>;
281 ranges = <0 0x0b00c000 0x3000>;
284 compatible = "arm,gic-v2m-frame";
285 reg = <0x00000000 0xffd>;
290 compatible = "arm,gic-v2m-frame";
291 reg = <0x00001000 0xffd>;
296 compatible = "arm,gic-v2m-frame";
297 reg = <0x00002000 0xffd>;
302 watchdog: watchdog@b017000 {
303 compatible = "qcom,apss-wdt-ipq5332", "qcom,kpss-wdt";
304 reg = <0x0b017000 0x1000>;
305 interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
306 clocks = <&sleep_clk>;
310 apcs_glb: mailbox@b111000 {
311 compatible = "qcom,ipq5332-apcs-apps-global",
312 "qcom,ipq6018-apcs-apps-global";
313 reg = <0x0b111000 0x1000>;
315 clocks = <&a53pll>, <&xo_board>;
316 clock-names = "pll", "xo";
320 a53pll: clock@b116000 {
321 compatible = "qcom,ipq5332-a53pll";
322 reg = <0x0b116000 0x40>;
324 clocks = <&xo_board>;
329 compatible = "arm,armv7-timer-mem";
330 reg = <0x0b120000 0x1000>;
331 #address-cells = <1>;
336 reg = <0x0b121000 0x1000>,
338 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
339 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
344 reg = <0x0b123000 0x1000>;
345 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
351 reg = <0x0b124000 0x1000>;
352 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
358 reg = <0x0b125000 0x1000>;
359 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
365 reg = <0x0b126000 0x1000>;
366 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
372 reg = <0x0b127000 0x1000>;
373 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
379 reg = <0x0b128000 0x1000>;
380 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
388 compatible = "arm,armv8-timer";
389 interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
390 <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
391 <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
392 <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;