1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2017, The Linux Foundation. All rights reserved.
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
7 #include <dt-bindings/clock/qcom,gcc-ipq8074.h>
10 model = "Qualcomm Technologies, Inc. IPQ8074";
11 compatible = "qcom,ipq8074";
14 #address-cells = <0x1>;
16 ranges = <0 0 0 0xffffffff>;
17 compatible = "simple-bus";
19 tlmm: pinctrl@1000000 {
20 compatible = "qcom,ipq8074-pinctrl";
21 reg = <0x1000000 0x300000>;
22 interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
26 #interrupt-cells = <0x2>;
28 serial_4_pins: serial4-pinmux {
29 pins = "gpio23", "gpio24";
30 function = "blsp4_uart1";
35 i2c_0_pins: i2c-0-pinmux {
36 pins = "gpio42", "gpio43";
37 function = "blsp1_i2c";
42 spi_0_pins: spi-0-pins {
43 pins = "gpio38", "gpio39", "gpio40", "gpio41";
44 function = "blsp0_spi";
49 hsuart_pins: hsuart-pins {
50 pins = "gpio46", "gpio47", "gpio48", "gpio49";
51 function = "blsp2_uart";
56 qpic_pins: qpic-pins {
57 pins = "gpio1", "gpio3", "gpio4",
58 "gpio5", "gpio6", "gpio7",
59 "gpio8", "gpio10", "gpio11",
60 "gpio12", "gpio13", "gpio14",
61 "gpio15", "gpio16", "gpio17";
68 intc: interrupt-controller@b000000 {
69 compatible = "qcom,msm-qgic2";
71 #interrupt-cells = <0x3>;
72 reg = <0xb000000 0x1000>, <0xb002000 0x1000>;
76 compatible = "arm,armv8-timer";
77 interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
78 <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
79 <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
80 <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
87 compatible = "arm,armv7-timer-mem";
88 reg = <0xb120000 0x1000>;
89 clock-frequency = <19200000>;
93 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
94 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
95 reg = <0xb121000 0x1000>,
101 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
102 reg = <0xb123000 0x1000>;
108 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
109 reg = <0xb124000 0x1000>;
115 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
116 reg = <0xb125000 0x1000>;
122 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
123 reg = <0xb126000 0x1000>;
129 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
130 reg = <0xb127000 0x1000>;
136 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
137 reg = <0xb128000 0x1000>;
143 compatible = "qcom,gcc-ipq8074";
144 reg = <0x1800000 0x80000>;
145 #clock-cells = <0x1>;
146 #reset-cells = <0x1>;
149 blsp1_uart5: serial@78b3000 {
150 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
151 reg = <0x78b3000 0x200>;
152 interrupts = <GIC_SPI 308 IRQ_TYPE_LEVEL_HIGH>;
153 clocks = <&gcc GCC_BLSP1_UART5_APPS_CLK>,
154 <&gcc GCC_BLSP1_AHB_CLK>;
155 clock-names = "core", "iface";
156 pinctrl-0 = <&serial_4_pins>;
157 pinctrl-names = "default";
161 blsp_dma: dma@7884000 {
162 compatible = "qcom,bam-v1.7.0";
163 reg = <0x7884000 0x2b000>;
164 interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
165 clocks = <&gcc GCC_BLSP1_AHB_CLK>;
166 clock-names = "bam_clk";
171 blsp1_uart1: serial@78af000 {
172 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
173 reg = <0x78af000 0x200>;
174 interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
175 clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>,
176 <&gcc GCC_BLSP1_AHB_CLK>;
177 clock-names = "core", "iface";
181 blsp1_uart3: serial@78b1000 {
182 compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
183 reg = <0x78b1000 0x200>;
184 interrupts = <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>;
185 clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>,
186 <&gcc GCC_BLSP1_AHB_CLK>;
187 clock-names = "core", "iface";
188 dmas = <&blsp_dma 4>,
190 dma-names = "tx", "rx";
191 pinctrl-0 = <&hsuart_pins>;
192 pinctrl-names = "default";
196 blsp1_spi1: spi@78b5000 {
197 compatible = "qcom,spi-qup-v2.2.1";
198 #address-cells = <1>;
200 reg = <0x78b5000 0x600>;
201 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
202 spi-max-frequency = <50000000>;
203 clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
204 <&gcc GCC_BLSP1_AHB_CLK>;
205 clock-names = "core", "iface";
206 dmas = <&blsp_dma 12>, <&blsp_dma 13>;
207 dma-names = "tx", "rx";
208 pinctrl-0 = <&spi_0_pins>;
209 pinctrl-names = "default";
213 blsp1_i2c2: i2c@78b6000 {
214 compatible = "qcom,i2c-qup-v2.2.1";
215 #address-cells = <1>;
217 reg = <0x78b6000 0x600>;
218 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
219 clocks = <&gcc GCC_BLSP1_AHB_CLK>,
220 <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>;
221 clock-names = "iface", "core";
222 clock-frequency = <400000>;
223 dmas = <&blsp_dma 15>, <&blsp_dma 14>;
224 dma-names = "rx", "tx";
225 pinctrl-0 = <&i2c_0_pins>;
226 pinctrl-names = "default";
230 blsp1_i2c3: i2c@78b7000 {
231 compatible = "qcom,i2c-qup-v2.2.1";
232 #address-cells = <1>;
234 reg = <0x78b7000 0x600>;
235 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
236 clocks = <&gcc GCC_BLSP1_AHB_CLK>,
237 <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>;
238 clock-names = "iface", "core";
239 clock-frequency = <100000>;
240 dmas = <&blsp_dma 17>, <&blsp_dma 16>;
241 dma-names = "rx", "tx";
245 qpic_bam: dma@7984000 {
246 compatible = "qcom,bam-v1.7.0";
247 reg = <0x7984000 0x1a000>;
248 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
249 clocks = <&gcc GCC_QPIC_AHB_CLK>;
250 clock-names = "bam_clk";
256 qpic_nand: nand@79b0000 {
257 compatible = "qcom,ipq8074-nand";
258 reg = <0x79b0000 0x10000>;
259 #address-cells = <1>;
261 clocks = <&gcc GCC_QPIC_CLK>,
262 <&gcc GCC_QPIC_AHB_CLK>;
263 clock-names = "core", "aon";
265 dmas = <&qpic_bam 0>,
268 dma-names = "tx", "rx", "cmd";
269 pinctrl-0 = <&qpic_pins>;
270 pinctrl-names = "default";
274 pcie_phy0: phy@86000 {
275 compatible = "qcom,ipq8074-qmp-pcie-phy";
276 reg = <0x86000 0x1000>;
278 clocks = <&gcc GCC_PCIE0_PIPE_CLK>;
279 clock-names = "pipe_clk";
280 clock-output-names = "pcie20_phy0_pipe_clk";
282 resets = <&gcc GCC_PCIE0_PHY_BCR>,
283 <&gcc GCC_PCIE0PHY_PHY_BCR>;
289 pcie0: pci@20000000 {
290 compatible = "qcom,pcie-ipq8074";
291 reg = <0x20000000 0xf1d
295 reg-names = "dbi", "elbi", "parf", "config";
297 linux,pci-domain = <0>;
298 bus-range = <0x00 0xff>;
300 #address-cells = <3>;
304 phy-names = "pciephy";
306 ranges = <0x81000000 0 0x20200000 0x20200000
307 0 0x100000 /* downstream I/O */
308 0x82000000 0 0x20300000 0x20300000
309 0 0xd00000>; /* non-prefetchable memory */
311 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
312 interrupt-names = "msi";
313 #interrupt-cells = <1>;
314 interrupt-map-mask = <0 0 0 0x7>;
315 interrupt-map = <0 0 0 1 &intc 0 75
316 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
318 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
320 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
322 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
324 clocks = <&gcc GCC_SYS_NOC_PCIE0_AXI_CLK>,
325 <&gcc GCC_PCIE0_AXI_M_CLK>,
326 <&gcc GCC_PCIE0_AXI_S_CLK>,
327 <&gcc GCC_PCIE0_AHB_CLK>,
328 <&gcc GCC_PCIE0_AUX_CLK>;
330 clock-names = "iface",
335 resets = <&gcc GCC_PCIE0_PIPE_ARES>,
336 <&gcc GCC_PCIE0_SLEEP_ARES>,
337 <&gcc GCC_PCIE0_CORE_STICKY_ARES>,
338 <&gcc GCC_PCIE0_AXI_MASTER_ARES>,
339 <&gcc GCC_PCIE0_AXI_SLAVE_ARES>,
340 <&gcc GCC_PCIE0_AHB_ARES>,
341 <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>;
342 reset-names = "pipe",
352 pcie_phy1: phy@8e000 {
353 compatible = "qcom,ipq8074-qmp-pcie-phy";
354 reg = <0x8e000 0x1000>;
356 clocks = <&gcc GCC_PCIE1_PIPE_CLK>;
357 clock-names = "pipe_clk";
358 clock-output-names = "pcie20_phy1_pipe_clk";
360 resets = <&gcc GCC_PCIE1_PHY_BCR>,
361 <&gcc GCC_PCIE1PHY_PHY_BCR>;
367 pcie1: pci@10000000 {
368 compatible = "qcom,pcie-ipq8074";
369 reg = <0x10000000 0xf1d
373 reg-names = "dbi", "elbi", "parf", "config";
375 linux,pci-domain = <1>;
376 bus-range = <0x00 0xff>;
378 #address-cells = <3>;
382 phy-names = "pciephy";
384 ranges = <0x81000000 0 0x10200000 0x10200000
385 0 0x100000 /* downstream I/O */
386 0x82000000 0 0x10300000 0x10300000
387 0 0xd00000>; /* non-prefetchable memory */
389 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
390 interrupt-names = "msi";
391 #interrupt-cells = <1>;
392 interrupt-map-mask = <0 0 0 0x7>;
393 interrupt-map = <0 0 0 1 &intc 0 142
394 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
396 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
398 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
400 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
402 clocks = <&gcc GCC_SYS_NOC_PCIE1_AXI_CLK>,
403 <&gcc GCC_PCIE1_AXI_M_CLK>,
404 <&gcc GCC_PCIE1_AXI_S_CLK>,
405 <&gcc GCC_PCIE1_AHB_CLK>,
406 <&gcc GCC_PCIE1_AUX_CLK>;
407 clock-names = "iface",
412 resets = <&gcc GCC_PCIE1_PIPE_ARES>,
413 <&gcc GCC_PCIE1_SLEEP_ARES>,
414 <&gcc GCC_PCIE1_CORE_STICKY_ARES>,
415 <&gcc GCC_PCIE1_AXI_MASTER_ARES>,
416 <&gcc GCC_PCIE1_AXI_SLAVE_ARES>,
417 <&gcc GCC_PCIE1_AHB_ARES>,
418 <&gcc GCC_PCIE1_AXI_MASTER_STICKY_ARES>;
419 reset-names = "pipe",
431 #address-cells = <0x1>;
436 compatible = "arm,cortex-a53";
438 next-level-cache = <&L2_0>;
439 enable-method = "psci";
444 compatible = "arm,cortex-a53";
445 enable-method = "psci";
447 next-level-cache = <&L2_0>;
452 compatible = "arm,cortex-a53";
453 enable-method = "psci";
455 next-level-cache = <&L2_0>;
460 compatible = "arm,cortex-a53";
461 enable-method = "psci";
463 next-level-cache = <&L2_0>;
467 compatible = "cache";
473 compatible = "arm,psci-1.0";
478 compatible = "arm,armv8-pmuv3";
479 interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
483 sleep_clk: sleep_clk {
484 compatible = "fixed-clock";
485 clock-frequency = <32000>;
490 compatible = "fixed-clock";
491 clock-frequency = <19200000>;