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