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