3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "buffalo,whr-600d", "ralink,mt7620a-soc";
10 model = "Buffalo WHR-600D";
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
20 compatible = "gpio-leds";
23 label = "whr-600d:red:power";
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
28 label = "whr-600d:green:wifi";
29 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
32 led_power_green: power2 {
33 label = "whr-600d:green:power";
34 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
38 label = "whr-600d:orange:wifi";
39 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
43 label = "whr-600d:green:internet";
44 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
48 label = "whr-600d:green:router";
49 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
53 label = "whr-600d:orange:router";
54 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
59 compatible = "gpio-keys-polled";
64 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
70 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_WPS_BUTTON>;
76 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
78 linux,input-type = <EV_SW>;
83 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
85 linux,input-type = <EV_SW>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <10000000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
114 label = "u-boot-env";
115 reg = <0x30000 0x10000>;
119 factory: partition@40000 {
121 reg = <0x40000 0x10000>;
126 compatible = "denx,uimage";
128 reg = <0x50000 0x7b0000>;
135 state_default: pinctrl0 {
137 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
138 ralink,function = "gpio";
144 pinctrl-names = "default";
145 pinctrl-0 = <&ephy_pins>;
146 mtd-mac-address = <&factory 0x4>;
147 mediatek,portmap = "llllw";
151 mediatek,port4 = "ephy";
155 ralink,mtd-eeprom = <&factory 0>;
164 compatible = "pci1814,5592";
165 reg = <0x0000 0 0 0 0>;
166 ralink,mtd-eeprom = <&factory 0x8000>;