5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "buffalo,whr-g300n", "ralink,rt3052-soc";
10 model = "Buffalo WHR-G300N";
13 led-status = &led_router;
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x800000>;
32 reg = <0x30000 0x10000>;
36 factory: partition@40000 {
38 reg = <0x40000 0x10000>;
44 reg = <0x50000 0x3a0000>;
49 reg = <0x3f0000 0x10000>;
55 compatible = "gpio-leds";
58 label = "whr-g300n:red:diag";
59 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
63 label = "whr-g300n:green:router";
64 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
68 label = "whr-g300n:amber:security";
69 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
74 compatible = "gpio-keys-polled";
79 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
85 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_WPS_BUTTON>;
91 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
97 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
104 state_default: pinctrl0 {
106 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
107 ralink,function = "gpio";
113 mtd-mac-address = <&factory 0x4>;
117 mediatek,portmap = <0x2f>;
121 ralink,mtd-eeprom = <&factory 0>;