3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "planex,mzk-w300nh2", "ralink,rt3052-soc";
9 model = "Planex MZK-W300NH2";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x800000>;
25 compatible = "fixed-partitions";
37 reg = <0x30000 0x10000>;
41 factory: partition@40000 {
43 reg = <0x40000 0x10000>;
47 compatible = "fixed-layout";
51 eeprom_factory_0: eeprom@0 {
55 macaddr_factory_4: macaddr@4 {
63 reg = <0x3e0000 0x20000>;
68 compatible = "denx,uimage";
70 reg = <0x50000 0x390000>;
76 compatible = "gpio-leds";
79 function = LED_FUNCTION_POWER;
80 color = <LED_COLOR_ID_GREEN>;
81 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
85 function = LED_FUNCTION_WLAN;
86 color = <LED_COLOR_ID_AMBER>;
87 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
91 function = LED_FUNCTION_WPS;
92 color = <LED_COLOR_ID_AMBER>;
93 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
98 compatible = "gpio-keys-polled";
103 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_WPS_BUTTON>;
109 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
110 linux,code = <KEY_RESTART>;
115 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
116 linux,code = <BTN_0>;
123 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
129 nvmem-cells = <&macaddr_factory_4>;
130 nvmem-cell-names = "mac-address";
134 mediatek,portmap = <0x2f>;
138 nvmem-cells = <&eeprom_factory_0>;
139 nvmem-cell-names = "eeprom";