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