3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "buffalo,whr-g300n", "ralink,rt3052-soc";
8 model = "Buffalo WHR-G300N";
12 led-failsafe = &led_diag;
13 led-upgrade = &led_diag;
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x800000>;
23 compatible = "fixed-partitions";
35 reg = <0x30000 0x10000>;
39 factory: partition@40000 {
41 reg = <0x40000 0x10000>;
45 compatible = "fixed-layout";
49 eeprom_factory_0: eeprom@0 {
53 macaddr_factory_4: macaddr@4 {
60 compatible = "denx,uimage";
62 reg = <0x50000 0x3a0000>;
67 reg = <0x3f0000 0x10000>;
74 compatible = "gpio-leds";
78 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
82 label = "green:router";
83 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
87 label = "amber:security";
88 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
93 compatible = "gpio-keys-polled";
98 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
99 linux,code = <KEY_RESTART>;
104 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
105 linux,code = <KEY_WPS_BUTTON>;
109 label = "router-off";
110 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
111 linux,code = <BTN_2>;
116 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
117 linux,code = <BTN_3>;
124 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
130 nvmem-cells = <&macaddr_factory_4>;
131 nvmem-cell-names = "mac-address";
135 mediatek,portmap = <0x2f>;
139 nvmem-cells = <&eeprom_factory_0>;
140 nvmem-cell-names = "eeprom";