ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_archer-c50-v3.dts
1 #include "mt7628an_tplink_8m.dtsi"
2
3 / {
4 compatible = "tplink,archer-c50-v3", "mediatek,mt7628an-soc";
5 model = "TP-Link Archer C50 v3";
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 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 label = "reset";
19 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 rfkill {
24 label = "rfkill";
25 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RFKILL>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 lan {
34 label = "green:lan";
35 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
36 };
37
38 led_power: power {
39 label = "green:power";
40 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
41 };
42
43 wan {
44 label = "green:wan";
45 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
46 };
47
48 wan_orange {
49 label = "orange:wan";
50 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
51 };
52
53 wlan {
54 label = "green:wlan2g";
55 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
56 };
57
58 wlan5 {
59 label = "green:wlan5g";
60 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
61 };
62
63 wps {
64 label = "green:wps";
65 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
66 };
67 };
68 };
69
70 &ehci {
71 status = "disabled";
72 };
73
74 &ohci {
75 status = "disabled";
76 };
77
78 &state_default {
79 gpio {
80 groups = "i2c", "gpio", "p0led_an", "p1led_an", "p2led_an",
81 "p3led_an", "p4led_an", "wdt", "wled_an";
82 function = "gpio";
83 };
84 };
85
86 &esw {
87 mediatek,portmap = <0x3e>;
88 };
89
90 &pcie {
91 status = "okay";
92 };
93
94 &pcie0 {
95 mt76@0,0 {
96 reg = <0x0000 0 0 0 0>;
97 mediatek,mtd-eeprom = <&factory 0x28000>;
98 ieee80211-freq-limit = <5000000 6000000>;
99 mtd-mac-address = <&factory 0xf100>;
100 mtd-mac-address-increment = <(-1)>;
101 };
102 };