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-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
20 compatible = "gpio-leds";
23 label = "whr-300hp2:red:power";
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
28 label = "whr-300hp2:green:wifi";
29 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
32 led_power_green: power2 {
33 label = "whr-300hp2:green:power";
34 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
38 label = "whr-300hp2:orange:wifi";
39 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
43 label = "whr-300hp2:green:internet";
44 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
48 label = "whr-300hp2:green:router";
49 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
53 label = "whr-300hp2:orange:router";
54 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
59 compatible = "gpio-keys";
63 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_RESTART>;
69 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_WPS_BUTTON>;
75 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
77 linux,input-type = <EV_SW>;
82 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
84 linux,input-type = <EV_SW>;
97 compatible = "jedec,spi-nor";
99 spi-max-frequency = <10000000>;
102 compatible = "fixed-partitions";
103 #address-cells = <1>;
113 label = "u-boot-env";
114 reg = <0x30000 0x10000>;
118 factory: partition@40000 {
120 reg = <0x40000 0x10000>;
125 compatible = "denx,uimage";
127 reg = <0x50000 0x7b0000>;
134 state_default: pinctrl0 {
136 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
137 ralink,function = "gpio";
143 pinctrl-names = "default";
144 pinctrl-0 = <&ephy_pins>;
145 mtd-mac-address = <&factory 0x4>;
146 mediatek,portmap = "llllw";
150 mediatek,port4 = "ephy";
154 ralink,mtd-eeprom = <&factory 0>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&pa_pins>;