ramips: mt7628: use mac-base
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7628an_tplink_tl-wa801nd-v5.dts
1 #include "mt7628an_tplink_8m.dtsi"
2
3 / {
4 compatible = "tplink,tl-wa801nd-v5", "mediatek,mt7628an-soc";
5 model = "TP-Link TL-WA801ND v5";
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 wps {
24 label = "wps";
25 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 led_power: power {
34 label = "green:power";
35 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
36 };
37
38 lan {
39 label = "green:lan";
40 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
41 };
42
43 wlan {
44 label = "green:wlan";
45 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy0tpt";
47 };
48
49 wps_red {
50 label = "red:wps";
51 gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
52 };
53
54 wps_green {
55 label = "green:wps";
56 gpios = <&gpio 42 GPIO_ACTIVE_HIGH>;
57 };
58 };
59 };
60
61 &ehci {
62 status = "disabled";
63 };
64
65 &ohci {
66 status = "disabled";
67 };
68
69 &state_default {
70 gpio {
71 groups = "p0led_an", "p1led_an", "perst", "refclk",
72 "uart1", "wdt", "wled_an";
73 function = "gpio";
74 };
75 };
76
77 &wmac {
78 status = "okay";
79
80 nvmem-cells = <&eeprom_factory_20000>, <&macaddr_factory_f100 0>;
81 nvmem-cell-names = "eeprom", "mac-address";
82 };