1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "iodata,wn-dx1200gr", "mediatek,mt7621-soc";
11 model = "I-O DATA WN-DX1200GR";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &gmac1;
22 compatible = "gpio-leds";
25 function = LED_FUNCTION_WPS;
26 color = <LED_COLOR_ID_BLUE>;
27 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
31 function = LED_FUNCTION_POWER;
32 color = <LED_COLOR_ID_GREEN>;
33 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
38 compatible = "gpio-keys";
42 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
48 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
50 linux,input-type = <EV_SW>;
55 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_WPS_BUTTON>;
65 mediatek,bmt-remap-range =
66 <0x0000000 0x0800000>,
67 <0x3600000 0x4980000>;
70 compatible = "fixed-partitions";
82 reg = <0x100000 0x100000>;
88 reg = <0x200000 0x200000>;
91 compatible = "fixed-layout";
95 eeprom_factory_0: eeprom@0 {
99 eeprom_factory_8000: eeprom@8000 {
100 reg = <0x8000 0x4da8>;
103 macaddr_factory_1e000: macaddr@1e000 {
107 macaddr_factory_1e006: macaddr@1e006 {
115 reg = <0x400000 0x400000>;
120 reg = <0x800000 0x2e00000>;
125 reg = <0x3600000 0x100000>;
130 label = "firmware_2";
131 reg = <0x3700000 0x3200000>;
136 reg = <0x6900000 0x100000>;
142 reg = <0x6a00000 0x100000>;
147 reg = <0x6b00000 0x100000>;
153 reg = <0x6c00000 0x1380000>;
160 nvmem-cells = <&macaddr_factory_1e000>;
161 nvmem-cell-names = "mac-address";
167 phy-handle = <ðphy0>;
169 nvmem-cells = <&macaddr_factory_1e006>;
170 nvmem-cell-names = "mac-address";
174 ethphy0: ethernet-phy@0 {
209 compatible = "mediatek,mt76";
210 reg = <0x0000 0 0 0 0>;
211 ieee80211-freq-limit = <2400000 2500000>;
213 nvmem-cells = <&eeprom_factory_0>;
214 nvmem-cell-names = "eeprom";
220 compatible = "mediatek,mt76";
221 reg = <0x0000 0 0 0 0>;
222 ieee80211-freq-limit = <5000000 6000000>;
224 nvmem-cells = <&eeprom_factory_8000>;
225 nvmem-cell-names = "eeprom";
231 groups = "uart2", "uart3", "wdt";