ath79: fix MAC address assignment for TP-Link ar7241 devices
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_pisen_ts-d084.dts
index 40ebcccd2b7ccf9bf82b564784e078c4db2ff6a9..58ef4ab0910cd22fe220c15f72ab4d3393ffbd57 100644 (file)
@@ -10,7 +10,6 @@
        compatible = "pisen,ts-d084", "qca,ar9331";
 
        aliases {
-               serial0 = &uart;
                led-boot = &led_system;
                led-failsafe = &led_system;
                led-running = &led_system;
@@ -33,7 +32,7 @@
                compatible = "gpio-leds";
 
                led_system: system {
-                       label = "ts-d084:blue:system";
+                       label = "blue:system";
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
        };
@@ -76,7 +75,8 @@
 &eth0 {
        status = "okay";
 
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
 
        gmac-config {
                device = <&gmac>;
        compatible = "syscon", "simple-mfd";
 };
 
-&uart {
-       status = "okay";
-};
-
 &usb {
        dr_mode = "host";
        status = "okay";
 &wmac {
        status = "okay";
        mtd-cal-data = <&art 0x1000>;
-       mtd-mac-address = <&uboot 0x1fc00>;
+       nvmem-cells = <&macaddr_uboot_1fc00>;
+       nvmem-cell-names = "mac-address";
+};
+
+&uboot {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_uboot_1fc00: macaddr@1fc00 {
+               reg = <0x1fc00 0x6>;
+       };
 };