5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "iodata,wn-gx300gr", "mediatek,mt7621-soc";
10 model = "I-O DATA WN-GX300GR";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 device_type = "memory";
21 reg = <0x0 0x4000000>;
25 bootargs = "console=ttyS0,115200";
29 compatible = "gpio-leds";
32 label = "wn-gx300gr:green:power";
33 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
37 label = "wn-gx300gr:green:wps";
38 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
43 compatible = "gpio-keys-polled";
48 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
54 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
60 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
62 linux,input-type = <EV_SW>;
67 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
69 linux,input-type = <EV_SW>;
78 compatible = "jedec,spi-nor";
80 spi-max-frequency = <10000000>;
81 m25p,chunked-io = <32>;
84 compatible = "fixed-partitions";
96 reg = <0x30000 0x10000>;
100 Factory: partition@40000 {
102 reg = <0x40000 0x10000>;
108 reg = <0x50000 0x10000>;
114 reg = <0x60000 0x770000>;
119 reg = <0x7d0000 0x10000>;
125 reg = <0x7e0000 0x10000>;
131 reg = <0x7f0000 0x10000>;
139 mtd-mac-address = <&Factory 0x4>;
143 state_default: pinctrl0 {
145 ralink,group = "uart2", "uart3", "jtag";
146 ralink,function = "gpio";
157 reg = <0x0000 0 0 0 0>;
158 mediatek,mtd-eeprom = <&Factory 0x0>;