blob: c51481405e7f8accb32252055a45a2f0e4917028 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Kumar Gala68de3082014-03-07 10:56:59 -06002/dts-v1/;
3
Sricharan R93241842018-08-03 19:40:15 +05304#include <dt-bindings/interrupt-controller/arm-gic.h>
Kumar Gala68de3082014-03-07 10:56:59 -06005#include <dt-bindings/clock/qcom,gcc-ipq806x.h>
Kenneth Westfieldf49cade2015-03-13 01:01:08 -07006#include <dt-bindings/clock/qcom,lcc-ipq806x.h>
Sricharan R93241842018-08-03 19:40:15 +05307#include <dt-bindings/gpio/gpio.h>
8#include <dt-bindings/reset/qcom,gcc-ipq806x.h>
Kumar Gala68de3082014-03-07 10:56:59 -06009#include <dt-bindings/soc/qcom,gsbi.h>
Sricharan Reea7f212018-06-20 14:53:39 +053010#include <dt-bindings/interrupt-controller/arm-gic.h>
Kumar Gala68de3082014-03-07 10:56:59 -060011
12/ {
Rob Herringabe60a32019-01-09 10:26:14 -060013 #address-cells = <1>;
14 #size-cells = <1>;
Kumar Gala68de3082014-03-07 10:56:59 -060015 model = "Qualcomm IPQ8064";
16 compatible = "qcom,ipq8064";
17 interrupt-parent = <&intc>;
18
19 cpus {
20 #address-cells = <1>;
21 #size-cells = <0>;
22
23 cpu@0 {
24 compatible = "qcom,krait";
25 enable-method = "qcom,kpss-acc-v1";
26 device_type = "cpu";
27 reg = <0>;
28 next-level-cache = <&L2>;
29 qcom,acc = <&acc0>;
30 qcom,saw = <&saw0>;
31 };
32
33 cpu@1 {
34 compatible = "qcom,krait";
35 enable-method = "qcom,kpss-acc-v1";
36 device_type = "cpu";
37 reg = <1>;
38 next-level-cache = <&L2>;
39 qcom,acc = <&acc1>;
40 qcom,saw = <&saw1>;
41 };
42
43 L2: l2-cache {
44 compatible = "cache";
45 cache-level = <2>;
46 };
47 };
48
Rob Herringabe60a32019-01-09 10:26:14 -060049 memory {
50 device_type = "memory";
51 reg = <0x0 0x0>;
52 };
53
Kumar Gala68de3082014-03-07 10:56:59 -060054 cpu-pmu {
55 compatible = "qcom,krait-pmu";
Sricharan Reea7f212018-06-20 14:53:39 +053056 interrupts = <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) |
57 IRQ_TYPE_LEVEL_HIGH)>;
Kumar Gala68de3082014-03-07 10:56:59 -060058 };
59
60 reserved-memory {
61 #address-cells = <1>;
62 #size-cells = <1>;
63 ranges;
64
65 nss@40000000 {
66 reg = <0x40000000 0x1000000>;
67 no-map;
68 };
69
70 smem@41000000 {
71 reg = <0x41000000 0x200000>;
72 no-map;
73 };
74 };
75
Mathieu Olivari4ba1c982015-02-20 18:19:35 -080076 clocks {
Stephen Boyd30fc4212016-01-06 17:41:51 -080077 cxo_board {
78 compatible = "fixed-clock";
79 #clock-cells = <0>;
Stephen Boyd06dbf462016-11-09 17:13:57 -080080 clock-frequency = <25000000>;
Stephen Boyd30fc4212016-01-06 17:41:51 -080081 };
82
83 pxo_board {
84 compatible = "fixed-clock";
85 #clock-cells = <0>;
Stephen Boyd06dbf462016-11-09 17:13:57 -080086 clock-frequency = <25000000>;
Stephen Boyd30fc4212016-01-06 17:41:51 -080087 };
88
Mathieu Olivari4ba1c982015-02-20 18:19:35 -080089 sleep_clk: sleep_clk {
90 compatible = "fixed-clock";
91 clock-frequency = <32768>;
92 #clock-cells = <0>;
93 };
94 };
95
Ansuel Smith51befb82020-03-19 23:44:24 +010096 firmware {
97 scm {
98 compatible = "qcom,scm-ipq806x", "qcom,scm";
99 };
100 };
101
Kumar Gala68de3082014-03-07 10:56:59 -0600102 soc: soc {
103 #address-cells = <1>;
104 #size-cells = <1>;
105 ranges;
106 compatible = "simple-bus";
107
Kenneth Westfieldf49cade2015-03-13 01:01:08 -0700108 lpass@28100000 {
109 compatible = "qcom,lpass-cpu";
110 status = "disabled";
111 clocks = <&lcc AHBIX_CLK>,
112 <&lcc MI2S_OSR_CLK>,
113 <&lcc MI2S_BIT_CLK>;
114 clock-names = "ahbix-clk",
115 "mi2s-osr-clk",
116 "mi2s-bit-clk";
Sricharan Reea7f212018-06-20 14:53:39 +0530117 interrupts = <GIC_SPI 85 IRQ_TYPE_EDGE_RISING>;
Kenneth Westfieldf49cade2015-03-13 01:01:08 -0700118 interrupt-names = "lpass-irq-lpaif";
119 reg = <0x28100000 0x10000>;
120 reg-names = "lpass-lpaif";
121 };
122
Kumar Gala68de3082014-03-07 10:56:59 -0600123 qcom_pinmux: pinmux@800000 {
124 compatible = "qcom,ipq8064-pinctrl";
125 reg = <0x800000 0x4000>;
126
127 gpio-controller;
Christian Lamparter8b99dc02020-01-08 13:54:55 +0100128 gpio-ranges = <&qcom_pinmux 0 0 69>;
Kumar Gala68de3082014-03-07 10:56:59 -0600129 #gpio-cells = <2>;
130 interrupt-controller;
131 #interrupt-cells = <2>;
Sricharan Reea7f212018-06-20 14:53:39 +0530132 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
Sricharan R93241842018-08-03 19:40:15 +0530133
134 pcie0_pins: pcie0_pinmux {
135 mux {
136 pins = "gpio3";
137 function = "pcie1_rst";
138 drive-strength = <12>;
139 bias-disable;
140 };
141 };
142
143 pcie1_pins: pcie1_pinmux {
144 mux {
145 pins = "gpio48";
146 function = "pcie2_rst";
147 drive-strength = <12>;
148 bias-disable;
149 };
150 };
151
152 pcie2_pins: pcie2_pinmux {
153 mux {
154 pins = "gpio63";
155 function = "pcie3_rst";
156 drive-strength = <12>;
157 bias-disable;
158 };
159 };
Sricharan R2e7a2c92018-08-03 19:40:17 +0530160
161 spi_pins: spi_pins {
162 mux {
163 pins = "gpio18", "gpio19", "gpio21";
164 function = "gsbi5";
165 drive-strength = <10>;
166 bias-none;
167 };
168 };
Sricharan R14e63a92018-08-03 19:40:19 +0530169
170 leds_pins: leds_pins {
171 mux {
172 pins = "gpio7", "gpio8", "gpio9",
173 "gpio26", "gpio53";
174 function = "gpio";
175 drive-strength = <2>;
176 bias-pull-down;
177 output-low;
178 };
179 };
180
181 buttons_pins: buttons_pins {
182 mux {
183 pins = "gpio54";
184 drive-strength = <2>;
185 bias-pull-up;
186 };
187 };
Kumar Gala68de3082014-03-07 10:56:59 -0600188 };
189
190 intc: interrupt-controller@2000000 {
191 compatible = "qcom,msm-qgic2";
192 interrupt-controller;
193 #interrupt-cells = <3>;
194 reg = <0x02000000 0x1000>,
195 <0x02002000 0x1000>;
196 };
197
198 timer@200a000 {
Matthew McClintock6e062692016-06-29 10:50:00 -0700199 compatible = "qcom,kpss-timer",
200 "qcom,kpss-wdt-ipq8064", "qcom,msm-timer";
Sricharan Reea7f212018-06-20 14:53:39 +0530201 interrupts = <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(2) |
202 IRQ_TYPE_EDGE_RISING)>,
203 <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(2) |
204 IRQ_TYPE_EDGE_RISING)>,
205 <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(2) |
206 IRQ_TYPE_EDGE_RISING)>,
207 <GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(2) |
208 IRQ_TYPE_EDGE_RISING)>,
209 <GIC_PPI 5 (GIC_CPU_MASK_SIMPLE(2) |
210 IRQ_TYPE_EDGE_RISING)>;
Kumar Gala68de3082014-03-07 10:56:59 -0600211 reg = <0x0200a000 0x100>;
212 clock-frequency = <25000000>,
213 <32768>;
Mathieu Olivari4ba1c982015-02-20 18:19:35 -0800214 clocks = <&sleep_clk>;
215 clock-names = "sleep";
Kumar Gala68de3082014-03-07 10:56:59 -0600216 cpu-offset = <0x80000>;
217 };
218
219 acc0: clock-controller@2088000 {
220 compatible = "qcom,kpss-acc-v1";
221 reg = <0x02088000 0x1000>, <0x02008000 0x1000>;
222 };
223
224 acc1: clock-controller@2098000 {
225 compatible = "qcom,kpss-acc-v1";
226 reg = <0x02098000 0x1000>, <0x02008000 0x1000>;
227 };
228
229 saw0: regulator@2089000 {
230 compatible = "qcom,saw2";
231 reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
232 regulator;
233 };
234
235 saw1: regulator@2099000 {
236 compatible = "qcom,saw2";
237 reg = <0x02099000 0x1000>, <0x02009000 0x1000>;
238 regulator;
239 };
240
241 gsbi2: gsbi@12480000 {
242 compatible = "qcom,gsbi-v1.0.0";
Andy Gross4d9b7662015-02-09 16:01:09 -0600243 cell-index = <2>;
Kumar Gala68de3082014-03-07 10:56:59 -0600244 reg = <0x12480000 0x100>;
245 clocks = <&gcc GSBI2_H_CLK>;
246 clock-names = "iface";
247 #address-cells = <1>;
248 #size-cells = <1>;
249 ranges;
250 status = "disabled";
251
Andy Gross4d9b7662015-02-09 16:01:09 -0600252 syscon-tcsr = <&tcsr>;
253
Kumar Gala68de3082014-03-07 10:56:59 -0600254 serial@12490000 {
255 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
256 reg = <0x12490000 0x1000>,
257 <0x12480000 0x1000>;
Sricharan Reea7f212018-06-20 14:53:39 +0530258 interrupts = <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>;
Kumar Gala68de3082014-03-07 10:56:59 -0600259 clocks = <&gcc GSBI2_UART_CLK>, <&gcc GSBI2_H_CLK>;
260 clock-names = "core", "iface";
261 status = "disabled";
262 };
263
264 i2c@124a0000 {
265 compatible = "qcom,i2c-qup-v1.1.1";
266 reg = <0x124a0000 0x1000>;
Sricharan Reea7f212018-06-20 14:53:39 +0530267 interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>;
Kumar Gala68de3082014-03-07 10:56:59 -0600268
269 clocks = <&gcc GSBI2_QUP_CLK>, <&gcc GSBI2_H_CLK>;
270 clock-names = "core", "iface";
271 status = "disabled";
272
273 #address-cells = <1>;
274 #size-cells = <0>;
275 };
276
277 };
278
279 gsbi4: gsbi@16300000 {
280 compatible = "qcom,gsbi-v1.0.0";
Andy Gross4d9b7662015-02-09 16:01:09 -0600281 cell-index = <4>;
Kumar Gala68de3082014-03-07 10:56:59 -0600282 reg = <0x16300000 0x100>;
283 clocks = <&gcc GSBI4_H_CLK>;
284 clock-names = "iface";
285 #address-cells = <1>;
286 #size-cells = <1>;
287 ranges;
288 status = "disabled";
289
Andy Gross4d9b7662015-02-09 16:01:09 -0600290 syscon-tcsr = <&tcsr>;
291
Stephen Boyd10bfcfe2015-06-16 14:31:44 -0700292 gsbi4_serial: serial@16340000 {
Kumar Gala68de3082014-03-07 10:56:59 -0600293 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
294 reg = <0x16340000 0x1000>,
295 <0x16300000 0x1000>;
Sricharan Reea7f212018-06-20 14:53:39 +0530296 interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
Kumar Gala68de3082014-03-07 10:56:59 -0600297 clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>;
298 clock-names = "core", "iface";
299 status = "disabled";
300 };
301
302 i2c@16380000 {
303 compatible = "qcom,i2c-qup-v1.1.1";
304 reg = <0x16380000 0x1000>;
Sricharan Reea7f212018-06-20 14:53:39 +0530305 interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
Kumar Gala68de3082014-03-07 10:56:59 -0600306
307 clocks = <&gcc GSBI4_QUP_CLK>, <&gcc GSBI4_H_CLK>;
308 clock-names = "core", "iface";
309 status = "disabled";
310
311 #address-cells = <1>;
312 #size-cells = <0>;
313 };
314 };
315
316 gsbi5: gsbi@1a200000 {
317 compatible = "qcom,gsbi-v1.0.0";
Andy Gross4d9b7662015-02-09 16:01:09 -0600318 cell-index = <5>;
Kumar Gala68de3082014-03-07 10:56:59 -0600319 reg = <0x1a200000 0x100>;
320 clocks = <&gcc GSBI5_H_CLK>;
321 clock-names = "iface";
322 #address-cells = <1>;
323 #size-cells = <1>;
324 ranges;
325 status = "disabled";
326
Andy Gross4d9b7662015-02-09 16:01:09 -0600327 syscon-tcsr = <&tcsr>;
328
Kumar Gala68de3082014-03-07 10:56:59 -0600329 serial@1a240000 {
330 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
331 reg = <0x1a240000 0x1000>,
332 <0x1a200000 0x1000>;
Sricharan Reea7f212018-06-20 14:53:39 +0530333 interrupts = <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
Kumar Gala68de3082014-03-07 10:56:59 -0600334 clocks = <&gcc GSBI5_UART_CLK>, <&gcc GSBI5_H_CLK>;
335 clock-names = "core", "iface";
336 status = "disabled";
337 };
338
339 i2c@1a280000 {
340 compatible = "qcom,i2c-qup-v1.1.1";
341 reg = <0x1a280000 0x1000>;
Sricharan Reea7f212018-06-20 14:53:39 +0530342 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
Kumar Gala68de3082014-03-07 10:56:59 -0600343
344 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
345 clock-names = "core", "iface";
346 status = "disabled";
347
348 #address-cells = <1>;
349 #size-cells = <0>;
350 };
351
352 spi@1a280000 {
353 compatible = "qcom,spi-qup-v1.1.1";
354 reg = <0x1a280000 0x1000>;
Sricharan Reea7f212018-06-20 14:53:39 +0530355 interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
Kumar Gala68de3082014-03-07 10:56:59 -0600356
357 clocks = <&gcc GSBI5_QUP_CLK>, <&gcc GSBI5_H_CLK>;
358 clock-names = "core", "iface";
359 status = "disabled";
360
361 #address-cells = <1>;
362 #size-cells = <0>;
363 };
364 };
365
Sven Eckelmann5533b0c2017-04-28 12:10:36 +0200366 gsbi7: gsbi@16600000 {
367 status = "disabled";
368 compatible = "qcom,gsbi-v1.0.0";
369 cell-index = <7>;
370 reg = <0x16600000 0x100>;
371 clocks = <&gcc GSBI7_H_CLK>;
372 clock-names = "iface";
373 #address-cells = <1>;
374 #size-cells = <1>;
375 ranges;
376 syscon-tcsr = <&tcsr>;
377
378 gsbi7_serial: serial@16640000 {
379 compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
380 reg = <0x16640000 0x1000>,
381 <0x16600000 0x1000>;
Sricharan Reea7f212018-06-20 14:53:39 +0530382 interrupts = <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>;
Sven Eckelmann5533b0c2017-04-28 12:10:36 +0200383 clocks = <&gcc GSBI7_UART_CLK>, <&gcc GSBI7_H_CLK>;
384 clock-names = "core", "iface";
385 status = "disabled";
386 };
387 };
388
Kumar Galae5124482014-09-23 13:21:41 -0500389 sata_phy: sata-phy@1b400000 {
390 compatible = "qcom,ipq806x-sata-phy";
391 reg = <0x1b400000 0x200>;
392
393 clocks = <&gcc SATA_PHY_CFG_CLK>;
394 clock-names = "cfg";
395
396 #phy-cells = <0>;
397 status = "disabled";
398 };
399
400 sata@29000000 {
401 compatible = "qcom,ipq806x-ahci", "generic-ahci";
402 reg = <0x29000000 0x180>;
403
Sricharan Reea7f212018-06-20 14:53:39 +0530404 interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
Kumar Galae5124482014-09-23 13:21:41 -0500405
406 clocks = <&gcc SFAB_SATA_S_H_CLK>,
407 <&gcc SATA_H_CLK>,
408 <&gcc SATA_A_CLK>,
409 <&gcc SATA_RXOOB_CLK>,
410 <&gcc SATA_PMALIVE_CLK>;
411 clock-names = "slave_face", "iface", "core",
412 "rxoob", "pmalive";
413
414 assigned-clocks = <&gcc SATA_RXOOB_CLK>, <&gcc SATA_PMALIVE_CLK>;
415 assigned-clock-rates = <100000000>, <100000000>;
416
417 phys = <&sata_phy>;
418 phy-names = "sata-phy";
419 status = "disabled";
420 };
421
Kumar Gala68de3082014-03-07 10:56:59 -0600422 qcom,ssbi@500000 {
423 compatible = "qcom,ssbi";
424 reg = <0x00500000 0x1000>;
425 qcom,controller-type = "pmic-arbiter";
426 };
427
Jonathan McDowell5de47772020-06-16 18:15:54 +0100428 qfprom: qfprom@700000 {
429 compatible = "qcom,qfprom";
430 reg = <0x00700000 0x1000>;
431 #address-cells = <1>;
432 #size-cells = <1>;
433 };
434
Kumar Gala68de3082014-03-07 10:56:59 -0600435 gcc: clock-controller@900000 {
436 compatible = "qcom,gcc-ipq8064";
437 reg = <0x00900000 0x4000>;
438 #clock-cells = <1>;
439 #reset-cells = <1>;
440 };
Andy Gross4d9b7662015-02-09 16:01:09 -0600441
442 tcsr: syscon@1a400000 {
443 compatible = "qcom,tcsr-ipq8064", "syscon";
444 reg = <0x1a400000 0x100>;
445 };
Kumar Gala1e1177b2015-01-28 13:36:12 -0800446
447 lcc: clock-controller@28000000 {
448 compatible = "qcom,lcc-ipq8064";
449 reg = <0x28000000 0x1000>;
450 #clock-cells = <1>;
451 #reset-cells = <1>;
452 };
453
Sricharan R93241842018-08-03 19:40:15 +0530454 pcie0: pci@1b500000 {
455 compatible = "qcom,pcie-ipq8064";
456 reg = <0x1b500000 0x1000
457 0x1b502000 0x80
458 0x1b600000 0x100
459 0x0ff00000 0x100000>;
460 reg-names = "dbi", "elbi", "parf", "config";
461 device_type = "pci";
462 linux,pci-domain = <0>;
463 bus-range = <0x00 0xff>;
464 num-lanes = <1>;
465 #address-cells = <3>;
466 #size-cells = <2>;
467
468 ranges = <0x81000000 0 0x0fe00000 0x0fe00000 0 0x00100000 /* downstream I/O */
469 0x82000000 0 0x08000000 0x08000000 0 0x07e00000>; /* non-prefetchable memory */
470
471 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
472 interrupt-names = "msi";
473 #interrupt-cells = <1>;
474 interrupt-map-mask = <0 0 0 0x7>;
475 interrupt-map = <0 0 0 1 &intc 0 36 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
476 <0 0 0 2 &intc 0 37 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
477 <0 0 0 3 &intc 0 38 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
478 <0 0 0 4 &intc 0 39 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
479
480 clocks = <&gcc PCIE_A_CLK>,
481 <&gcc PCIE_H_CLK>,
482 <&gcc PCIE_PHY_CLK>,
483 <&gcc PCIE_AUX_CLK>,
484 <&gcc PCIE_ALT_REF_CLK>;
485 clock-names = "core", "iface", "phy", "aux", "ref";
486
487 assigned-clocks = <&gcc PCIE_ALT_REF_CLK>;
488 assigned-clock-rates = <100000000>;
489
490 resets = <&gcc PCIE_ACLK_RESET>,
491 <&gcc PCIE_HCLK_RESET>,
492 <&gcc PCIE_POR_RESET>,
493 <&gcc PCIE_PCI_RESET>,
494 <&gcc PCIE_PHY_RESET>,
495 <&gcc PCIE_EXT_RESET>;
496 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
497
498 pinctrl-0 = <&pcie0_pins>;
499 pinctrl-names = "default";
500
501 status = "disabled";
502 perst-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_LOW>;
503 };
504
505 pcie1: pci@1b700000 {
506 compatible = "qcom,pcie-ipq8064";
507 reg = <0x1b700000 0x1000
508 0x1b702000 0x80
509 0x1b800000 0x100
510 0x31f00000 0x100000>;
511 reg-names = "dbi", "elbi", "parf", "config";
512 device_type = "pci";
513 linux,pci-domain = <1>;
514 bus-range = <0x00 0xff>;
515 num-lanes = <1>;
516 #address-cells = <3>;
517 #size-cells = <2>;
518
519 ranges = <0x81000000 0 0x31e00000 0x31e00000 0 0x00100000 /* downstream I/O */
520 0x82000000 0 0x2e000000 0x2e000000 0 0x03e00000>; /* non-prefetchable memory */
521
522 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
523 interrupt-names = "msi";
524 #interrupt-cells = <1>;
525 interrupt-map-mask = <0 0 0 0x7>;
526 interrupt-map = <0 0 0 1 &intc 0 58 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
527 <0 0 0 2 &intc 0 59 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
528 <0 0 0 3 &intc 0 60 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
529 <0 0 0 4 &intc 0 61 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
530
531 clocks = <&gcc PCIE_1_A_CLK>,
532 <&gcc PCIE_1_H_CLK>,
533 <&gcc PCIE_1_PHY_CLK>,
534 <&gcc PCIE_1_AUX_CLK>,
535 <&gcc PCIE_1_ALT_REF_CLK>;
536 clock-names = "core", "iface", "phy", "aux", "ref";
537
538 assigned-clocks = <&gcc PCIE_1_ALT_REF_CLK>;
539 assigned-clock-rates = <100000000>;
540
541 resets = <&gcc PCIE_1_ACLK_RESET>,
542 <&gcc PCIE_1_HCLK_RESET>,
543 <&gcc PCIE_1_POR_RESET>,
544 <&gcc PCIE_1_PCI_RESET>,
545 <&gcc PCIE_1_PHY_RESET>,
546 <&gcc PCIE_1_EXT_RESET>;
547 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
548
549 pinctrl-0 = <&pcie1_pins>;
550 pinctrl-names = "default";
551
552 status = "disabled";
553 perst-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_LOW>;
554 };
555
556 pcie2: pci@1b900000 {
557 compatible = "qcom,pcie-ipq8064";
558 reg = <0x1b900000 0x1000
559 0x1b902000 0x80
560 0x1ba00000 0x100
561 0x35f00000 0x100000>;
562 reg-names = "dbi", "elbi", "parf", "config";
563 device_type = "pci";
564 linux,pci-domain = <2>;
565 bus-range = <0x00 0xff>;
566 num-lanes = <1>;
567 #address-cells = <3>;
568 #size-cells = <2>;
569
570 ranges = <0x81000000 0 0x35e00000 0x35e00000 0 0x00100000 /* downstream I/O */
571 0x82000000 0 0x32000000 0x32000000 0 0x03e00000>; /* non-prefetchable memory */
572
573 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
574 interrupt-names = "msi";
575 #interrupt-cells = <1>;
576 interrupt-map-mask = <0 0 0 0x7>;
577 interrupt-map = <0 0 0 1 &intc 0 72 IRQ_TYPE_LEVEL_HIGH>, /* int_a */
578 <0 0 0 2 &intc 0 73 IRQ_TYPE_LEVEL_HIGH>, /* int_b */
579 <0 0 0 3 &intc 0 74 IRQ_TYPE_LEVEL_HIGH>, /* int_c */
580 <0 0 0 4 &intc 0 75 IRQ_TYPE_LEVEL_HIGH>; /* int_d */
581
582 clocks = <&gcc PCIE_2_A_CLK>,
583 <&gcc PCIE_2_H_CLK>,
584 <&gcc PCIE_2_PHY_CLK>,
585 <&gcc PCIE_2_AUX_CLK>,
586 <&gcc PCIE_2_ALT_REF_CLK>;
587 clock-names = "core", "iface", "phy", "aux", "ref";
588
589 assigned-clocks = <&gcc PCIE_2_ALT_REF_CLK>;
590 assigned-clock-rates = <100000000>;
591
592 resets = <&gcc PCIE_2_ACLK_RESET>,
593 <&gcc PCIE_2_HCLK_RESET>,
594 <&gcc PCIE_2_POR_RESET>,
595 <&gcc PCIE_2_PCI_RESET>,
596 <&gcc PCIE_2_PHY_RESET>,
597 <&gcc PCIE_2_EXT_RESET>;
598 reset-names = "axi", "ahb", "por", "pci", "phy", "ext";
599
600 pinctrl-0 = <&pcie2_pins>;
601 pinctrl-names = "default";
602
603 status = "disabled";
604 perst-gpio = <&qcom_pinmux 63 GPIO_ACTIVE_LOW>;
605 };
Sricharan Rf14c5582018-08-03 19:40:16 +0530606
Jonathan McDowell6acd6ad2020-05-18 19:09:49 +0100607 nss_common: syscon@03000000 {
608 compatible = "syscon";
609 reg = <0x03000000 0x0000FFFF>;
610 };
611
612 qsgmii_csr: syscon@1bb00000 {
613 compatible = "syscon";
614 reg = <0x1bb00000 0x000001FF>;
615 };
616
617 stmmac_axi_setup: stmmac-axi-config {
618 snps,wr_osr_lmt = <7>;
619 snps,rd_osr_lmt = <7>;
620 snps,blen = <16 0 0 0 0 0 0>;
621 };
622
623 gmac0: ethernet@37000000 {
624 device_type = "network";
625 compatible = "qcom,ipq806x-gmac";
626 reg = <0x37000000 0x200000>;
627 interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
628 interrupt-names = "macirq";
629
630 snps,axi-config = <&stmmac_axi_setup>;
631 snps,pbl = <32>;
632 snps,aal = <1>;
633
634 qcom,nss-common = <&nss_common>;
635 qcom,qsgmii-csr = <&qsgmii_csr>;
636
637 clocks = <&gcc GMAC_CORE1_CLK>;
638 clock-names = "stmmaceth";
639
640 resets = <&gcc GMAC_CORE1_RESET>;
641 reset-names = "stmmaceth";
642
643 status = "disabled";
644 };
645
646 gmac1: ethernet@37200000 {
647 device_type = "network";
648 compatible = "qcom,ipq806x-gmac";
649 reg = <0x37200000 0x200000>;
650 interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
651 interrupt-names = "macirq";
652
653 snps,axi-config = <&stmmac_axi_setup>;
654 snps,pbl = <32>;
655 snps,aal = <1>;
656
657 qcom,nss-common = <&nss_common>;
658 qcom,qsgmii-csr = <&qsgmii_csr>;
659
660 clocks = <&gcc GMAC_CORE2_CLK>;
661 clock-names = "stmmaceth";
662
663 resets = <&gcc GMAC_CORE2_RESET>;
664 reset-names = "stmmaceth";
665
666 status = "disabled";
667 };
668
669 gmac2: ethernet@37400000 {
670 device_type = "network";
671 compatible = "qcom,ipq806x-gmac";
672 reg = <0x37400000 0x200000>;
673 interrupts = <GIC_SPI 226 IRQ_TYPE_LEVEL_HIGH>;
674 interrupt-names = "macirq";
675
676 snps,axi-config = <&stmmac_axi_setup>;
677 snps,pbl = <32>;
678 snps,aal = <1>;
679
680 qcom,nss-common = <&nss_common>;
681 qcom,qsgmii-csr = <&qsgmii_csr>;
682
683 clocks = <&gcc GMAC_CORE3_CLK>;
684 clock-names = "stmmaceth";
685
686 resets = <&gcc GMAC_CORE3_RESET>;
687 reset-names = "stmmaceth";
688
689 status = "disabled";
690 };
691
692 gmac3: ethernet@37600000 {
693 device_type = "network";
694 compatible = "qcom,ipq806x-gmac";
695 reg = <0x37600000 0x200000>;
696 interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_HIGH>;
697 interrupt-names = "macirq";
698
699 snps,axi-config = <&stmmac_axi_setup>;
700 snps,pbl = <32>;
701 snps,aal = <1>;
702
703 qcom,nss-common = <&nss_common>;
704 qcom,qsgmii-csr = <&qsgmii_csr>;
705
706 clocks = <&gcc GMAC_CORE4_CLK>;
707 clock-names = "stmmaceth";
708
709 resets = <&gcc GMAC_CORE4_RESET>;
710 reset-names = "stmmaceth";
711
712 status = "disabled";
713 };
714
Sricharan Rf14c5582018-08-03 19:40:16 +0530715 vsdcc_fixed: vsdcc-regulator {
716 compatible = "regulator-fixed";
717 regulator-name = "SDCC Power";
718 regulator-min-microvolt = <3300000>;
719 regulator-max-microvolt = <3300000>;
720 regulator-always-on;
721 };
722
723 sdcc1bam:dma@12402000 {
724 compatible = "qcom,bam-v1.3.0";
725 reg = <0x12402000 0x8000>;
726 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
727 clocks = <&gcc SDC1_H_CLK>;
728 clock-names = "bam_clk";
729 #dma-cells = <1>;
730 qcom,ee = <0>;
731 };
732
733 sdcc3bam:dma@12182000 {
734 compatible = "qcom,bam-v1.3.0";
735 reg = <0x12182000 0x8000>;
736 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
737 clocks = <&gcc SDC3_H_CLK>;
738 clock-names = "bam_clk";
739 #dma-cells = <1>;
740 qcom,ee = <0>;
741 };
742
743 amba {
744 compatible = "simple-bus";
745 #address-cells = <1>;
746 #size-cells = <1>;
747 ranges;
748
749 sdcc@12400000 {
750 status = "disabled";
751 compatible = "arm,pl18x", "arm,primecell";
752 arm,primecell-periphid = <0x00051180>;
753 reg = <0x12400000 0x2000>;
754 interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>;
755 interrupt-names = "cmd_irq";
756 clocks = <&gcc SDC1_CLK>, <&gcc SDC1_H_CLK>;
757 clock-names = "mclk", "apb_pclk";
758 bus-width = <8>;
759 max-frequency = <96000000>;
760 non-removable;
761 cap-sd-highspeed;
762 cap-mmc-highspeed;
763 mmc-ddr-1_8v;
764 vmmc-supply = <&vsdcc_fixed>;
765 dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
766 dma-names = "tx", "rx";
767 };
768
769 sdcc@12180000 {
770 compatible = "arm,pl18x", "arm,primecell";
771 arm,primecell-periphid = <0x00051180>;
772 status = "disabled";
773 reg = <0x12180000 0x2000>;
774 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
775 interrupt-names = "cmd_irq";
776 clocks = <&gcc SDC3_CLK>, <&gcc SDC3_H_CLK>;
777 clock-names = "mclk", "apb_pclk";
778 bus-width = <8>;
779 cap-sd-highspeed;
780 cap-mmc-highspeed;
781 max-frequency = <192000000>;
782 #mmc-ddr-1_8v;
783 sd-uhs-sdr104;
784 sd-uhs-ddr50;
785 vqmmc-supply = <&vsdcc_fixed>;
786 dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
787 dma-names = "tx", "rx";
788 };
789 };
Kumar Gala68de3082014-03-07 10:56:59 -0600790 };
791};