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";
72 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_POWER>;
78 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_RESTART>;
84 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_WPS_BUTTON>;
90 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
92 linux,input-type = <EV_SW>;
97 gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
99 linux,input-type = <EV_SW>;
104 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
105 linux,code = <BTN_0>;
106 linux,input-type = <EV_SW>;
111 compatible = "gpio-poweroff";
112 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
120 compatible = "jedec,spi-nor";
122 spi-max-frequency = <10000000>;
125 compatible = "fixed-partitions";
126 #address-cells = <1>;
136 label = "u-boot-env";
137 reg = <0x30000 0x10000>;
141 factory: partition@40000 {
143 reg = <0x40000 0x10000>;
148 compatible = "denx,uimage";
150 reg = <0x50000 0xfb0000>;
157 state_default: pinctrl0 {
159 ralink,group = "i2c", "uart2", "uart3", "rgmii2", "sdhci";
160 ralink,function = "gpio";
171 reg = <0x0000 0 0 0 0>;
172 ralink,mtd-eeprom = <&factory 0x8000>;
178 reg = <0x0000 0 0 0 0>;
179 mediatek,mtd-eeprom = <&factory 0x0000>;
184 mtd-mac-address = <&factory 0x4>;