5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "buffalo,wsr-600dhp", "mediatek,mt7621-soc";
10 model = "Buffalo WSR-600DHP";
13 device_type = "memory";
14 reg = <0x0 0x4000000>;
18 bootargs = "console=ttyS0,57600";
22 compatible = "gpio-leds";
25 label = "wsr-600:green:power";
26 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
30 label = "wsr-600:orange:wifi";
31 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
35 label = "wsr-600:orange:diag";
36 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
40 label = "wsr-600:green:wifi";
41 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
45 label = "wsr-600:orange:router";
46 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
50 label = "wsr-600:green:router";
51 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
55 label = "wsr-600:orange:internet";
56 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
60 label = "wsr-600:green:internet";
61 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
66 compatible = "gpio-keys-polled";
73 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_POWER>;
79 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
85 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_WPS_BUTTON>;
91 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
93 linux,input-type = <EV_SW>;
98 gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
100 linux,input-type = <EV_SW>;
105 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
106 linux,code = <BTN_0>;
107 linux,input-type = <EV_SW>;
112 compatible = "gpio-poweroff";
113 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
121 #address-cells = <1>;
123 compatible = "jedec,spi-nor";
125 spi-max-frequency = <10000000>;
126 m25p,chunked-io = <32>;
135 label = "u-boot-env";
136 reg = <0x30000 0x10000>;
140 factory: partition@40000 {
142 reg = <0x40000 0x10000>;
148 reg = <0x50000 0xfb0000>;
154 state_default: pinctrl0 {
156 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
157 ralink,function = "gpio";
167 reg = <0x0000 0 0 0 0>;
169 ralink,mtd-eeprom = <&factory 0x8000>;
175 reg = <0x0000 0 0 0 0>;
177 mediatek,mtd-eeprom = <&factory 0x0000>;