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