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 compatible = "cfi-flash";
14 reg = <0x1f000000 0x800000>;
28 reg = <0x30000 0x10000>;
32 factory: partition@40000 {
34 reg = <0x40000 0x10000>;
40 reg = <0x50000 0x3a0000>;
45 reg = <0x3f0000 0x10000>;
51 compatible = "gpio-leds";
54 label = "whr-g300n:red:diag";
55 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
59 label = "whr-g300n:green:router";
60 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
64 label = "whr-g300n:amber:security";
65 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
70 compatible = "gpio-keys-polled";
77 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_RESTART>;
83 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_WPS_BUTTON>;
89 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
95 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
102 state_default: pinctrl0 {
104 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
105 ralink,function = "gpio";
111 mtd-mac-address = <&factory 0x4>;
115 mediatek,portmap = <0x2f>;
119 ralink,mtd-eeprom = <&factory 0>;