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>;
23 compatible = "fixed-partitions";
35 reg = <0x30000 0x10000>;
39 factory: partition@40000 {
41 reg = <0x40000 0x10000>;
47 reg = <0x50000 0x3a0000>;
52 reg = <0x3f0000 0x10000>;
59 compatible = "gpio-leds";
62 label = "whr-g300n:red:diag";
63 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
67 label = "whr-g300n:green:router";
68 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
72 label = "whr-g300n:amber:security";
73 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
78 compatible = "gpio-keys-polled";
83 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
89 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
95 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
101 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
102 linux,code = <BTN_3>;
108 state_default: pinctrl0 {
110 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
111 ralink,function = "gpio";
117 mtd-mac-address = <&factory 0x4>;
121 mediatek,portmap = <0x2f>;
125 ralink,mtd-eeprom = <&factory 0>;