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