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 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 bootargs = "console=ttyS0,57600";
24 compatible = "gpio-leds";
27 label = "wsr-600:green:power";
28 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
32 label = "wsr-600:orange:wifi";
33 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
37 label = "wsr-600:orange:diag";
38 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
42 label = "wsr-600:green:wifi";
43 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
47 label = "wsr-600:orange:router";
48 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
52 label = "wsr-600:green:router";
53 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
57 label = "wsr-600:orange:internet";
58 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
62 label = "wsr-600:green:internet";
63 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
68 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 compatible = "jedec,spi-nor";
123 spi-max-frequency = <10000000>;
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
137 label = "u-boot-env";
138 reg = <0x30000 0x10000>;
142 factory: partition@40000 {
144 reg = <0x40000 0x10000>;
149 compatible = "denx,uimage";
151 reg = <0x50000 0xfb0000>;
158 state_default: pinctrl0 {
160 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
161 ralink,function = "gpio";
172 reg = <0x0000 0 0 0 0>;
173 ralink,mtd-eeprom = <&factory 0x8000>;
179 reg = <0x0000 0 0 0 0>;
180 mediatek,mtd-eeprom = <&factory 0x0000>;
185 mtd-mac-address = <&factory 0x4>;