ramips: convert to new LED color/function format where possible
[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
3 #include <dt-bindings/leds/common.h>
4
5 #include "mt7628an_tplink_8m.dtsi"
6
7 / {
8 compatible = "tplink,tl-wr802n-v4", "mediatek,mt7628an-soc";
9 model = "TP-Link TL-WR802N v4";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_power: power {
32 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
35 };
36 };
37 };
38
39 &ehci {
40 status = "disabled";
41 };
42
43 &ohci {
44 status = "disabled";
45 };
46
47 &state_default {
48 gpio {
49 groups = "refclk", "wdt";
50 function = "gpio";
51 };
52 };
53
54 &ethernet {
55 nvmem-cells = <&macaddr_factory_f100 0>;
56 nvmem-cell-names = "mac-address";
57 };
58
59 &wmac {
60 status = "okay";
61
62 nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>;
63 nvmem-cell-names = "eeprom", "mac-address";
64 };