3 #include "mt7620a.dtsi"
5 #include <dt-bindings/input/input.h>
8 compatible = "ralink,mt7620a-soc";
9 model = "Buffalo WHR-1166D";
12 compatible = "gpio-leds";
15 label = "whr-1166d:red:power";
20 label = "whr-1166d:green:wifi";
25 label = "whr-1166d:green:power";
30 label = "whr-1166d:orange:wifi";
31 gpios = <&gpio0 10 1>;
35 label = "whr-1166d:green:internet";
36 gpios = <&gpio2 17 1>;
40 label = "whr-1166d:orange:router";
41 gpios = <&gpio2 18 1>;
45 label = "whr-1166d:green:router";
46 gpios = <&gpio2 19 1>;
51 compatible = "gpio-keys-polled";
58 gpios = <&gpio2 12 1>;
59 linux,code = <KEY_RESTART>;
64 gpios = <&gpio2 13 1>;
65 linux,code = <KEY_WPS_BUTTON>;
70 gpios = <&gpio2 14 1>;
72 linux,input-type = <EV_SW>;
77 gpios = <&gpio2 15 1>;
79 linux,input-type = <EV_SW>;
94 compatible = "jedec,spi-nor";
96 linux,modalias = "m25p80", "mx25l6405d";
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 {
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>;