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 = &wan;
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 compatible = "fixed-partitions";
74 reg = <0x100000 0x100000>;
78 factory: partition@200000 {
80 reg = <0x200000 0x200000>;
85 reg = <0x400000 0x400000>;
90 reg = <0x800000 0x2e00000>;
95 reg = <0x3600000 0x100000>;
100 label = "firmware_2";
101 reg = <0x3700000 0x3200000>;
106 reg = <0x6900000 0x100000>;
112 reg = <0x6a00000 0x100000>;
117 reg = <0x6b00000 0x100000>;
123 reg = <0x6c00000 0x1380000>;
130 nvmem-cells = <&macaddr_factory_1e000>;
131 nvmem-cell-names = "mac-address";
139 nvmem-cells = <&macaddr_factory_1e006>;
140 nvmem-cell-names = "mac-address";
171 compatible = "mediatek,mt76";
172 reg = <0x0000 0 0 0 0>;
174 mediatek,mtd-eeprom = <&factory 0x0>;
175 ieee80211-freq-limit = <2400000 2500000>;
181 compatible = "mediatek,mt76";
182 reg = <0x0000 0 0 0 0>;
184 mediatek,mtd-eeprom = <&factory 0x8000>;
185 ieee80211-freq-limit = <5000000 6000000>;
191 groups = "uart2", "uart3", "wdt";
201 compatible = "nvmem-cells";
202 #address-cells = <1>;
205 macaddr_factory_1e000: macaddr@1e000 {
209 macaddr_factory_1e006: macaddr@1e006 {