ramips: fix MAC address setup for Xiaomi MiWiFi Nano
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620a_lenovo_newifi-y1.dts
1 /dts-v1/;
2
3 #include "mt7620a_lenovo_newifi-y1.dtsi"
4
5 / {
6         compatible = "lenovo,newifi-y1", "ralink,mt7620a-soc";
7         model = "Lenovo Y1";
8
9         aliases {
10                 led-boot = &led_power;
11                 led-failsafe = &led_power;
12                 led-running = &led_power;
13                 led-upgrade = &led_power;
14                 label-mac-device = &ethernet;
15         };
16
17         leds {
18                 compatible = "gpio-leds";
19
20                 led_power: power {
21                         label = "newifi-y1:blue:power";
22                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
23                 };
24
25                 wlan1 {
26                         label = "newifi-y1:blue:wifi";
27                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
28                 };
29
30                 wlan2 {
31                         label = "newifi-y1:blue:wifi5g";
32                         gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
33                 };
34
35                 usb {
36                         label = "newifi-y1:blue:usb";
37                         gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
38                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
39                         linux,default-trigger = "usbport";
40                 };
41
42                 lan {
43                         label = "newifi-y1:blue:lan";
44                         gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
45                 };
46
47                 internet {
48                         label = "newifi-y1:blue:internet";
49                         gpios = <&gpio2 11 GPIO_ACTIVE_LOW>;
50                 };
51         };
52 };
53
54 &ethernet {
55         pinctrl-names = "default";
56         pinctrl-0 = <&ephy_pins>;
57         mtd-mac-address = <&factory 0x28>;
58         mediatek,portmap = "llllw";
59 };