xref: /openbmc/linux/arch/arm64/boot/dts/qcom/ipq6018.dtsi (revision 9583ad41)
1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * IPQ6018 SoC device tree source
4 *
5 * Copyright (c) 2019, The Linux Foundation. All rights reserved.
6 */
7
8#include <dt-bindings/interrupt-controller/arm-gic.h>
9#include <dt-bindings/clock/qcom,gcc-ipq6018.h>
10#include <dt-bindings/reset/qcom,gcc-ipq6018.h>
11#include <dt-bindings/clock/qcom,apss-ipq.h>
12
13/ {
14	#address-cells = <2>;
15	#size-cells = <2>;
16	interrupt-parent = <&intc>;
17
18	clocks {
19		sleep_clk: sleep-clk {
20			compatible = "fixed-clock";
21			clock-frequency = <32000>;
22			#clock-cells = <0>;
23		};
24
25		xo: xo {
26			compatible = "fixed-clock";
27			clock-frequency = <24000000>;
28			#clock-cells = <0>;
29		};
30	};
31
32	cpus: cpus {
33		#address-cells = <1>;
34		#size-cells = <0>;
35
36		CPU0: cpu@0 {
37			device_type = "cpu";
38			compatible = "arm,cortex-a53";
39			reg = <0x0>;
40			enable-method = "psci";
41			next-level-cache = <&L2_0>;
42			clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
43			clock-names = "cpu";
44			operating-points-v2 = <&cpu_opp_table>;
45			cpu-supply = <&ipq6018_s2>;
46		};
47
48		CPU1: cpu@1 {
49			device_type = "cpu";
50			compatible = "arm,cortex-a53";
51			enable-method = "psci";
52			reg = <0x1>;
53			next-level-cache = <&L2_0>;
54			clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
55			clock-names = "cpu";
56			operating-points-v2 = <&cpu_opp_table>;
57			cpu-supply = <&ipq6018_s2>;
58		};
59
60		CPU2: cpu@2 {
61			device_type = "cpu";
62			compatible = "arm,cortex-a53";
63			enable-method = "psci";
64			reg = <0x2>;
65			next-level-cache = <&L2_0>;
66			clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
67			clock-names = "cpu";
68			operating-points-v2 = <&cpu_opp_table>;
69			cpu-supply = <&ipq6018_s2>;
70		};
71
72		CPU3: cpu@3 {
73			device_type = "cpu";
74			compatible = "arm,cortex-a53";
75			enable-method = "psci";
76			reg = <0x3>;
77			next-level-cache = <&L2_0>;
78			clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
79			clock-names = "cpu";
80			operating-points-v2 = <&cpu_opp_table>;
81			cpu-supply = <&ipq6018_s2>;
82		};
83
84		L2_0: l2-cache {
85			compatible = "cache";
86			cache-level = <2>;
87			cache-unified;
88		};
89	};
90
91	firmware {
92		scm {
93			compatible = "qcom,scm-ipq6018", "qcom,scm";
94			qcom,dload-mode = <&tcsr 0x6100>;
95		};
96	};
97
98	cpu_opp_table: opp-table-cpu {
99		compatible = "operating-points-v2";
100		opp-shared;
101
102		opp-864000000 {
103			opp-hz = /bits/ 64 <864000000>;
104			opp-microvolt = <725000>;
105			clock-latency-ns = <200000>;
106		};
107
108		opp-1056000000 {
109			opp-hz = /bits/ 64 <1056000000>;
110			opp-microvolt = <787500>;
111			clock-latency-ns = <200000>;
112		};
113
114		opp-1320000000 {
115			opp-hz = /bits/ 64 <1320000000>;
116			opp-microvolt = <862500>;
117			clock-latency-ns = <200000>;
118		};
119
120		opp-1440000000 {
121			opp-hz = /bits/ 64 <1440000000>;
122			opp-microvolt = <925000>;
123			clock-latency-ns = <200000>;
124		};
125
126		opp-1608000000 {
127			opp-hz = /bits/ 64 <1608000000>;
128			opp-microvolt = <987500>;
129			clock-latency-ns = <200000>;
130		};
131
132		opp-1800000000 {
133			opp-hz = /bits/ 64 <1800000000>;
134			opp-microvolt = <1062500>;
135			clock-latency-ns = <200000>;
136		};
137	};
138
139	pmuv8: pmu {
140		compatible = "arm,cortex-a53-pmu";
141		interrupts = <GIC_PPI 7 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
142	};
143
144	psci: psci {
145		compatible = "arm,psci-1.0";
146		method = "smc";
147	};
148
149	rpm: remoteproc {
150		compatible = "qcom,ipq6018-rpm-proc", "qcom,rpm-proc";
151
152		glink-edge {
153			compatible = "qcom,glink-rpm";
154			interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
155			qcom,rpm-msg-ram = <&rpm_msg_ram>;
156			mboxes = <&apcs_glb 0>;
157
158			rpm_requests: rpm-requests {
159				compatible = "qcom,rpm-ipq6018";
160				qcom,glink-channels = "rpm_requests";
161
162				regulators {
163					compatible = "qcom,rpm-mp5496-regulators";
164
165					ipq6018_s2: s2 {
166						regulator-min-microvolt = <725000>;
167						regulator-max-microvolt = <1062500>;
168						regulator-always-on;
169					};
170				};
171			};
172		};
173	};
174
175	reserved-memory {
176		#address-cells = <2>;
177		#size-cells = <2>;
178		ranges;
179
180		rpm_msg_ram: memory@60000 {
181			reg = <0x0 0x00060000 0x0 0x6000>;
182			no-map;
183		};
184
185		bootloader@4a100000 {
186			reg = <0x0 0x4a100000 0x0 0x400000>;
187			no-map;
188		};
189
190		sbl@4a500000 {
191			reg = <0x0 0x4a500000 0x0 0x100000>;
192			no-map;
193		};
194
195		tz: memory@4a600000 {
196			reg = <0x0 0x4a600000 0x0 0x400000>;
197			no-map;
198		};
199
200		smem_region: memory@4aa00000 {
201			reg = <0x0 0x4aa00000 0x0 0x100000>;
202			no-map;
203		};
204
205		q6_region: memory@4ab00000 {
206			reg = <0x0 0x4ab00000 0x0 0x5500000>;
207			no-map;
208		};
209	};
210
211	smem {
212		compatible = "qcom,smem";
213		memory-region = <&smem_region>;
214		hwlocks = <&tcsr_mutex 3>;
215	};
216
217	soc: soc@0 {
218		#address-cells = <2>;
219		#size-cells = <2>;
220		ranges = <0 0 0 0 0x0 0xffffffff>;
221		dma-ranges;
222		compatible = "simple-bus";
223
224		qusb_phy_1: qusb@59000 {
225			compatible = "qcom,ipq6018-qusb2-phy";
226			reg = <0x0 0x00059000 0x0 0x180>;
227			#phy-cells = <0>;
228
229			clocks = <&gcc GCC_USB1_PHY_CFG_AHB_CLK>,
230				 <&xo>;
231			clock-names = "cfg_ahb", "ref";
232
233			resets = <&gcc GCC_QUSB2_1_PHY_BCR>;
234			status = "disabled";
235		};
236
237		ssphy_0: ssphy@78000 {
238			compatible = "qcom,ipq6018-qmp-usb3-phy";
239			reg = <0x0 0x00078000 0x0 0x1c4>;
240			#address-cells = <2>;
241			#size-cells = <2>;
242			ranges;
243
244			clocks = <&gcc GCC_USB0_AUX_CLK>,
245				 <&gcc GCC_USB0_PHY_CFG_AHB_CLK>, <&xo>;
246			clock-names = "aux", "cfg_ahb", "ref";
247
248			resets = <&gcc GCC_USB0_PHY_BCR>,
249				 <&gcc GCC_USB3PHY_0_PHY_BCR>;
250			reset-names = "phy","common";
251			status = "disabled";
252
253			usb0_ssphy: phy@78200 {
254				reg = <0x0 0x00078200 0x0 0x130>, /* Tx */
255				      <0x0 0x00078400 0x0 0x200>, /* Rx */
256				      <0x0 0x00078800 0x0 0x1f8>, /* PCS */
257				      <0x0 0x00078600 0x0 0x044>; /* PCS misc */
258				#phy-cells = <0>;
259				#clock-cells = <0>;
260				clocks = <&gcc GCC_USB0_PIPE_CLK>;
261				clock-names = "pipe0";
262				clock-output-names = "gcc_usb0_pipe_clk_src";
263			};
264		};
265
266		qusb_phy_0: qusb@79000 {
267			compatible = "qcom,ipq6018-qusb2-phy";
268			reg = <0x0 0x00079000 0x0 0x180>;
269			#phy-cells = <0>;
270
271			clocks = <&gcc GCC_USB0_PHY_CFG_AHB_CLK>,
272				<&xo>;
273			clock-names = "cfg_ahb", "ref";
274
275			resets = <&gcc GCC_QUSB2_0_PHY_BCR>;
276			status = "disabled";
277		};
278
279		pcie_phy: phy@84000 {
280			compatible = "qcom,ipq6018-qmp-pcie-phy";
281			reg = <0x0 0x00084000 0x0 0x1bc>; /* Serdes PLL */
282			status = "disabled";
283			#address-cells = <2>;
284			#size-cells = <2>;
285			ranges;
286
287			clocks = <&gcc GCC_PCIE0_AUX_CLK>,
288				<&gcc GCC_PCIE0_AHB_CLK>;
289			clock-names = "aux", "cfg_ahb";
290
291			resets = <&gcc GCC_PCIE0_PHY_BCR>,
292				<&gcc GCC_PCIE0PHY_PHY_BCR>;
293			reset-names = "phy",
294				      "common";
295
296			pcie_phy0: phy@84200 {
297				reg = <0x0 0x00084200 0x0 0x16c>, /* Serdes Tx */
298				      <0x0 0x00084400 0x0 0x200>, /* Serdes Rx */
299				      <0x0 0x00084800 0x0 0x1f0>, /* PCS: Lane0, COM, PCIE */
300				      <0x0 0x00084c00 0x0 0xf4>; /* pcs_misc */
301				#phy-cells = <0>;
302
303				clocks = <&gcc GCC_PCIE0_PIPE_CLK>;
304				clock-names = "pipe0";
305				clock-output-names = "gcc_pcie0_pipe_clk_src";
306				#clock-cells = <0>;
307			};
308		};
309
310		mdio: mdio@90000 {
311			#address-cells = <1>;
312			#size-cells = <0>;
313			compatible = "qcom,ipq6018-mdio", "qcom,ipq4019-mdio";
314			reg = <0x0 0x00090000 0x0 0x64>;
315			clocks = <&gcc GCC_MDIO_AHB_CLK>;
316			clock-names = "gcc_mdio_ahb_clk";
317			status = "disabled";
318		};
319
320		qfprom: efuse@a4000 {
321			compatible = "qcom,ipq6018-qfprom", "qcom,qfprom";
322			reg = <0x0 0x000a4000 0x0 0x2000>;
323			#address-cells = <1>;
324			#size-cells = <1>;
325		};
326
327		prng: qrng@e3000 {
328			compatible = "qcom,prng-ee";
329			reg = <0x0 0x000e3000 0x0 0x1000>;
330			clocks = <&gcc GCC_PRNG_AHB_CLK>;
331			clock-names = "core";
332		};
333
334		cryptobam: dma-controller@704000 {
335			compatible = "qcom,bam-v1.7.0";
336			reg = <0x0 0x00704000 0x0 0x20000>;
337			interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>;
338			clocks = <&gcc GCC_CRYPTO_AHB_CLK>;
339			clock-names = "bam_clk";
340			#dma-cells = <1>;
341			qcom,ee = <1>;
342			qcom,controlled-remotely;
343		};
344
345		crypto: crypto@73a000 {
346			compatible = "qcom,crypto-v5.1";
347			reg = <0x0 0x0073a000 0x0 0x6000>;
348			clocks = <&gcc GCC_CRYPTO_AHB_CLK>,
349				 <&gcc GCC_CRYPTO_AXI_CLK>,
350				 <&gcc GCC_CRYPTO_CLK>;
351			clock-names = "iface", "bus", "core";
352			dmas = <&cryptobam 2>, <&cryptobam 3>;
353			dma-names = "rx", "tx";
354		};
355
356		tlmm: pinctrl@1000000 {
357			compatible = "qcom,ipq6018-pinctrl";
358			reg = <0x0 0x01000000 0x0 0x300000>;
359			interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
360			gpio-controller;
361			#gpio-cells = <2>;
362			gpio-ranges = <&tlmm 0 0 80>;
363			interrupt-controller;
364			#interrupt-cells = <2>;
365
366			serial_3_pins: serial3-state {
367				pins = "gpio44", "gpio45";
368				function = "blsp2_uart";
369				drive-strength = <8>;
370				bias-pull-down;
371			};
372
373			qpic_pins: qpic-state {
374				pins = "gpio1", "gpio3", "gpio4",
375					"gpio5", "gpio6", "gpio7",
376					"gpio8", "gpio10", "gpio11",
377					"gpio12", "gpio13", "gpio14",
378					"gpio15", "gpio17";
379				function = "qpic_pad";
380				drive-strength = <8>;
381				bias-disable;
382			};
383		};
384
385		gcc: gcc@1800000 {
386			compatible = "qcom,gcc-ipq6018";
387			reg = <0x0 0x01800000 0x0 0x80000>;
388			clocks = <&xo>, <&sleep_clk>;
389			clock-names = "xo", "sleep_clk";
390			#clock-cells = <1>;
391			#reset-cells = <1>;
392		};
393
394		tcsr_mutex: hwlock@1905000 {
395			compatible = "qcom,ipq6018-tcsr-mutex", "qcom,tcsr-mutex";
396			reg = <0x0 0x01905000 0x0 0x20000>;
397			#hwlock-cells = <1>;
398		};
399
400		tcsr: syscon@1937000 {
401			compatible = "qcom,tcsr-ipq6018", "syscon";
402			reg = <0x0 0x01937000 0x0 0x21000>;
403		};
404
405		usb2: usb@70f8800 {
406			compatible = "qcom,ipq6018-dwc3", "qcom,dwc3";
407			reg = <0x0 0x070f8800 0x0 0x400>;
408			#address-cells = <2>;
409			#size-cells = <2>;
410			ranges;
411			clocks = <&gcc GCC_USB1_MASTER_CLK>,
412				 <&gcc GCC_USB1_SLEEP_CLK>,
413				 <&gcc GCC_USB1_MOCK_UTMI_CLK>;
414			clock-names = "core",
415				      "sleep",
416				      "mock_utmi";
417
418			assigned-clocks = <&gcc GCC_USB1_MASTER_CLK>,
419					  <&gcc GCC_USB1_MOCK_UTMI_CLK>;
420			assigned-clock-rates = <133330000>,
421					       <24000000>;
422			resets = <&gcc GCC_USB1_BCR>;
423			status = "disabled";
424
425			dwc_1: usb@7000000 {
426				compatible = "snps,dwc3";
427				reg = <0x0 0x07000000 0x0 0xcd00>;
428				interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
429				phys = <&qusb_phy_1>;
430				phy-names = "usb2-phy";
431				tx-fifo-resize;
432				snps,is-utmi-l1-suspend;
433				snps,hird-threshold = /bits/ 8 <0x0>;
434				snps,dis_u2_susphy_quirk;
435				snps,dis_u3_susphy_quirk;
436				dr_mode = "host";
437			};
438		};
439
440		blsp_dma: dma-controller@7884000 {
441			compatible = "qcom,bam-v1.7.0";
442			reg = <0x0 0x07884000 0x0 0x2b000>;
443			interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>;
444			clocks = <&gcc GCC_BLSP1_AHB_CLK>;
445			clock-names = "bam_clk";
446			#dma-cells = <1>;
447			qcom,ee = <0>;
448		};
449
450		blsp1_uart3: serial@78b1000 {
451			compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm";
452			reg = <0x0 0x078b1000 0x0 0x200>;
453			interrupts = <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>;
454			clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>,
455				 <&gcc GCC_BLSP1_AHB_CLK>;
456			clock-names = "core", "iface";
457			status = "disabled";
458		};
459
460		blsp1_spi1: spi@78b5000 {
461			compatible = "qcom,spi-qup-v2.2.1";
462			#address-cells = <1>;
463			#size-cells = <0>;
464			reg = <0x0 0x078b5000 0x0 0x600>;
465			interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
466			clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
467				 <&gcc GCC_BLSP1_AHB_CLK>;
468			clock-names = "core", "iface";
469			dmas = <&blsp_dma 12>, <&blsp_dma 13>;
470			dma-names = "tx", "rx";
471			status = "disabled";
472		};
473
474		blsp1_spi2: spi@78b6000 {
475			compatible = "qcom,spi-qup-v2.2.1";
476			#address-cells = <1>;
477			#size-cells = <0>;
478			reg = <0x0 0x078b6000 0x0 0x600>;
479			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
480			clocks = <&gcc GCC_BLSP1_QUP2_SPI_APPS_CLK>,
481				 <&gcc GCC_BLSP1_AHB_CLK>;
482			clock-names = "core", "iface";
483			dmas = <&blsp_dma 14>, <&blsp_dma 15>;
484			dma-names = "tx", "rx";
485			status = "disabled";
486		};
487
488		blsp1_i2c2: i2c@78b6000 {
489			compatible = "qcom,i2c-qup-v2.2.1";
490			#address-cells = <1>;
491			#size-cells = <0>;
492			reg = <0x0 0x078b6000 0x0 0x600>;
493			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
494			clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>,
495				 <&gcc GCC_BLSP1_AHB_CLK>;
496			clock-names = "core", "iface";
497			clock-frequency = <400000>;
498			dmas = <&blsp_dma 14>, <&blsp_dma 15>;
499			dma-names = "tx", "rx";
500			status = "disabled";
501		};
502
503		blsp1_i2c3: i2c@78b7000 {
504			compatible = "qcom,i2c-qup-v2.2.1";
505			#address-cells = <1>;
506			#size-cells = <0>;
507			reg = <0x0 0x078b7000 0x0 0x600>;
508			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
509			clocks = <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>,
510				 <&gcc GCC_BLSP1_AHB_CLK>;
511			clock-names = "core", "iface";
512			clock-frequency = <400000>;
513			dmas = <&blsp_dma 16>, <&blsp_dma 17>;
514			dma-names = "tx", "rx";
515			status = "disabled";
516		};
517
518		qpic_bam: dma-controller@7984000 {
519			compatible = "qcom,bam-v1.7.0";
520			reg = <0x0 0x07984000 0x0 0x1a000>;
521			interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
522			clocks = <&gcc GCC_QPIC_AHB_CLK>;
523			clock-names = "bam_clk";
524			#dma-cells = <1>;
525			qcom,ee = <0>;
526			status = "disabled";
527		};
528
529		qpic_nand: nand-controller@79b0000 {
530			compatible = "qcom,ipq6018-nand";
531			reg = <0x0 0x079b0000 0x0 0x10000>;
532			#address-cells = <1>;
533			#size-cells = <0>;
534			clocks = <&gcc GCC_QPIC_CLK>,
535				 <&gcc GCC_QPIC_AHB_CLK>;
536			clock-names = "core", "aon";
537
538			dmas = <&qpic_bam 0>,
539			       <&qpic_bam 1>,
540			       <&qpic_bam 2>;
541			dma-names = "tx", "rx", "cmd";
542			pinctrl-0 = <&qpic_pins>;
543			pinctrl-names = "default";
544			status = "disabled";
545		};
546
547		usb3: usb@8af8800 {
548			compatible = "qcom,ipq6018-dwc3", "qcom,dwc3";
549			reg = <0x0 0x08af8800 0x0 0x400>;
550			#address-cells = <2>;
551			#size-cells = <2>;
552			ranges;
553
554			clocks = <&gcc GCC_SYS_NOC_USB0_AXI_CLK>,
555				<&gcc GCC_USB0_MASTER_CLK>,
556				<&gcc GCC_USB0_SLEEP_CLK>,
557				<&gcc GCC_USB0_MOCK_UTMI_CLK>;
558			clock-names = "cfg_noc",
559				"core",
560				"sleep",
561				"mock_utmi";
562
563			assigned-clocks = <&gcc GCC_SYS_NOC_USB0_AXI_CLK>,
564					  <&gcc GCC_USB0_MASTER_CLK>,
565					  <&gcc GCC_USB0_MOCK_UTMI_CLK>;
566			assigned-clock-rates = <133330000>,
567					       <133330000>,
568					       <24000000>;
569
570			resets = <&gcc GCC_USB0_BCR>;
571			status = "disabled";
572
573			dwc_0: usb@8a00000 {
574				compatible = "snps,dwc3";
575				reg = <0x0 0x08a00000 0x0 0xcd00>;
576				interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
577				phys = <&qusb_phy_0>, <&usb0_ssphy>;
578				phy-names = "usb2-phy", "usb3-phy";
579				clocks = <&xo>;
580				clock-names = "ref";
581				tx-fifo-resize;
582				snps,parkmode-disable-ss-quirk;
583				snps,is-utmi-l1-suspend;
584				snps,hird-threshold = /bits/ 8 <0x0>;
585				snps,dis_u2_susphy_quirk;
586				snps,dis_u3_susphy_quirk;
587				dr_mode = "host";
588			};
589		};
590
591		intc: interrupt-controller@b000000 {
592			compatible = "qcom,msm-qgic2";
593			#address-cells = <2>;
594			#size-cells = <2>;
595			interrupt-controller;
596			#interrupt-cells = <3>;
597			reg = <0x0 0x0b000000 0x0 0x1000>,  /*GICD*/
598			      <0x0 0x0b002000 0x0 0x1000>,  /*GICC*/
599			      <0x0 0x0b001000 0x0 0x1000>,  /*GICH*/
600			      <0x0 0x0b004000 0x0 0x1000>;  /*GICV*/
601			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
602			ranges = <0 0 0 0xb00a000 0 0xffd>;
603
604			v2m@0 {
605				compatible = "arm,gic-v2m-frame";
606				msi-controller;
607				reg = <0x0 0x0 0x0 0xffd>;
608			};
609		};
610
611		watchdog@b017000 {
612			compatible = "qcom,kpss-wdt";
613			interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
614			reg = <0x0 0x0b017000 0x0 0x40>;
615			clocks = <&sleep_clk>;
616			timeout-sec = <10>;
617		};
618
619		apcs_glb: mailbox@b111000 {
620			compatible = "qcom,ipq6018-apcs-apps-global";
621			reg = <0x0 0x0b111000 0x0 0x1000>;
622			#clock-cells = <1>;
623			clocks = <&a53pll>, <&xo>;
624			clock-names = "pll", "xo";
625			#mbox-cells = <1>;
626		};
627
628		a53pll: clock@b116000 {
629			compatible = "qcom,ipq6018-a53pll";
630			reg = <0x0 0x0b116000 0x0 0x40>;
631			#clock-cells = <0>;
632			clocks = <&xo>;
633			clock-names = "xo";
634		};
635
636		timer@b120000 {
637			#address-cells = <1>;
638			#size-cells = <1>;
639			ranges = <0 0 0 0x10000000>;
640			compatible = "arm,armv7-timer-mem";
641			reg = <0x0 0x0b120000 0x0 0x1000>;
642
643			frame@b120000 {
644				frame-number = <0>;
645				interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
646					     <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
647				reg = <0x0b121000 0x1000>,
648				      <0x0b122000 0x1000>;
649			};
650
651			frame@b123000 {
652				frame-number = <1>;
653				interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
654				reg = <0x0b123000 0x1000>;
655				status = "disabled";
656			};
657
658			frame@b124000 {
659				frame-number = <2>;
660				interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
661				reg = <0x0b124000 0x1000>;
662				status = "disabled";
663			};
664
665			frame@b125000 {
666				frame-number = <3>;
667				interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
668				reg = <0x0b125000 0x1000>;
669				status = "disabled";
670			};
671
672			frame@b126000 {
673				frame-number = <4>;
674				interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
675				reg = <0x0b126000 0x1000>;
676				status = "disabled";
677			};
678
679			frame@b127000 {
680				frame-number = <5>;
681				interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
682				reg = <0x0b127000 0x1000>;
683				status = "disabled";
684			};
685
686			frame@b128000 {
687				frame-number = <6>;
688				interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
689				reg = <0x0b128000 0x1000>;
690				status = "disabled";
691			};
692		};
693
694		q6v5_wcss: remoteproc@cd00000 {
695			compatible = "qcom,ipq6018-wcss-pil";
696			reg = <0x0 0x0cd00000 0x0 0x4040>,
697			      <0x0 0x004ab000 0x0 0x20>;
698			reg-names = "qdsp6",
699				    "rmb";
700			interrupts-extended = <&intc GIC_SPI 325 IRQ_TYPE_EDGE_RISING>,
701					      <&wcss_smp2p_in 0 0>,
702					      <&wcss_smp2p_in 1 0>,
703					      <&wcss_smp2p_in 2 0>,
704					      <&wcss_smp2p_in 3 0>;
705			interrupt-names = "wdog",
706					  "fatal",
707					  "ready",
708					  "handover",
709					  "stop-ack";
710
711			resets = <&gcc GCC_WCSSAON_RESET>,
712				 <&gcc GCC_WCSS_BCR>,
713				 <&gcc GCC_WCSS_Q6_BCR>;
714
715			reset-names = "wcss_aon_reset",
716				      "wcss_reset",
717				      "wcss_q6_reset";
718
719			clocks = <&gcc GCC_PRNG_AHB_CLK>;
720			clock-names = "prng";
721
722			qcom,halt-regs = <&tcsr 0x18000 0x1b000 0xe000>;
723
724			qcom,smem-states = <&wcss_smp2p_out 0>,
725					   <&wcss_smp2p_out 1>;
726			qcom,smem-state-names = "shutdown",
727						"stop";
728
729			memory-region = <&q6_region>;
730
731			glink-edge {
732				interrupts = <GIC_SPI 321 IRQ_TYPE_EDGE_RISING>;
733				label = "rtr";
734				qcom,remote-pid = <1>;
735				mboxes = <&apcs_glb 8>;
736
737				qrtr_requests {
738					qcom,glink-channels = "IPCRTR";
739				};
740			};
741		};
742
743		pcie0: pci@20000000 {
744			compatible = "qcom,pcie-ipq6018";
745			reg = <0x0 0x20000000 0x0 0xf1d>,
746			      <0x0 0x20000f20 0x0 0xa8>,
747			      <0x0 0x20001000 0x0 0x1000>,
748			      <0x0 0x80000 0x0 0x4000>,
749			      <0x0 0x20100000 0x0 0x1000>;
750			reg-names = "dbi", "elbi", "atu", "parf", "config";
751
752			device_type = "pci";
753			linux,pci-domain = <0>;
754			bus-range = <0x00 0xff>;
755			num-lanes = <1>;
756			max-link-speed = <3>;
757			#address-cells = <3>;
758			#size-cells = <2>;
759
760			phys = <&pcie_phy0>;
761			phy-names = "pciephy";
762
763			ranges = <0x81000000 0x0 0x00000000 0x0 0x20200000 0x0 0x10000>,
764				 <0x82000000 0x0 0x20220000 0x0 0x20220000 0x0 0xfde0000>;
765
766			interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
767			interrupt-names = "msi";
768
769			#interrupt-cells = <1>;
770			interrupt-map-mask = <0 0 0 0x7>;
771			interrupt-map = <0 0 0 1 &intc 0 0 0 75 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
772					<0 0 0 2 &intc 0 0 0 78 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
773					<0 0 0 3 &intc 0 0 0 79 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
774					<0 0 0 4 &intc 0 0 0 83 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
775
776			clocks = <&gcc GCC_SYS_NOC_PCIE0_AXI_CLK>,
777				 <&gcc GCC_PCIE0_AXI_M_CLK>,
778				 <&gcc GCC_PCIE0_AXI_S_CLK>,
779				 <&gcc GCC_PCIE0_AXI_S_BRIDGE_CLK>,
780				 <&gcc PCIE0_RCHNG_CLK>;
781			clock-names = "iface",
782				      "axi_m",
783				      "axi_s",
784				      "axi_bridge",
785				      "rchng";
786
787			resets = <&gcc GCC_PCIE0_PIPE_ARES>,
788				 <&gcc GCC_PCIE0_SLEEP_ARES>,
789				 <&gcc GCC_PCIE0_CORE_STICKY_ARES>,
790				 <&gcc GCC_PCIE0_AXI_MASTER_ARES>,
791				 <&gcc GCC_PCIE0_AXI_SLAVE_ARES>,
792				 <&gcc GCC_PCIE0_AHB_ARES>,
793				 <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>,
794				 <&gcc GCC_PCIE0_AXI_SLAVE_STICKY_ARES>;
795			reset-names = "pipe",
796				      "sleep",
797				      "sticky",
798				      "axi_m",
799				      "axi_s",
800				      "ahb",
801				      "axi_m_sticky",
802				      "axi_s_sticky";
803
804			status = "disabled";
805		};
806	};
807
808	timer {
809		compatible = "arm,armv8-timer";
810		interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
811			     <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
812			     <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
813			     <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
814	};
815
816	wcss: wcss-smp2p {
817		compatible = "qcom,smp2p";
818		qcom,smem = <435>, <428>;
819
820		interrupt-parent = <&intc>;
821		interrupts = <GIC_SPI 322 IRQ_TYPE_EDGE_RISING>;
822
823		mboxes = <&apcs_glb 9>;
824
825		qcom,local-pid = <0>;
826		qcom,remote-pid = <1>;
827
828		wcss_smp2p_out: master-kernel {
829			qcom,entry-name = "master-kernel";
830			#qcom,smem-state-cells = <1>;
831		};
832
833		wcss_smp2p_in: slave-kernel {
834			qcom,entry-name = "slave-kernel";
835			interrupt-controller;
836			#interrupt-cells = <2>;
837		};
838	};
839};
840