ramips: add TP-Link TL-WR802N-v4 support
[openwrt/openwrt.git] / target / linux / ramips / dts / TL-WR802NV4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "TPLINK-8M.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 compatible = "tplink,tl-wr802n-v4", "mediatek,mt7628an-soc";
11 model = "TP-Link TL-WR802N v4";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys-polled";
22 poll-interval = <20>;
23
24 reset {
25 label = "reset";
26 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power: power {
35 label = "tl-wr802n-v4:green:power";
36 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
37 };
38 };
39 };
40
41 &pinctrl {
42 state_default: pinctrl0 {
43 gpio {
44 ralink,group = "refclk", "wdt";
45 ralink,function = "gpio";
46 };
47 };
48 };
49
50 &ethernet {
51 mtd-mac-address = <&factory 0xf100>;
52 mediatek,portmap = "l";
53 };