3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "buffalo,whr-1166d", "ralink,mt7620a-soc";
10 model = "Buffalo WHR-1166D";
13 led-status = &led_power_green;
17 compatible = "gpio-leds";
20 label = "whr-1166d:red:power";
21 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
25 label = "whr-1166d:green:wifi";
26 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
29 led_power_green: power2 {
30 label = "whr-1166d:green:power";
31 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
35 label = "whr-1166d:orange:wifi";
36 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
40 label = "whr-1166d:green:internet";
41 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
45 label = "whr-1166d:orange:router";
46 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
50 label = "whr-1166d:green:router";
51 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-keys-polled";
63 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_RESTART>;
69 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_WPS_BUTTON>;
75 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
77 linux,input-type = <EV_SW>;
82 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
84 linux,input-type = <EV_SW>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <10000000>;
110 label = "u-boot-env";
111 reg = <0x30000 0x10000>;
115 factory: partition@40000 {
117 reg = <0x40000 0x10000>;
123 reg = <0x50000 0xfb0000>;
129 state_default: pinctrl0 {
131 ralink,group = "i2c", "uartf", "wled", "nd_sd";
132 ralink,function = "gpio";
138 pinctrl-names = "default";
139 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
143 phy-handle = <&phy5>;
150 phy5: ethernet-phy@5 {
152 phy-mode = "rgmii-rxid";
158 mediatek,port4 = "ephy";
162 ralink,mtd-eeprom = <&factory 0>;
170 compatible = "pci0,0";
171 reg = <0x0000 0 0 0 0>;
172 mediatek,mtd-eeprom = <&factory 0x8000>;
173 ieee80211-freq-limit = <5000000 6000000>;