59e109c8a2678e1c0e0683c9bd844a04c591f0fd
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_archer-c20-v1.dts
1 /dts-v1/;
2
3 #include "mt7620a_tplink_archer.dtsi"
4
5 / {
6 compatible = "tplink,archer-c20-v1", "ralink,mt7620a-soc";
7 model = "TP-Link Archer C20 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-c20-v1:blue:lan";
21 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
22 };
23
24 led_power: power {
25 label = "archer-c20-v1:blue:power";
26 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
27 default-state = "keep";
28 };
29
30 usb {
31 label = "archer-c20-v1:blue:usb";
32 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&ohci_port1>, <&ehci_port1>;
34 linux,default-trigger = "usbport";
35 };
36
37 wan {
38 label = "archer-c20-v1:blue:wan";
39 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
40 };
41
42 wan_orange {
43 label = "archer-c20-v1:orange:wan";
44 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
45 };
46
47 wlan5g {
48 label = "archer-c20-v1:blue:wlan5g";
49 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
50 };
51
52 wlan2g {
53 label = "archer-c20-v1:blue:wlan2g";
54 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
55 };
56
57 wps {
58 label = "archer-c20-v1:blue:wps";
59 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
60 };
61 };
62 };
63
64 &state_default {
65 gpio {
66 ralink,group = "i2c", "uartf", "wled", "ephy", "spi refclk", "wdt";
67 ralink,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 };