ramips: convert the remaining mtd-mac-address to NVMEM format
[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 mac-address-increment = <(-2)>;
82 };
83
84 &esw {
85 mediatek,portmap = <0x3e>;
86 };
87
88 &state_default {
89 gpio {
90 groups = "i2s", "gpio", "refclk", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt";
91 function = "gpio";
92 };
93 };
94
95 &pcie {
96 status = "okay";
97 };
98
99 &pcie0 {
100 mt76@0,0 {
101 reg = <0x0000 0 0 0 0>;
102 mediatek,mtd-eeprom = <&factory 0x28000>;
103 ieee80211-freq-limit = <5000000 6000000>;
104 nvmem-cells = <&macaddr_factory_f100>;
105 nvmem-cell-names = "mac-address";
106 mac-address-increment = <(-1)>;
107 };
108 };