ipq40xx: switch default to 6.6
[openwrt/staging/blocktrron.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / 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 usb2@60f8800 {
76 status = "okay";
77 };
78
79 usb3@8af8800 {
80 status = "okay";
81 };
82
83 crypto@8e3a000 {
84 status = "okay";
85 };
86
87 watchdog@b017000 {
88 status = "okay";
89 };
90 };
91
92 keys {
93 compatible = "gpio-keys";
94
95 wps {
96 label = "wps";
97 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_WPS_BUTTON>;
99 };
100
101 reset {
102 label = "reset";
103 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_RESTART>;
105 };
106 };
107
108 leds {
109 compatible = "gpio-leds";
110
111 power: power {
112 function = LED_FUNCTION_POWER;
113 color = <LED_COLOR_ID_GREEN>;
114 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
115 default-state = "on";
116 };
117
118 mesh {
119 label = "green:mesh";
120 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
121 };
122
123 wlan {
124 function = LED_FUNCTION_WLAN;
125 color = <LED_COLOR_ID_GREEN>;
126 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
127 };
128 };
129 };
130
131 &blsp_dma {
132 status = "okay";
133 };
134
135 &cryptobam {
136 status = "okay";
137 };
138
139 &blsp1_spi1 {
140 pinctrl-0 = <&spi_0_pins>;
141 pinctrl-names = "default";
142 status = "okay";
143 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
144
145 mx25l25635f@0 {
146 compatible = "jedec,spi-nor";
147 reg = <0>;
148 spi-max-frequency = <24000000>;
149
150 partitions {
151 compatible = "fixed-partitions";
152 #address-cells = <1>;
153 #size-cells = <1>;
154
155 SBL1@0 {
156 label = "SBL1";
157 reg = <0x0 0x40000>;
158 read-only;
159 };
160
161 MIBIB@40000 {
162 label = "MIBIB";
163 reg = <0x40000 0x20000>;
164 read-only;
165 };
166
167 QSEE@60000 {
168 label = "QSEE";
169 reg = <0x60000 0x60000>;
170 read-only;
171 };
172
173 CDT@c0000 {
174 label = "CDT";
175 reg = <0xc0000 0x10000>;
176 read-only;
177 };
178
179 DDRPARAMS@d0000 {
180 label = "DDRPARAMS";
181 reg = <0xd0000 0x10000>;
182 read-only;
183 };
184
185 APPSBLENV@e0000 {
186 label = "APPSBLENV";
187 reg = <0xe0000 0x10000>;
188 read-only;
189 };
190
191 APPSBL@f0000 {
192 label = "APPSBL";
193 reg = <0xf0000 0x80000>;
194 read-only;
195 };
196
197 ART@170000 {
198 label = "ART";
199 reg = <0x170000 0x10000>;
200 read-only;
201
202 nvmem-layout {
203 compatible = "fixed-layout";
204 #address-cells = <1>;
205 #size-cells = <1>;
206
207 macaddr_gmac0: macaddr@0 {
208 compatible = "mac-base";
209 reg = <0x0 0x6>;
210 #nvmem-cell-cells = <1>;
211 };
212
213 macaddr_gmac1: macaddr@6 {
214 reg = <0x6 0x6>;
215 };
216
217 precal_art_1000: precal@1000 {
218 reg = <0x1000 0x2f20>;
219 };
220
221 precal_art_5000: precal@5000 {
222 reg = <0x5000 0x2f20>;
223 };
224 };
225 };
226
227 firmware@180000 {
228 compatible = "denx,fit";
229 label = "firmware";
230 reg = <0x180000 0x1e80000>;
231 };
232 };
233 };
234 };
235
236 &blsp1_uart1 {
237 pinctrl-0 = <&serial_pins>;
238 pinctrl-names = "default";
239 status = "okay";
240 };
241
242 &tlmm {
243 serial_pins: serial_pinmux {
244 mux {
245 pins = "gpio60", "gpio61";
246 function = "blsp_uart0";
247 bias-disable;
248 };
249 };
250
251 spi_0_pins: spi_0_pinmux {
252 pinmux {
253 function = "blsp_spi0";
254 pins = "gpio55", "gpio56", "gpio57";
255 };
256 pinmux_cs {
257 function = "gpio";
258 pins = "gpio54";
259 };
260 pinconf {
261 pins = "gpio55", "gpio56", "gpio57";
262 drive-strength = <12>;
263 bias-disable;
264 };
265 pinconf_cs {
266 pins = "gpio54";
267 drive-strength = <2>;
268 bias-disable;
269 output-high;
270 };
271 };
272 };
273
274 &usb2_hs_phy {
275 status = "okay";
276 };
277
278 &usb3_hs_phy {
279 status = "okay";
280 };
281
282 &usb3_ss_phy {
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 };