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-ipq4029-gl-b1300.dts
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 *
3 * Permission to use, copy, modify, and/or distribute this software for any
4 * purpose with or without fee is hereby granted, provided that the above
5 * copyright notice and this permission notice appear in all copies.
6 *
7 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 *
15 */
16
17 #include "qcom-ipq4019.dtsi"
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/leds/common.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
22
23 / {
24 model = "GL.iNet GL-B1300";
25 compatible = "glinet,gl-b1300";
26
27 aliases {
28 led-boot = &power;
29 led-failsafe = &power;
30 led-running = &power;
31 led-upgrade = &power;
32 label-mac-device = &swport4;
33 };
34
35 memory {
36 device_type = "memory";
37 reg = <0x80000000 0x10000000>;
38 };
39
40 soc {
41 rng@22000 {
42 status = "okay";
43 };
44
45 mdio@90000 {
46 status = "okay";
47 };
48
49 tcsr@1949000 {
50 compatible = "qcom,tcsr";
51 reg = <0x1949000 0x100>;
52 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
53 };
54
55 tcsr@194b000 {
56 /* select hostmode */
57 compatible = "qcom,tcsr";
58 reg = <0x194b000 0x100>;
59 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
60 status = "okay";
61 };
62
63 ess_tcsr@1953000 {
64 compatible = "qcom,tcsr";
65 reg = <0x1953000 0x1000>;
66 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
67 };
68
69 tcsr@1957000 {
70 compatible = "qcom,tcsr";
71 reg = <0x1957000 0x100>;
72 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
73 };
74
75 crypto@8e3a000 {
76 status = "okay";
77 };
78
79 watchdog@b017000 {
80 status = "okay";
81 };
82 };
83
84 keys {
85 compatible = "gpio-keys";
86
87 wps {
88 label = "wps";
89 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
91 };
92
93 reset {
94 label = "reset";
95 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_RESTART>;
97 };
98 };
99
100 leds {
101 compatible = "gpio-leds";
102
103 power: power {
104 function = LED_FUNCTION_POWER;
105 color = <LED_COLOR_ID_GREEN>;
106 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
107 default-state = "on";
108 };
109
110 mesh {
111 label = "green:mesh";
112 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
113 };
114
115 wlan {
116 function = LED_FUNCTION_WLAN;
117 color = <LED_COLOR_ID_GREEN>;
118 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
119 };
120 };
121 };
122
123 &blsp_dma {
124 status = "okay";
125 };
126
127 &cryptobam {
128 status = "okay";
129 };
130
131 &blsp1_spi1 {
132 pinctrl-0 = <&spi_0_pins>;
133 pinctrl-names = "default";
134 status = "okay";
135 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
136
137 mx25l25635f@0 {
138 compatible = "jedec,spi-nor";
139 reg = <0>;
140 spi-max-frequency = <24000000>;
141
142 partitions {
143 compatible = "fixed-partitions";
144 #address-cells = <1>;
145 #size-cells = <1>;
146
147 SBL1@0 {
148 label = "SBL1";
149 reg = <0x0 0x40000>;
150 read-only;
151 };
152
153 MIBIB@40000 {
154 label = "MIBIB";
155 reg = <0x40000 0x20000>;
156 read-only;
157 };
158
159 QSEE@60000 {
160 label = "QSEE";
161 reg = <0x60000 0x60000>;
162 read-only;
163 };
164
165 CDT@c0000 {
166 label = "CDT";
167 reg = <0xc0000 0x10000>;
168 read-only;
169 };
170
171 DDRPARAMS@d0000 {
172 label = "DDRPARAMS";
173 reg = <0xd0000 0x10000>;
174 read-only;
175 };
176
177 APPSBLENV@e0000 {
178 label = "APPSBLENV";
179 reg = <0xe0000 0x10000>;
180 read-only;
181 };
182
183 APPSBL@f0000 {
184 label = "APPSBL";
185 reg = <0xf0000 0x80000>;
186 read-only;
187 };
188
189 ART@170000 {
190 label = "ART";
191 reg = <0x170000 0x10000>;
192 read-only;
193
194 nvmem-layout {
195 compatible = "fixed-layout";
196 #address-cells = <1>;
197 #size-cells = <1>;
198
199 macaddr_gmac0: macaddr@0 {
200 compatible = "mac-base";
201 reg = <0x0 0x6>;
202 #nvmem-cell-cells = <1>;
203 };
204
205 macaddr_gmac1: macaddr@6 {
206 reg = <0x6 0x6>;
207 };
208
209 precal_art_1000: precal@1000 {
210 reg = <0x1000 0x2f20>;
211 };
212
213 precal_art_5000: precal@5000 {
214 reg = <0x5000 0x2f20>;
215 };
216 };
217 };
218
219 firmware@180000 {
220 compatible = "denx,fit";
221 label = "firmware";
222 reg = <0x180000 0x1e80000>;
223 };
224 };
225 };
226 };
227
228 &blsp1_uart1 {
229 pinctrl-0 = <&serial_pins>;
230 pinctrl-names = "default";
231 status = "okay";
232 };
233
234 &tlmm {
235 serial_pins: serial_pinmux {
236 mux {
237 pins = "gpio60", "gpio61";
238 function = "blsp_uart0";
239 bias-disable;
240 };
241 };
242
243 spi_0_pins: spi_0_pinmux {
244 pinmux {
245 function = "blsp_spi0";
246 pins = "gpio55", "gpio56", "gpio57";
247 };
248 pinmux_cs {
249 function = "gpio";
250 pins = "gpio54";
251 };
252 pinconf {
253 pins = "gpio55", "gpio56", "gpio57";
254 drive-strength = <12>;
255 bias-disable;
256 };
257 pinconf_cs {
258 pins = "gpio54";
259 drive-strength = <2>;
260 bias-disable;
261 output-high;
262 };
263 };
264 };
265
266 &usb2_hs_phy {
267 status = "okay";
268 };
269
270 &usb2 {
271 status = "okay";
272 };
273
274 &usb3_hs_phy {
275 status = "okay";
276 };
277
278 &usb3_ss_phy {
279 status = "okay";
280 };
281
282 &usb3 {
283 status = "okay";
284 };
285
286 &gmac {
287 status = "okay";
288 };
289
290 &switch {
291 status = "okay";
292 };
293
294 &swport3 {
295 status = "okay";
296
297 label = "lan2";
298 nvmem-cell-names = "mac-address";
299 nvmem-cells = <&macaddr_gmac0 2>;
300 };
301
302 &swport4 {
303 status = "okay";
304
305 label = "lan1";
306 nvmem-cell-names = "mac-address";
307 nvmem-cells = <&macaddr_gmac0 0>;
308 };
309
310 &swport5 {
311 status = "okay";
312
313 nvmem-cell-names = "mac-address";
314 nvmem-cells = <&macaddr_gmac1>;
315 };
316
317 &wifi0 {
318 status = "okay";
319 nvmem-cell-names = "pre-calibration";
320 nvmem-cells = <&precal_art_1000>;
321 qcom,ath10k-calibration-variant = "GL-B1300";
322 };
323
324 &wifi1 {
325 status = "okay";
326 nvmem-cell-names = "pre-calibration";
327 nvmem-cells = <&precal_art_5000>;
328 qcom,ath10k-calibration-variant = "GL-B1300";
329 };