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