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