3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "buffalo,whr-300hp2", "ralink,mt7620a-soc";
10 model = "Buffalo WHR-300HP2";
13 compatible = "gpio-leds";
16 label = "whr-300hp2:red:power";
17 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
21 label = "whr-300hp2:green:wifi";
22 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
26 label = "whr-300hp2:green:power";
27 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
31 label = "whr-300hp2:orange:wifi";
32 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
36 label = "whr-300hp2:green:internet";
37 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
41 label = "whr-300hp2:green:router";
42 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
46 label = "whr-300hp2:orange: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 0x7b0000>;
125 state_default: pinctrl0 {
127 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
128 ralink,function = "gpio";
134 pinctrl-names = "default";
135 pinctrl-0 = <&ephy_pins>;
136 mediatek,portmap = "llllw";
140 mediatek,port4 = "ephy";
144 ralink,mtd-eeprom = <&factory 0>;
145 pinctrl-names = "default";
146 pinctrl-0 = <&pa_pins>;