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