ipq40xx: switch default to 6.6
[openwrt/staging/blocktrron.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4019-orbi.dtsi
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 aliases {
11 led-boot = &led_status_white;
12 led-failsafe = &led_status_red;
13 led-running = &led_status_green;
14 led-upgrade = &led_status_blue;
15 label-mac-device = &gmac;
16 };
17
18 soc {
19 rng@22000 {
20 status = "okay";
21 };
22
23 mdio@90000 {
24 status = "okay";
25
26 pinctrl-0 = <&mdio_pins>;
27 pinctrl-names = "default";
28 };
29
30 counter@4a1000 {
31 compatible = "qcom,qca-gcnt";
32 reg = <0x4a1000 0x4>;
33 };
34
35 tcsr@1949000 {
36 compatible = "qcom,tcsr";
37 reg = <0x1949000 0x100>;
38 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
39 };
40
41 tcsr@194b000 {
42 status = "okay";
43
44 compatible = "qcom,tcsr";
45 reg = <0x194b000 0x100>;
46 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
47 };
48
49 ess_tcsr@1953000 {
50 compatible = "qcom,tcsr";
51 reg = <0x1953000 0x1000>;
52 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
53 };
54
55 tcsr@1957000 {
56 compatible = "qcom,tcsr";
57 reg = <0x1957000 0x100>;
58 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
59 };
60
61 crypto@8e3a000 {
62 status = "okay";
63 };
64
65 watchdog@b017000 {
66 status = "okay";
67 };
68 };
69
70 keys {
71 compatible = "gpio-keys";
72
73 reset {
74 label = "reset";
75 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
77 };
78
79 wps {
80 label = "wps";
81 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
83 };
84 };
85
86 leds {
87 compatible = "gpio-leds";
88
89 led-0 {
90 function = LED_FUNCTION_POWER;
91 color = <LED_COLOR_ID_GREEN>;
92 gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
93 default-state = "on";
94 };
95
96 led-1 {
97 function = LED_FUNCTION_POWER;
98 color = <LED_COLOR_ID_RED>;
99 gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
100 panic-indicator;
101 };
102
103 led_status_green: led-2 {
104 function = LED_FUNCTION_STATUS;
105 color = <LED_COLOR_ID_GREEN>;
106 gpios = <&tlmm 53 GPIO_ACTIVE_HIGH>;
107 };
108
109 led_status_red: led-3 {
110 function = LED_FUNCTION_STATUS;
111 color = <LED_COLOR_ID_RED>;
112 gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
113 };
114
115 led_status_blue: led-4 {
116 function = LED_FUNCTION_STATUS;
117 color = <LED_COLOR_ID_BLUE>;
118 gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>;
119 };
120
121 led_status_white: led-5 {
122 function = LED_FUNCTION_STATUS;
123 color = <LED_COLOR_ID_WHITE>;
124 gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
125 };
126 };
127 };
128
129 &vqmmc {
130 status = "okay";
131 };
132
133 &sdhci {
134 status = "okay";
135
136 pinctrl-0 = <&sd_pins>;
137 pinctrl-names = "default";
138 cd-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
139 vqmmc-supply = <&vqmmc>;
140 };
141
142 &qpic_bam {
143 status = "okay";
144 };
145
146 &tlmm {
147 mdio_pins: mdio_pinmux {
148 mux_1 {
149 pins = "gpio6";
150 function = "mdio";
151 bias-pull-up;
152 };
153
154 mux_2 {
155 pins = "gpio7";
156 function = "mdc";
157 bias-pull-up;
158 };
159 };
160
161 serial_pins: serial_pinmux {
162 mux {
163 pins = "gpio16", "gpio17";
164 function = "blsp_uart0";
165 bias-disable;
166 };
167 };
168
169 i2c_0_pins: i2c_0_pinmux {
170 pinmux {
171 function = "blsp_i2c0";
172 pins = "gpio58", "gpio59";
173 bias-disable;
174 };
175 };
176
177 sd_pins: sd_pins {
178 pinmux {
179 function = "sdio";
180 pins = "gpio23", "gpio24", "gpio25", "gpio26",
181 "gpio28", "gpio29", "gpio30", "gpio31";
182 drive-strength = <10>;
183 };
184
185 pinmux_sd_clk {
186 function = "sdio";
187 pins = "gpio27";
188 drive-strength = <16>;
189 };
190
191 pinmux_sd7 {
192 function = "sdio";
193 pins = "gpio32";
194 drive-strength = <10>;
195 bias-disable;
196 };
197 };
198 };
199
200 &blsp_dma {
201 status = "okay";
202 };
203
204 &blsp1_i2c3 {
205 pinctrl-0 = <&i2c_0_pins>;
206 pinctrl-names = "default";
207
208 status = "okay";
209
210 led-controller@27 {
211 #address-cells = <1>;
212 #size-cells = <0>;
213 compatible = "ti,tlc59108"; /* really is tlc59208f */
214 reg = <0x27>;
215
216 led0@0 {
217 label = "rgb:led0";
218 reg = <0x0>;
219 linux,default-trigger = "default-on";
220 };
221
222 led1@1 {
223 label = "rgb:led1";
224 reg = <0x1>;
225 linux,default-trigger = "default-on";
226 };
227
228 led2@2 {
229 label = "rgb:led2";
230 reg = <0x2>;
231 linux,default-trigger = "default-on";
232 };
233
234 led3@3 {
235 label = "rgb:led3";
236 reg = <0x3>;
237 linux,default-trigger = "default-on";
238 };
239
240 led4@4 {
241 label = "rgb:led4";
242 reg = <0x4>;
243 linux,default-trigger = "default-on";
244 };
245
246 led5@5 {
247 label = "rgb:led5";
248 reg = <0x5>;
249 linux,default-trigger = "default-on";
250 };
251
252 led6@6 {
253 label = "rgb:led6";
254 reg = <0x6>;
255 linux,default-trigger = "default-on";
256 };
257
258 led7@7 {
259 label = "rgb:led7";
260 reg = <0x7>;
261 linux,default-trigger = "default-on";
262 };
263 };
264 };
265
266 &blsp1_uart1 {
267 status = "okay";
268
269 pinctrl-0 = <&serial_pins>;
270 pinctrl-names = "default";
271 };
272
273 &cryptobam {
274 status = "okay";
275 };
276
277 &gmac {
278 status = "okay";
279 };
280
281 &switch {
282 status = "okay";
283 };
284
285 &swport1 {
286 status = "okay";
287
288 label = "wan";
289 };
290
291 &swport2 {
292 status = "okay";
293
294 label = "lan1";
295 };
296
297 &swport3 {
298 status = "okay";
299
300 label = "lan2";
301 };
302
303 &swport4 {
304 status = "okay";
305
306 label = "lan3";
307 };
308
309 &ethphy4 {
310 status = "disabled";
311 };
312
313 &pcie0 {
314 status = "okay";
315
316 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
317 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
318
319 bridge@0,0 {
320 reg = <0x00000000 0 0 0 0>;
321 #address-cells = <3>;
322 #size-cells = <2>;
323 ranges;
324
325 wifi@1,0 {
326 compatible = "qcom,ath10k";
327 status = "okay";
328 reg = <0x00010000 0 0 0 0>;
329 ieee80211-freq-limit = <5470000 5875000>;
330 qcom,ath10k-calibration-variant = "Netgear-Orbi-Pro-SRK60";
331 };
332 };
333 };
334
335 &wifi0 {
336 status = "okay";
337
338 qcom,ath10k-calibration-variant = "Netgear-Orbi-Pro-SRK60";
339 };
340
341 &wifi1 {
342 status = "okay";
343
344 qcom,ath10k-calibration-variant = "Netgear-Orbi-Pro-SRK60";
345 };