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";
14 led-failsafe = &led_diag;
15 led-upgrade = &led_diag;
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x800000>;
25 compatible = "fixed-partitions";
37 reg = <0x30000 0x10000>;
41 factory: partition@40000 {
43 reg = <0x40000 0x10000>;
48 compatible = "denx,uimage";
50 reg = <0x50000 0x3a0000>;
55 reg = <0x3f0000 0x10000>;
62 compatible = "gpio-leds";
65 label = "whr-g300n:red:diag";
66 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
70 label = "whr-g300n:green:router";
71 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
75 label = "whr-g300n:amber:security";
76 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
81 compatible = "gpio-keys-polled";
86 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
92 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_WPS_BUTTON>;
98 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
104 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
105 linux,code = <BTN_3>;
112 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
113 ralink,function = "gpio";
118 mtd-mac-address = <&factory 0x4>;
122 mediatek,portmap = <0x2f>;
126 ralink,mtd-eeprom = <&factory 0>;