mediatek: disable unsupported background radar detection
[openwrt/staging/ansuel.git] / target / linux / mediatek / dts / mt7622-ruijie-rg-ew3200gx-pro.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6
7 #include "mt7622.dtsi"
8 #include "mt6380.dtsi"
9
10 / {
11 model = "Ruijie RG-EW3200GX PRO";
12 compatible = "ruijie,rg-ew3200gx-pro", "mediatek,mt7622";
13
14 aliases {
15 ethernet0 = &gmac0;
16 label-mac-device = &gmac0;
17 led-boot = &led_system;
18 led-failsafe = &led_system;
19 led-running = &led_system;
20 led-upgrade = &led_system;
21 serial0 = &uart0;
22 };
23
24 chosen {
25 stdout-path = "serial0:115200n1";
26 bootargs = "console=ttyS0,115200n1 swiotlb=512";
27 };
28
29 cpus {
30 cpu@0 {
31 proc-supply = <&mt6380_vcpu_reg>;
32 sram-supply = <&mt6380_vm_reg>;
33 };
34
35 cpu@1 {
36 proc-supply = <&mt6380_vcpu_reg>;
37 sram-supply = <&mt6380_vm_reg>;
38 };
39 };
40
41 gpio-keys {
42 compatible = "gpio-keys";
43
44 reset {
45 label = "reset";
46 linux,code = <KEY_RESTART>;
47 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
48 };
49
50 wps {
51 label = "wps";
52 linux,code = <KEY_WPS_BUTTON>;
53 gpios = <&pio 102 GPIO_ACTIVE_LOW>;
54 };
55 };
56
57 gpio-leds {
58 compatible = "gpio-leds";
59
60 mesh_green {
61 label = "green:mesh";
62 gpios = <&pio 79 GPIO_ACTIVE_LOW>;
63 };
64
65 mesh_red {
66 label = "red:mesh";
67 gpios = <&pio 82 GPIO_ACTIVE_LOW>;
68 };
69
70 led_system: system_blue {
71 label = "blue:system";
72 gpios = <&pio 81 GPIO_ACTIVE_LOW>;
73 default-state = "on";
74 };
75 };
76
77 memory {
78 reg = <0 0x40000000 0 0x40000000>;
79 };
80 };
81
82 &eth {
83 status = "okay";
84
85 pinctrl-names = "default";
86 pinctrl-0 = <&eth_pins>;
87
88 gmac0: mac@0 {
89 compatible = "mediatek,eth-mac";
90 reg = <0>;
91 phy-connection-type = "2500base-x";
92 fixed-link {
93 speed = <2500>;
94 full-duplex;
95 pause;
96 };
97 };
98
99 mdio: mdio-bus {
100 #address-cells = <1>;
101 #size-cells = <0>;
102
103 switch@0 {
104 compatible = "mediatek,mt7531";
105 reg = <0>;
106 reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
107
108 interrupt-controller;
109 #interrupt-cells = <2>;
110 interrupt-parent = <&pio>;
111 interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
112
113 ports {
114 #address-cells = <1>;
115 #size-cells = <0>;
116
117 port@0 {
118 reg = <0>;
119 label = "lan1";
120 };
121
122 port@1 {
123 reg = <1>;
124 label = "lan2";
125 };
126
127 port@2 {
128 reg = <2>;
129 label = "lan3";
130 };
131
132 port@3 {
133 reg = <3>;
134 label = "lan4";
135 };
136
137 wan: port@4 {
138 reg = <4>;
139 label = "wan";
140 };
141
142 port@6 {
143 reg = <6>;
144 label = "cpu";
145 ethernet = <&gmac0>;
146 phy-mode = "2500base-x";
147
148 fixed-link {
149 speed = <2500>;
150 full-duplex;
151 pause;
152 };
153 };
154 };
155 };
156 };
157 };
158
159 &pcie0 {
160 status = "okay";
161
162 pinctrl-names = "default";
163 pinctrl-0 = <&pcie0_pins>;
164 };
165
166 &slot0 {
167 wifi@0,0 {
168 compatible = "mediatek,mt76";
169 reg = <0x0000 0 0 0 0>;
170 mediatek,mtd-eeprom = <&factory 0x5000>;
171 ieee80211-freq-limit = <5000000 6000000>;
172 mediatek,disable-radar-background;
173 };
174 };
175
176 &pio {
177 epa_elna_pins: epa-elna-pins {
178 mux {
179 function = "antsel";
180 groups = "antsel0", "antsel1", "antsel2", "antsel3",
181 "antsel4", "antsel5", "antsel6", "antsel7",
182 "antsel8", "antsel9", "antsel12", "antsel13",
183 "antsel14", "antsel15", "antsel16", "antsel17";
184 };
185 };
186
187 eth_pins: eth-pins {
188 mux {
189 function = "eth";
190 groups = "mdc_mdio", "rgmii_via_gmac2";
191 };
192 };
193
194 pcie0_pins: pcie0-pins {
195 mux {
196 function = "pcie";
197 groups = "pcie0_pad_perst",
198 "pcie0_0_waken",
199 "pcie0_0_clkreq";
200 };
201 };
202
203 pmic_bus_pins: pmic-bus-pins {
204 mux {
205 function = "pmic";
206 groups = "pmic_bus";
207 };
208 };
209
210 spi_nor_pins: spi-nor-pins {
211 mux {
212 function = "flash";
213 groups = "spi_nor";
214 };
215 };
216
217 uart0_pins: uart0-pins {
218 mux {
219 function = "uart";
220 groups = "uart0_0_tx_rx";
221 };
222 };
223
224 watchdog_pins: watchdog-pins {
225 mux {
226 function = "watchdog";
227 groups = "watchdog";
228 };
229 };
230 };
231
232 &pwrap {
233 status = "okay";
234
235 pinctrl-names = "default";
236 pinctrl-0 = <&pmic_bus_pins>;
237 };
238
239 &nor_flash {
240 status = "okay";
241
242 pinctrl-names = "default";
243 pinctrl-0 = <&spi_nor_pins>;
244
245 flash@0 {
246 compatible = "jedec,spi-nor";
247 reg = <0>;
248 spi-max-frequency = <50000000>;
249
250 partitions {
251 compatible = "fixed-partitions";
252 #address-cells = <1>;
253 #size-cells = <1>;
254
255 partition@0 {
256 label = "Preloader";
257 reg = <0x0 0x40000>;
258 read-only;
259 };
260
261 partition@40000 {
262 label = "ATF";
263 reg = <0x40000 0x20000>;
264 read-only;
265 };
266
267 partition@60000 {
268 label = "u-boot";
269 reg = <0x60000 0x50000>;
270 read-only;
271 };
272
273 partition@B0000 {
274 label = "u-boot-env";
275 reg = <0xb0000 0x20000>;
276 };
277
278 factory: partition@D0000 {
279 label = "Factory";
280 reg = <0xd0000 0x80000>;
281 read-only;
282 };
283
284 partition@150000 {
285 label = "product_info";
286 reg = <0x150000 0x10000>;
287 read-only;
288 };
289
290 partition@160000 {
291 label = "kdump";
292 reg = <0x160000 0x10000>;
293 read-only;
294 };
295
296 partition@170000 {
297 compatible = "denx,fit";
298 label = "firmware";
299 reg = <0x170000 0xe90000>;
300 };
301 };
302 };
303 };
304
305 &rtc {
306 status = "disabled";
307 };
308
309 &uart0 {
310 status = "okay";
311
312 pinctrl-names = "default";
313 pinctrl-0 = <&uart0_pins>;
314 };
315
316 &watchdog {
317 status = "okay";
318
319 pinctrl-names = "default";
320 pinctrl-0 = <&watchdog_pins>;
321 };
322
323 &wmac {
324 status = "okay";
325
326 pinctrl-names = "default";
327 pinctrl-0 = <&epa_elna_pins>;
328 mediatek,mtd-eeprom = <&factory 0x0>;
329 };