1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "buffalo,whr-600d", "ralink,mt7620a-soc";
8 model = "Buffalo WHR-600D";
11 led-boot = &led_power_green;
12 led-failsafe = &led_power_green;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_green;
18 compatible = "gpio-leds";
21 label = "whr-600d:red:power";
22 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
26 label = "whr-600d:green:wifi";
27 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
30 led_power_green: power2 {
31 label = "whr-600d:green:power";
32 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
36 label = "whr-600d:orange:wifi";
37 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
41 label = "whr-600d:green:internet";
42 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
46 label = "whr-600d:green:router";
47 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
51 label = "whr-600d:orange:router";
52 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-keys";
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>;
95 compatible = "jedec,spi-nor";
97 spi-max-frequency = <10000000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
111 label = "u-boot-env";
112 reg = <0x30000 0x10000>;
116 factory: partition@40000 {
118 reg = <0x40000 0x10000>;
123 compatible = "denx,uimage";
125 reg = <0x50000 0x7b0000>;
133 groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
139 pinctrl-names = "default";
140 pinctrl-0 = <&ephy_pins>;
142 mtd-mac-address = <&factory 0x4>;
144 mediatek,portmap = "llllw";
148 mediatek,port4 = "ephy";
152 ralink,mtd-eeprom = <&factory 0x0>;
161 compatible = "pci1814,5592";
162 reg = <0x0000 0 0 0 0>;
163 ralink,mtd-eeprom = <&factory 0x8000>;