e01826841d872a916b13805cbfa7ec43da35c39d
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7628an_tplink_archer-c20-v5.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7628an_tplink_8m-split-uboot.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 compatible = "tplink,archer-c20-v5", "mediatek,mt7628an-soc";
11 model = "TP-Link Archer C20 v5";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28
29 rfkill {
30 label = "rfkill";
31 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RFKILL>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 led_power: power {
40 label = "archer-c20-v5:green:power";
41 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
42 };
43
44 wlan2g {
45 label = "archer-c20-v5:green:wlan2g";
46 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
48 };
49
50 wlan5g {
51 label = "archer-c20-v5:green:wlan5g";
52 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy1tpt";
54 };
55
56 lan {
57 label = "archer-c20-v5:green:lan";
58 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
59 };
60
61 wan_green {
62 label = "archer-c20-v5:green:wan";
63 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
64 };
65
66 wan_orange {
67 label = "archer-c20-v5:orange:wan";
68 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
69 };
70
71 wps {
72 label = "archer-c20-v5:green:wps";
73 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
74 };
75 };
76 };
77
78 &state_default {
79 gpio {
80 ralink,group = "i2s", "gpio", "refclk", "p0led_an", "p1led_an",
81 "p2led_an", "p3led_an", "p4led_an", "wdt";
82 ralink,function = "gpio";
83 };
84 };
85
86 &pcie {
87 status = "okay";
88 };
89
90 &pcie0 {
91 wifi@0,0 {
92 reg = <0x0000 0 0 0 0>;
93 mediatek,mtd-eeprom = <&radio 0x8000>;
94 ieee80211-freq-limit = <5000000 6000000>;
95 mtd-mac-address = <&rom 0xf100>;
96 mtd-mac-address-increment = <(-1)>;
97 };
98 };