ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_wallys_dr531.dts
index abf821b11b505ee2f1953fd52987dc37b4f6e9f9..9e90f99728ff83c31f373c00f1d0d1ffdb211e59 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Wallys DR531";
@@ -41,7 +42,8 @@
                compatible = "gpio-leds";
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
@@ -66,7 +68,8 @@
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
        };
@@ -76,7 +79,8 @@
        status = "okay";
 
        phy-handle = <&swphy4>;
-       mtd-mac-address = <&env 0xf818>;
+       nvmem-cells = <&macaddr_env_f818>;
+       nvmem-cell-names = "mac-address";
 };
 
 &eth1 {
@@ -84,7 +88,8 @@
         * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
        compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
 
-       mtd-mac-address = <&env 0xf810>;
+       nvmem-cells = <&macaddr_env_f810>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie0 {
                        env: partition@30000 {
                                label = "u-boot-env";
                                reg = <0x030000 0x010000>;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_env_f810: macaddr@f810 {
+                                               reg = <0xf810 0x6>;
+                                       };
+
+                                       macaddr_env_f818: macaddr@f818 {
+                                               reg = <0xf818 0x6>;
+                                       };
+                               };
                        };
 
                        partition@40000 {