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-600d", "ralink,mt7620a-soc";
9 model = "Buffalo WHR-600D";
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 eeprom_factory_8000: eeprom@8000 {
134 reg = <0x8000 0x200>;
137 macaddr_factory_4: macaddr@4 {
144 compatible = "denx,uimage";
146 reg = <0x50000 0x7b0000>;
154 groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
160 pinctrl-names = "default";
161 pinctrl-0 = <&ephy_pins>;
163 nvmem-cells = <&macaddr_factory_4>;
164 nvmem-cell-names = "mac-address";
166 mediatek,portmap = "llllw";
170 nvmem-cells = <&eeprom_factory_0>;
171 nvmem-cell-names = "eeprom";
180 compatible = "pci1814,5592";
181 reg = <0x0000 0 0 0 0>;
182 nvmem-cells = <&eeprom_factory_8000>;
183 nvmem-cell-names = "eeprom";