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 led-status = &led_power_green;
17 compatible = "gpio-leds";
20 label = "whr-300hp2:red:power";
21 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
25 label = "whr-300hp2:green:wifi";
26 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
29 led_power_green: power2 {
30 label = "whr-300hp2:green:power";
31 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
35 label = "whr-300hp2:orange:wifi";
36 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
40 label = "whr-300hp2:green:internet";
41 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
45 label = "whr-300hp2:green:router";
46 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
50 label = "whr-300hp2:orange:router";
51 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-keys-polled";
61 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
67 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_WPS_BUTTON>;
73 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
75 linux,input-type = <EV_SW>;
80 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
82 linux,input-type = <EV_SW>;
97 compatible = "jedec,spi-nor";
99 spi-max-frequency = <10000000>;
108 label = "u-boot-env";
109 reg = <0x30000 0x10000>;
113 factory: partition@40000 {
115 reg = <0x40000 0x10000>;
121 reg = <0x50000 0x7b0000>;
127 state_default: pinctrl0 {
129 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
130 ralink,function = "gpio";
136 pinctrl-names = "default";
137 pinctrl-0 = <&ephy_pins>;
138 mediatek,portmap = "llllw";
142 mediatek,port4 = "ephy";
146 ralink,mtd-eeprom = <&factory 0>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&pa_pins>;