ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_archer-c20i.dts
1 #include "mt7620a_tplink_archer.dtsi"
2
3 / {
4 compatible = "tplink,archer-c20i", "ralink,mt7620a-soc";
5 model = "TP-Link Archer C20i";
6
7 aliases {
8 led-boot = &led_wps;
9 led-failsafe = &led_wps;
10 led-running = &led_wps;
11 led-upgrade = &led_wps;
12 label-mac-device = &ethernet;
13 };
14
15 leds {
16 compatible = "gpio-leds";
17
18 lan {
19 label = "blue:lan";
20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
21 };
22
23 usb {
24 label = "blue:usb";
25 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
26 trigger-sources = <&ohci_port1>, <&ehci_port1>;
27 linux,default-trigger = "usbport";
28 };
29
30 led_wps: wps {
31 label = "blue:wps";
32 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
33 };
34
35 wan {
36 label = "blue:wan";
37 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
38 };
39
40 wlan {
41 label = "blue:wlan";
42 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1tpt";
44 };
45 };
46 };
47
48 &state_default {
49 gpio {
50 groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk";
51 function = "gpio";
52 };
53 };
54
55 &wmac {
56 mtd-mac-address = <&rom 0xf100>;
57 };
58
59 &wifi {
60 mtd-mac-address = <&rom 0xf100>;
61 mtd-mac-address-increment = <(-1)>;
62 };