ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9331_pisen_ts-d084.dts
index 1dc659b9e438dd6b1b3700506512f094ab89c3b6..4868ba2fa0e4e9dedccbd748a9f690a838b0fd92 100644 (file)
@@ -1,21 +1,20 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "ar9331.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "ar9331.dtsi"
-
 / {
        model = "Pisen TS-D084";
        compatible = "pisen,ts-d084", "qca,ar9331";
 
        aliases {
-               serial0 = &uart;
                led-boot = &led_system;
                led-failsafe = &led_system;
                led-running = &led_system;
                led-upgrade = &led_system;
+               label-mac-device = &wmac;
        };
 
        keys {
@@ -33,7 +32,7 @@
                compatible = "gpio-leds";
 
                led_system: system {
-                       label = "ts-d084:blue:system";
+                       label = "blue:system";
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                };
        };
                                reg = <0x0 0x20000>;
                                label = "u-boot";
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_uboot_1fc00: macaddr@1fc00 {
+                                               reg = <0x1fc00 0x6>;
+                                       };
+                               };
                        };
 
                        firmware: partition@20000 {
@@ -76,7 +85,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";
 };
 
-&gpio {
-       status = "okay";
-};
-
-&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";
 };