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 compatible = "gpio-leds";
16 label = "whr-1166d:red:power";
17 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
21 label = "whr-1166d:green:wifi";
22 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
26 label = "whr-1166d:green:power";
27 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
31 label = "whr-1166d:orange:wifi";
32 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
36 label = "whr-1166d:green:internet";
37 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
41 label = "whr-1166d:orange:router";
42 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
46 label = "whr-1166d:green:router";
47 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
52 compatible = "gpio-keys-polled";
59 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
65 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_WPS_BUTTON>;
71 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
73 linux,input-type = <EV_SW>;
78 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
80 linux,input-type = <EV_SW>;
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <10000000>;
106 label = "u-boot-env";
107 reg = <0x30000 0x10000>;
111 factory: partition@40000 {
113 reg = <0x40000 0x10000>;
119 reg = <0x50000 0xfb0000>;
125 state_default: pinctrl0 {
127 ralink,group = "i2c", "uartf", "wled", "nd_sd";
128 ralink,function = "gpio";
134 pinctrl-names = "default";
135 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
139 phy-handle = <&phy5>;
146 phy5: ethernet-phy@5 {
148 phy-mode = "rgmii-rxid";
154 mediatek,port4 = "ephy";
158 ralink,mtd-eeprom = <&factory 0>;
166 compatible = "pci0,0";
167 reg = <0x0000 0 0 0 0>;
168 mediatek,mtd-eeprom = <&factory 0x8000>;
169 ieee80211-freq-limit = <5000000 6000000>;