1 //SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7620a.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "trendnet,tew-810dr", "ralink,mt7620a-soc";
11 model = "TRENDnet TEW-810DR";
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_green;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_green;
18 label-mac-device = ðernet;
22 compatible = "gpio-keys";
26 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
38 compatible = "gpio-leds";
40 led_power_green: power_green {
41 label = "tew-810dr:green:power";
42 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
46 label = "tew-810dr:orange:wan";
47 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
51 label = "tew-810dr:green:wan";
52 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
56 label = "tew-810dr:orange:power";
57 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
66 compatible = "jedec,spi-nor";
68 spi-max-frequency = <50000000>;
71 compatible = "fixed-partitions";
83 reg = <0x30000 0x10000>;
87 factory: partition@40000 {
89 reg = <0x40000 0x10000>;
93 factory5g: partition@50000 {
95 reg = <0x50000 0x10000>;
100 label = "Wolf_Config";
101 reg = <0x60000 0x10000>;
107 reg = <0x70000 0x80000>;
113 reg = <0xf0000 0x80000>;
118 compatible = "denx,uimage";
120 reg = <0x170000 0x690000>;
128 groups = "i2c", "uartf", "ephy";
134 mtd-mac-address = <&factory 0x28>;
135 mediatek,portmap = "llllw";
139 mediatek,port4 = "ephy";
147 pinctrl-names = "default";
148 pinctrl-0 = <&pa_pins>;
150 ralink,mtd-eeprom = <&factory 0x0>;
151 mtd-mac-address = <&factory 0x28>;
156 reg = <0x0000 0 0 0 0>;
157 mediatek,mtd-eeprom = <&factory 0x8000>;
158 ieee80211-freq-limit = <5000000 6000000>;
159 mtd-mac-address = <&factory 0x28>;
160 mtd-mac-address-increment = <2>;