ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_archer-c20-v1.dts
1 #include "mt7620a_tplink_archer.dtsi"
2
3 / {
4 compatible = "tplink,archer-c20-v1", "ralink,mt7620a-soc";
5 model = "TP-Link Archer C20 v1";
6
7 aliases {
8 led-boot = &led_power;
9 led-failsafe = &led_power;
10 led-running = &led_power;
11 led-upgrade = &led_power;
12 };
13
14 leds {
15 compatible = "gpio-leds";
16
17 lan {
18 function = LED_FUNCTION_LAN;
19 color = <LED_COLOR_ID_BLUE>;
20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
21 };
22
23 led_power: power {
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_BLUE>;
26 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
27 default-state = "keep";
28 };
29
30 usb {
31 function = LED_FUNCTION_USB;
32 color = <LED_COLOR_ID_BLUE>;
33 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
34 trigger-sources = <&ohci_port1>, <&ehci_port1>;
35 linux,default-trigger = "usbport";
36 };
37
38 wan {
39 function = LED_FUNCTION_WAN;
40 color = <LED_COLOR_ID_BLUE>;
41 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
42 };
43
44 wan_orange {
45 function = LED_FUNCTION_WAN;
46 color = <LED_COLOR_ID_ORANGE>;
47 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
48 };
49
50 wlan5g {
51 label = "blue:wlan5g";
52 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy0tpt";
54 };
55
56 wlan2g {
57 label = "blue:wlan2g";
58 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
59 linux,default-trigger = "phy1tpt";
60 };
61
62 wps {
63 function = LED_FUNCTION_WPS;
64 color = <LED_COLOR_ID_BLUE>;
65 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
66 };
67 };
68 };
69
70 &state_default {
71 gpio {
72 groups = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt";
73 function = "gpio";
74 };
75 };
76
77 &wmac {
78 pinctrl-names = "default", "pa_gpio";
79 pinctrl-0 = <&pa_pins>;
80 pinctrl-1 = <&pa_gpio_pins>;
81
82 nvmem-cells = <&macaddr_rom_f100 (-2)>;
83 nvmem-cell-names = "mac-address";
84 };
85
86 &wifi {
87 nvmem-cells = <&macaddr_rom_f100 (-1)>;
88 nvmem-cell-names = "mac-address";
89 #include <dt-bindings/leds/common.h>
90
91 };