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