ramips: mt7628: use mac-base
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_archer-c20-v4.dts
1 #include "mt7628an_tplink_8m.dtsi"
2
3 / {
4 compatible = "tplink,archer-c20-v4", "mediatek,mt7628an-soc";
5 model = "TP-Link Archer C20 v4";
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 = "green:lan";
19 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
20 };
21
22 led_power: power {
23 label = "green:power";
24 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
25 };
26
27 wan {
28 label = "green:wan";
29 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
30 };
31
32 wan_orange {
33 label = "orange:wan";
34 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
35 };
36
37 wlan5g {
38 label = "green:wlan5g";
39 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy1tpt";
41 };
42
43 wlan2g {
44 label = "green:wlan2g";
45 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48
49 wps {
50 label = "green:wps";
51 gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
52 };
53 };
54
55 keys {
56 compatible = "gpio-keys";
57
58 reset {
59 label = "reset";
60 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RESTART>;
62 };
63
64 rfkill {
65 label = "rfkill";
66 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_RFKILL>;
68 };
69 };
70 };
71
72 &ehci {
73 status = "disabled";
74 };
75
76 &ohci {
77 status = "disabled";
78 };
79
80 &wmac {
81 status = "okay";
82
83 nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 (-2)>;
84 nvmem-cell-names = "eeprom", "mac-address";
85 };
86
87 &esw {
88 mediatek,portmap = <0x3e>;
89 };
90
91 &state_default {
92 gpio {
93 groups = "i2s", "gpio", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt";
94 function = "gpio";
95 };
96 };
97
98 &pcie {
99 status = "okay";
100 };
101
102 &pcie0 {
103 mt76@0,0 {
104 reg = <0x0000 0 0 0 0>;
105 ieee80211-freq-limit = <5000000 6000000>;
106 nvmem-cells = <&eeprom_factory_28000>, <&macaddr_factory_f100 (-1)>;
107 nvmem-cell-names = "eeprom", "mac-address";
108 };
109 };