ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_archer-c50-v1.dts
1 #include "mt7620a_tplink_archer.dtsi"
2
3 / {
4 compatible = "tplink,archer-c50-v1", "ralink,mt7620a-soc";
5 model = "TP-Link Archer C50 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 label = "green:lan";
19 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
20 };
21
22 led_power: power {
23 label = "green:power";
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
25 default-state = "on";
26 };
27
28 usb {
29 label = "green:usb";
30 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
31 trigger-sources = <&ohci_port1>, <&ehci_port1>;
32 linux,default-trigger = "usbport";
33 };
34
35 wan {
36 label = "green:wan";
37 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
38 };
39
40 wan_orange {
41 label = "orange:wan";
42 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
43 };
44
45 wlan5g {
46 label = "green:wlan5g";
47 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50
51 wlan2g {
52 label = "green:wlan2g";
53 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
55 };
56
57 wps {
58 label = "green:wps";
59 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
60 };
61 };
62 };
63
64 &state_default {
65 gpio {
66 groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "ephy", "spi refclk", "mdio", "wdt", "nd_sd";
67 function = "gpio";
68 };
69 };
70
71 &wmac {
72 pinctrl-names = "default";
73 pinctrl-0 = <&pa_pins>;
74
75 mtd-mac-address = <&rom 0xf100>;
76 mtd-mac-address-increment = <(-2)>;
77 };
78
79 &wifi {
80 mtd-mac-address = <&rom 0xf100>;
81 mtd-mac-address-increment = <(-1)>;
82 };