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 {
84 compatible = "nvmem-cells";
86 reg = <0x200000 0x200000>;
90 eeprom_factory_0: eeprom@0 {
94 macaddr_factory_1e000: macaddr@1e000 {
98 macaddr_factory_1e006: macaddr@1e006 {
105 reg = <0x400000 0x400000>;
110 reg = <0x800000 0x2e00000>;
115 reg = <0x3600000 0x100000>;
120 label = "firmware_2";
121 reg = <0x3700000 0x3200000>;
126 reg = <0x6900000 0x100000>;
132 reg = <0x6a00000 0x100000>;
137 reg = <0x6b00000 0x100000>;
143 reg = <0x6c00000 0x1380000>;
150 nvmem-cells = <&macaddr_factory_1e000>;
151 nvmem-cell-names = "mac-address";
157 phy-handle = <ðphy0>;
159 nvmem-cells = <&macaddr_factory_1e006>;
160 nvmem-cell-names = "mac-address";
164 ethphy0: ethernet-phy@0 {
199 compatible = "mediatek,mt76";
200 reg = <0x0000 0 0 0 0>;
201 ieee80211-freq-limit = <2400000 2500000>;
203 nvmem-cells = <&eeprom_factory_0>;
204 nvmem-cell-names = "eeprom";
210 compatible = "mediatek,mt76";
211 reg = <0x0000 0 0 0 0>;
213 mediatek,mtd-eeprom = <&factory 0x8000>;
214 ieee80211-freq-limit = <5000000 6000000>;
220 groups = "uart2", "uart3", "wdt";