1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "buffalo,whr-300hp2", "ralink,mt7620a-soc";
9 model = "Buffalo WHR-300HP2";
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
19 compatible = "gpio-leds";
22 function = LED_FUNCTION_POWER;
23 color = <LED_COLOR_ID_RED>;
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
29 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
32 led_power_green: power2 {
33 function = LED_FUNCTION_POWER;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
39 label = "orange:wifi";
40 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
44 label = "green:internet";
45 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
49 label = "green:router";
50 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
54 label = "orange:router";
55 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
60 compatible = "gpio-keys";
64 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
70 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_WPS_BUTTON>;
76 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
78 linux,input-type = <EV_SW>;
83 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
85 linux,input-type = <EV_SW>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <10000000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
114 label = "u-boot-env";
115 reg = <0x30000 0x10000>;
119 factory: partition@40000 {
121 reg = <0x40000 0x10000>;
125 compatible = "fixed-layout";
126 #address-cells = <1>;
129 eeprom_factory_0: eeprom@0 {
133 macaddr_factory_4: macaddr@4 {
140 compatible = "denx,uimage";
142 reg = <0x50000 0x7b0000>;
150 groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
156 pinctrl-names = "default";
157 pinctrl-0 = <&ephy_pins>;
159 nvmem-cells = <&macaddr_factory_4>;
160 nvmem-cell-names = "mac-address";
162 mediatek,portmap = "llllw";
166 pinctrl-names = "default", "pa_gpio";
167 pinctrl-0 = <&pa_pins>;
168 pinctrl-1 = <&pa_gpio_pins>;
169 nvmem-cells = <&eeprom_factory_0>;
170 nvmem-cell-names = "eeprom";