ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_tplink_archer-c20-v5.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-split-uboot.dtsi"
6
7 / {
8 compatible = "tplink,archer-c20-v5", "mediatek,mt7628an-soc";
9 model = "TP-Link Archer C20 v5";
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 rfkill {
28 label = "rfkill";
29 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RFKILL>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 led_power: power {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan2g {
44 label = "green:wlan2g";
45 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48
49 wlan5g {
50 label = "green:wlan5g";
51 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54
55 lan {
56 function = LED_FUNCTION_LAN;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
59 };
60
61 wan_green {
62 function = LED_FUNCTION_WAN;
63 color = <LED_COLOR_ID_GREEN>;
64 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
65 };
66
67 wan_orange {
68 function = LED_FUNCTION_WAN;
69 color = <LED_COLOR_ID_ORANGE>;
70 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
71 };
72
73 wps {
74 function = LED_FUNCTION_WPS;
75 color = <LED_COLOR_ID_GREEN>;
76 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
77 };
78 };
79 };
80
81 &ehci {
82 status = "disabled";
83 };
84
85 &ohci {
86 status = "disabled";
87 };
88
89 &state_default {
90 gpio {
91 groups = "i2s", "gpio", "refclk", "p0led_an", "p1led_an",
92 "p2led_an", "p3led_an", "p4led_an", "wdt";
93 function = "gpio";
94 };
95 };
96
97 &pcie {
98 status = "okay";
99 };
100
101 &pcie0 {
102 wifi@0,0 {
103 reg = <0x0000 0 0 0 0>;
104 ieee80211-freq-limit = <5000000 6000000>;
105 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_rom_f100 (-1)>;
106 nvmem-cell-names = "eeprom", "mac-address";
107 };
108 };