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-ipq4018-gl-ap1300.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "GL.iNet GL-AP1300";
11 compatible = "glinet,gl-ap1300";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 memory {
21 device_type = "memory";
22 reg = <0x80000000 0x10000000>;
23 };
24
25 chosen {
26 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
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 /* select hostmode */
46 compatible = "qcom,tcsr";
47 reg = <0x194b000 0x100>;
48 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
49 status = "okay";
50 };
51
52 ess_tcsr@1953000 {
53 compatible = "qcom,tcsr";
54 reg = <0x1953000 0x1000>;
55 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
56 };
57
58 tcsr@1957000 {
59 compatible = "qcom,tcsr";
60 reg = <0x1957000 0x100>;
61 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
62 };
63
64 crypto@8e3a000 {
65 status = "okay";
66 };
67
68 watchdog@b017000 {
69 status = "okay";
70 };
71 };
72
73 keys {
74 compatible = "gpio-keys";
75
76 reset {
77 label = "reset";
78 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_RESTART>;
80 };
81 };
82
83 leds {
84 compatible = "gpio-leds";
85
86 led_power: power {
87 function = LED_FUNCTION_POWER;
88 color = <LED_COLOR_ID_WHITE>;
89 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
90 default-state = "on";
91 };
92
93 wan {
94 function = LED_FUNCTION_WAN;
95 color = <LED_COLOR_ID_WHITE>;
96 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
97 };
98 };
99 };
100
101 &blsp_dma {
102 status = "okay";
103 };
104
105 &cryptobam {
106 status = "okay";
107 };
108
109 &blsp1_spi1 {
110 status = "okay";
111
112 pinctrl-0 = <&spi0_pins>;
113 pinctrl-names = "default";
114 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 5 GPIO_ACTIVE_HIGH>;
115
116 flash@0 {
117 status = "okay";
118
119 compatible = "jedec,spi-nor";
120 reg = <0>;
121 spi-max-frequency = <24000000>;
122
123 partitions {
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 partition@0 {
129 label = "SBL1";
130 reg = <0x00000000 0x00040000>;
131 read-only;
132 };
133
134 partition@40000 {
135 label = "MIBIB";
136 reg = <0x00040000 0x00020000>;
137 read-only;
138 };
139
140 partition@60000 {
141 label = "QSEE";
142 reg = <0x00060000 0x00060000>;
143 read-only;
144 };
145
146 partition@c0000 {
147 label = "CDT";
148 reg = <0x000c0000 0x00010000>;
149 read-only;
150 };
151
152 partition@d0000 {
153 label = "DDRPARAMS";
154 reg = <0x000d0000 0x00010000>;
155 read-only;
156 };
157
158 partition@e0000 {
159 label = "APPSBLENV"; /* uboot env*/
160 reg = <0x000e0000 0x00010000>;
161 };
162
163 partition@f0000 {
164 label = "APPSBL"; /* uboot */
165 reg = <0x000f0000 0x00080000>;
166 read-only;
167 };
168
169 partition@170000 {
170 label = "ART";
171 reg = <0x00170000 0x00010000>;
172 read-only;
173
174 nvmem-layout {
175 compatible = "fixed-layout";
176 #address-cells = <1>;
177 #size-cells = <1>;
178
179 macaddr_art_0: mac-address@0 {
180 reg = <0x0 0x6>;
181 };
182
183 macaddr_art_6: mac-address@6 {
184 reg = <0x6 0x6>;
185 };
186
187 precal_art_1000: precal@1000 {
188 reg = <0x1000 0x2f20>;
189 };
190
191 precal_art_5000: precal@5000 {
192 reg = <0x5000 0x2f20>;
193 };
194 };
195 };
196 };
197 };
198
199 spi-nand@1 {
200 status = "okay";
201
202 compatible = "spi-nand";
203 reg = <1>;
204 spi-max-frequency = <24000000>;
205
206 partitions {
207 compatible = "fixed-partitions";
208 #address-cells = <1>;
209 #size-cells = <1>;
210
211 partition@0 {
212 label = "ubi";
213 reg = <0x00000000 0x08000000>;
214 };
215 };
216 };
217 };
218
219 &blsp1_uart1 {
220 pinctrl-0 = <&serial_pins>;
221 pinctrl-names = "default";
222 status = "okay";
223 };
224
225 &tlmm {
226 serial_pins: serial_pinmux {
227 mux {
228 pins = "gpio60", "gpio61";
229 function = "blsp_uart0";
230 bias-disable;
231 };
232 };
233
234 spi0_pins: spi0_pinmux {
235 mux_spi {
236 function = "blsp_spi0";
237 pins = "gpio55", "gpio56", "gpio57";
238 drive-strength = <12>;
239 bias-disable;
240 };
241
242 mux_cs {
243 function = "gpio";
244 pins = "gpio54", "gpio5";
245 drive-strength = <2>;
246 bias-disable;
247 output-high;
248 };
249 };
250 };
251
252 &usb2_hs_phy {
253 status = "okay";
254 };
255
256 &usb2 {
257 status = "okay";
258 };
259
260 &usb3_hs_phy {
261 status = "okay";
262 };
263
264 &usb3_ss_phy {
265 status = "okay";
266 };
267
268 &usb3 {
269 status = "okay";
270 };
271
272 &gmac {
273 status = "okay";
274 };
275
276 &switch {
277 status = "okay";
278 };
279
280 &swport4 {
281 status = "okay";
282 label = "lan";
283
284 nvmem-cells = <&macaddr_art_0>;
285 nvmem-cell-names = "mac-address";
286 };
287
288 &swport5 {
289 status = "okay";
290 label = "wan";
291
292 nvmem-cells = <&macaddr_art_6>;
293 nvmem-cell-names = "mac-address";
294 };
295
296 &wifi0 {
297 status = "okay";
298 nvmem-cell-names = "pre-calibration";
299 nvmem-cells = <&precal_art_1000>;
300 qcom,ath10k-calibration-variant = "GL-AP1300";
301 };
302
303 &wifi1 {
304 status = "okay";
305 nvmem-cell-names = "pre-calibration";
306 nvmem-cells = <&precal_art_5000>;
307 qcom,ath10k-calibration-variant = "GL-AP1300";
308 };