5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc";
10 model = "Planex MZK-W300NH2";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x800000>;
26 compatible = "fixed-partitions";
38 reg = <0x30000 0x10000>;
42 factory: partition@40000 {
44 reg = <0x40000 0x10000>;
50 reg = <0x3e0000 0x20000>;
55 compatible = "denx,uimage";
57 reg = <0x50000 0x390000>;
63 compatible = "gpio-leds";
66 label = "mzk-w300nh2:green:power";
67 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
71 label = "mzk-w300nh2:amber:wlan";
72 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
76 label = "mzk-w300nh2:amber:wps";
77 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-keys-polled";
87 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_WPS_BUTTON>;
93 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_RESTART>;
99 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
100 linux,code = <BTN_0>;
106 state_default: pinctrl0 {
108 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
109 ralink,function = "gpio";
115 mtd-mac-address = <&factory 0x4>;
119 mediatek,portmap = <0x2f>;
123 ralink,mtd-eeprom = <&factory 0>;