ath79: ag71xx: replace ag71xx_get_phy_if_mode_name() with phy_modes()
[oweals/openwrt.git] / target / linux / ath79 / dts / ar9342_ubnt_xw.dtsi
index 8db565e8b9b4a6d8e9a1b860175319c81a0470a3..84fc22215667244c390a1104a46548b5c7c89e6c 100644 (file)
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
@@ -9,7 +9,14 @@
        compatible = "ubnt,xw", "qca,ar9342";
        model = "Ubiquiti Networks XW board";
 
-       gpio-leds {
+       aliases {
+               led-boot = &system;
+               led-running = &system;
+               led-upgrade = &system;
+               led-failsafe = &system;
+       };
+
+       leds {
                compatible = "gpio-leds";
 
                link1 {
@@ -27,7 +34,7 @@
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
-               link4 {
+               system: link4 {
                        label = "ubnt:green:link4";
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
@@ -84,6 +91,7 @@
                        };
 
                        partition@50000 {
+                               compatible = "denx,uimage";
                                label = "firmware";
                                reg = <0x050000 0x760000>;
                        };
        mtd-cal-data = <&eeprom 0x1000>;
        mtd-mac-address = <&eeprom 0x1002>;
 };
+
+&eth0 {
+       mtd-mac-address = <&eeprom 0x0>;
+};