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>
9 compatible = "iodata,wn-dx1200gr", "mediatek,mt7621-soc";
10 model = "I-O DATA WN-DX1200GR";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = &gmac1;
21 compatible = "gpio-leds";
25 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
29 label = "green:power";
30 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
35 compatible = "gpio-keys";
39 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
45 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
47 linux,input-type = <EV_SW>;
52 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
62 mediatek,bmt-remap-range =
63 <0x0000000 0x0800000>,
64 <0x3600000 0x4980000>;
67 compatible = "fixed-partitions";
79 reg = <0x100000 0x100000>;
83 factory: partition@200000 {
85 reg = <0x200000 0x200000>;
88 compatible = "fixed-layout";
92 eeprom_factory_0: eeprom@0 {
96 eeprom_factory_8000: eeprom@8000 {
97 reg = <0x8000 0x4da8>;
100 macaddr_factory_1e000: macaddr@1e000 {
104 macaddr_factory_1e006: macaddr@1e006 {
112 reg = <0x400000 0x400000>;
117 reg = <0x800000 0x2e00000>;
122 reg = <0x3600000 0x100000>;
127 label = "firmware_2";
128 reg = <0x3700000 0x3200000>;
133 reg = <0x6900000 0x100000>;
139 reg = <0x6a00000 0x100000>;
144 reg = <0x6b00000 0x100000>;
150 reg = <0x6c00000 0x1380000>;
157 nvmem-cells = <&macaddr_factory_1e000>;
158 nvmem-cell-names = "mac-address";
164 phy-handle = <ðphy0>;
166 nvmem-cells = <&macaddr_factory_1e006>;
167 nvmem-cell-names = "mac-address";
171 ethphy0: ethernet-phy@0 {
206 compatible = "mediatek,mt76";
207 reg = <0x0000 0 0 0 0>;
208 ieee80211-freq-limit = <2400000 2500000>;
210 nvmem-cells = <&eeprom_factory_0>;
211 nvmem-cell-names = "eeprom";
217 compatible = "mediatek,mt76";
218 reg = <0x0000 0 0 0 0>;
219 ieee80211-freq-limit = <5000000 6000000>;
221 nvmem-cells = <&eeprom_factory_8000>;
222 nvmem-cell-names = "eeprom";
228 groups = "uart2", "uart3", "wdt";