ipq4019: fix even more wrong reference to USB node
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-xx8300.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /*
4 * Device Tree Source for Linksys xx8300 (Dallas)
5 *
6 * Copyright (C) 2019, 2022 Jeff Kletsky
7 * Updated 2020 Hans Geiblinger
8 *
9 */
10
11 #include "qcom-ipq4019.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/soc/qcom,tcsr.h>
15
16 //
17 // OEM U-Boot provides either
18 // init=/sbin/init rootfstype=ubifs ubi.mtd=11,2048 \
19 // root=ubi0:ubifs rootwait rw
20 // or the same with ubi.mtd=13,2048
21 //
22
23 / {
24 chosen {
25 bootargs-append = " root=/dev/ubiblock0_0 rootfstype=squashfs ro";
26 };
27
28
29 soc {
30 rng@22000 {
31 status = "okay";
32 };
33
34 mdio@90000 {
35 status = "okay";
36 };
37
38 tcsr@1949000 {
39 compatible = "qcom,tcsr";
40 reg = <0x1949000 0x100>;
41 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
42 };
43
44 tcsr@194b000 {
45 compatible = "qcom,tcsr";
46 reg = <0x194b000 0x100>;
47 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
48 };
49
50 ess_tcsr@1953000 {
51 compatible = "qcom,tcsr";
52 reg = <0x1953000 0x1000>;
53 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
54 };
55
56 tcsr@1957000 {
57 compatible = "qcom,tcsr";
58 reg = <0x1957000 0x100>;
59 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
60 };
61
62 crypto@8e3a000 {
63 status = "okay";
64 };
65
66 watchdog@b017000 {
67 status = "okay";
68 };
69 };
70
71 regulator-usb-vbus {
72 compatible = "regulator-fixed";
73 regulator-name = "USB_VBUS";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
76 regulator-always-on;
77 regulator-boot-on;
78 gpio = <&tlmm 68 GPIO_ACTIVE_LOW>;
79 };
80 };
81
82
83 &blsp_dma {
84 status = "okay";
85 };
86
87 &blsp1_uart1 {
88 status = "okay";
89 pinctrl-0 = <&serial_0_pins>;
90 pinctrl-names = "default";
91
92 };
93
94 &cryptobam {
95 status = "okay";
96 };
97
98 &nand {
99 status = "okay";
100
101 pinctrl-0 = <&nand_pins>;
102 pinctrl-names = "default";
103
104 nand@0 {
105 partitions {
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 partition@0 {
111 label = "sbl1";
112 reg = <0x0 0x100000>;
113 read-only;
114 };
115
116 partition@100000 {
117 label = "mibib";
118 reg = <0x100000 0x100000>;
119 read-only;
120 };
121
122 partition@200000 {
123 label = "qsee";
124 reg = <0x200000 0x100000>;
125 read-only;
126 };
127
128 partition@300000 {
129 label = "cdt";
130 reg = <0x300000 0x80000>;
131 read-only;
132 };
133
134 partition@380000 {
135 label = "appsblenv";
136 reg = <0x380000 0x80000>;
137 read-only;
138 };
139
140 partition@400000 {
141 label = "ART";
142 reg = <0x400000 0x80000>;
143 read-only;
144 };
145
146 partition@480000 {
147 label = "appsbl";
148 reg = <0x480000 0x200000>;
149 read-only;
150 };
151
152 partition@680000 {
153 label = "u_env";
154 reg = <0x680000 0x80000>;
155 // writable -- U-Boot environment
156 };
157
158 partition@700000 {
159 label = "s_env";
160 reg = <0x700000 0x40000>;
161 // writable -- Boot counter records
162 };
163
164 partition@740000 {
165 label = "devinfo";
166 reg = <0x740000 0x40000>;
167 read-only;
168 };
169
170 partition@780000 {
171 label = "kernel";
172 reg = <0x780000 0x5800000>;
173 };
174
175 partition@c80000 {
176 label = "rootfs";
177 reg = <0xc80000 0x5300000>;
178 };
179
180 partition@5f80000 {
181 label = "alt_kernel";
182 reg = <0x5f80000 0x5800000>;
183 };
184
185 partition@6480000 {
186 label = "alt_rootfs";
187 reg = <0x6480000 0x5300000>;
188 };
189
190 partition@b780000 {
191 label = "sysdiag";
192 reg = <0xb780000 0x100000>;
193 read-only;
194 };
195
196 partition@b880000 {
197 label = "syscfg";
198 reg = <0xb880000 0x4680000>;
199 read-only;
200 };
201 };
202 };
203 };
204
205 &pcie0 {
206 status = "okay";
207
208 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
209 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
210
211 bridge@0,0 {
212 reg = <0x00000000 0 0 0 0>;
213 #address-cells = <3>;
214 #size-cells = <2>;
215 ranges;
216
217 wifi2: wifi@1,0 {
218 compatible = "qcom,ath10k";
219 reg = <0x00010000 0 0 0 0>;
220 };
221 };
222 };
223
224 &qpic_bam {
225 status = "okay";
226 };
227
228 &tlmm {
229 serial_0_pins: serial0-pinmux {
230 pins = "gpio16", "gpio17";
231 function = "blsp_uart0";
232 bias-disable;
233 };
234
235 nand_pins: nand_pins {
236 pullups {
237 pins = "gpio53", "gpio58", "gpio59";
238 function = "qpic";
239 bias-pull-up;
240 };
241
242 // gpio61 controls led_usb
243
244 pulldowns {
245 pins = "gpio55", "gpio56", "gpio57",
246 "gpio60", "gpio62", "gpio63",
247 "gpio64", "gpio65", "gpio66",
248 "gpio67", "gpio69";
249 function = "qpic";
250 bias-pull-down;
251 };
252 };
253 };
254
255 &usb2_hs_phy {
256 status = "okay";
257 };
258
259 &usb2 {
260 status = "okay";
261
262 usb@6000000 {
263 #address-cells = <1>;
264 #size-cells = <0>;
265
266 usb2_port1: port@1 {
267 reg = <1>;
268 #trigger-source-cells = <0>;
269 };
270 };
271 };
272
273 &usb3_hs_phy {
274 status = "okay";
275 };
276
277 &usb3_ss_phy {
278 status = "okay";
279 };
280
281 &usb3 {
282 status = "okay";
283 };
284
285 &usb3_dwc {
286 #address-cells = <1>;
287 #size-cells = <0>;
288
289 usb3_port1: port@1 {
290 reg = <1>;
291 #trigger-source-cells = <0>;
292 };
293
294 usb3_port2: port@2 {
295 reg = <2>;
296 #trigger-source-cells = <0>;
297 };
298 };
299
300 &gmac {
301 status = "okay";
302 };
303
304 &switch {
305 status = "okay";
306 };
307
308 &swport1 {
309 status = "okay";
310 };
311
312 &swport2 {
313 status = "okay";
314 };
315
316 &swport3 {
317 status = "okay";
318 };
319
320 &swport4 {
321 status = "okay";
322 };
323
324 &swport5 {
325 status = "okay";
326 };