141ea604425a5e52cd9e4e5c270635c1757c5c9e
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / 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 usb2@60f8800 {
63 status = "okay";
64
65 dwc3@6000000 {
66 #address-cells = <1>;
67 #size-cells = <0>;
68
69 usb2_port1: port@1 {
70 reg = <1>;
71 #trigger-source-cells = <0>;
72 };
73 };
74 };
75
76 usb3@8af8800 {
77 status = "okay";
78
79 dwc3@8a00000 {
80 #address-cells = <1>;
81 #size-cells = <0>;
82
83 usb3_port1: port@1 {
84 reg = <1>;
85 #trigger-source-cells = <0>;
86 };
87
88 usb3_port2: port@2 {
89 reg = <2>;
90 #trigger-source-cells = <0>;
91 };
92 };
93 };
94
95 crypto@8e3a000 {
96 status = "okay";
97 };
98
99 watchdog@b017000 {
100 status = "okay";
101 };
102 };
103
104 regulator-usb-vbus {
105 compatible = "regulator-fixed";
106 regulator-name = "USB_VBUS";
107 regulator-min-microvolt = <5000000>;
108 regulator-max-microvolt = <5000000>;
109 regulator-always-on;
110 regulator-boot-on;
111 gpio = <&tlmm 68 GPIO_ACTIVE_LOW>;
112 };
113 };
114
115
116 &blsp_dma {
117 status = "okay";
118 };
119
120 &blsp1_uart1 {
121 status = "okay";
122 pinctrl-0 = <&serial_0_pins>;
123 pinctrl-names = "default";
124
125 };
126
127 &cryptobam {
128 status = "okay";
129 };
130
131 &nand {
132 status = "okay";
133
134 pinctrl-0 = <&nand_pins>;
135 pinctrl-names = "default";
136
137 nand@0 {
138 partitions {
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
141 #size-cells = <1>;
142
143 partition@0 {
144 label = "sbl1";
145 reg = <0x0 0x100000>;
146 read-only;
147 };
148
149 partition@100000 {
150 label = "mibib";
151 reg = <0x100000 0x100000>;
152 read-only;
153 };
154
155 partition@200000 {
156 label = "qsee";
157 reg = <0x200000 0x100000>;
158 read-only;
159 };
160
161 partition@300000 {
162 label = "cdt";
163 reg = <0x300000 0x80000>;
164 read-only;
165 };
166
167 partition@380000 {
168 label = "appsblenv";
169 reg = <0x380000 0x80000>;
170 read-only;
171 };
172
173 partition@400000 {
174 label = "ART";
175 reg = <0x400000 0x80000>;
176 read-only;
177 };
178
179 partition@480000 {
180 label = "appsbl";
181 reg = <0x480000 0x200000>;
182 read-only;
183 };
184
185 partition@680000 {
186 label = "u_env";
187 reg = <0x680000 0x80000>;
188 // writable -- U-Boot environment
189 };
190
191 partition@700000 {
192 label = "s_env";
193 reg = <0x700000 0x40000>;
194 // writable -- Boot counter records
195 };
196
197 partition@740000 {
198 label = "devinfo";
199 reg = <0x740000 0x40000>;
200 read-only;
201 };
202
203 partition@780000 {
204 label = "kernel";
205 reg = <0x780000 0x5800000>;
206 };
207
208 partition@c80000 {
209 label = "rootfs";
210 reg = <0xc80000 0x5300000>;
211 };
212
213 partition@5f80000 {
214 label = "alt_kernel";
215 reg = <0x5f80000 0x5800000>;
216 };
217
218 partition@6480000 {
219 label = "alt_rootfs";
220 reg = <0x6480000 0x5300000>;
221 };
222
223 partition@b780000 {
224 label = "sysdiag";
225 reg = <0xb780000 0x100000>;
226 read-only;
227 };
228
229 partition@b880000 {
230 label = "syscfg";
231 reg = <0xb880000 0x4680000>;
232 read-only;
233 };
234 };
235 };
236 };
237
238 &pcie0 {
239 status = "okay";
240
241 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
242 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
243
244 bridge@0,0 {
245 reg = <0x00000000 0 0 0 0>;
246 #address-cells = <3>;
247 #size-cells = <2>;
248 ranges;
249
250 wifi2: wifi@1,0 {
251 compatible = "qcom,ath10k";
252 reg = <0x00010000 0 0 0 0>;
253 };
254 };
255 };
256
257 &qpic_bam {
258 status = "okay";
259 };
260
261 &tlmm {
262 serial_0_pins: serial0-pinmux {
263 pins = "gpio16", "gpio17";
264 function = "blsp_uart0";
265 bias-disable;
266 };
267
268 nand_pins: nand_pins {
269 pullups {
270 pins = "gpio53", "gpio58", "gpio59";
271 function = "qpic";
272 bias-pull-up;
273 };
274
275 // gpio61 controls led_usb
276
277 pulldowns {
278 pins = "gpio55", "gpio56", "gpio57",
279 "gpio60", "gpio62", "gpio63",
280 "gpio64", "gpio65", "gpio66",
281 "gpio67", "gpio69";
282 function = "qpic";
283 bias-pull-down;
284 };
285 };
286 };
287
288 &usb2_hs_phy {
289 status = "okay";
290 };
291
292 &usb3_hs_phy {
293 status = "okay";
294 };
295
296 &usb3_ss_phy {
297 status = "okay";
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 };