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 spi-max-frequency = <10000000>;
105 label = "u-boot-env";
106 reg = <0x30000 0x10000>;
110 factory: partition@40000 {
112 reg = <0x40000 0x10000>;
118 reg = <0x50000 0xfb0000>;
124 state_default: pinctrl0 {
126 ralink,group = "i2c", "uartf", "wled", "nd_sd";
127 ralink,function = "gpio";
133 pinctrl-names = "default";
134 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
138 phy-handle = <&phy5>;
145 phy5: ethernet-phy@5 {
147 phy-mode = "rgmii-rxid";
153 mediatek,port4 = "ephy";
157 ralink,mtd-eeprom = <&factory 0>;
165 compatible = "pci0,0";
166 reg = <0x0000 0 0 0 0>;
167 mediatek,mtd-eeprom = <&factory 0x8000>;