ath79: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_comfast_cf-e313ac.dts
index a7c2571fda3af1bcc93b225f1049124e16ab0f23..c187521351919c9a809028536779c67e540a7889 100644 (file)
                pinctrl-names = "default";
 
                wlan {
-                       label = "cf-e313ac:green:wlan";
+                       label = "green:wlan";
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                lan {
-                       label = "cf-e313ac:green:lan";
+                       label = "green:lan";
                        gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
                };
 
                wan {
-                       label = "cf-e313ac:green:wan";
+                       label = "green:wan";
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
                rssilow {
-                       label = "cf-e313ac:red:rssilow";
+                       label = "red:rssilow";
                        gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
                };
 
                rssimediumlow {
-                       label = "cf-e313ac:red:rssimediumlow";
+                       label = "red:rssimediumlow";
                        gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
                };
 
                rssimediumhigh {
-                       label = "cf-e313ac:green:rssimediumhigh";
+                       label = "green:rssimediumhigh";
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                led_rssihigh: rssihigh {
-                       label = "cf-e313ac:green:rssihigh";
+                       label = "green:rssihigh";
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
        };
@@ -72,7 +72,6 @@
 
 &spi {
        status = "okay";
-       num-cs = <1>;
 
        flash@0 {
                compatible = "jedec,spi-nor";
        };
 };
 
-&uart {
-       status = "okay";
-};
-
 &eth0 {
        status = "okay";
 
        phy-handle = <&swphy0>;
 
-       mtd-mac-address = <&art 0x1002>;
+       nvmem-cells = <&macaddr_art_1002>;
+       nvmem-cell-names = "mac-address";
 
        gmac-config {
                device = <&gmac>;
 };
 
 &eth1 {
-       mtd-mac-address = <&art 0x0>;
+       nvmem-cells = <&macaddr_art_0>;
+       nvmem-cell-names = "mac-address";
 };
 
 &pcie0 {
                reg = <0 0 0 0 0>;
        };
 };
+
+&art {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_art_0: macaddr@0 {
+               reg = <0x0 0x6>;
+       };
+
+       macaddr_art_1002: macaddr@1002 {
+               reg = <0x1002 0x6>;
+       };
+};