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