ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt5350_zorlik_zl5900v2.dts
index 04b2ce740882f657d415a0af70ff18e35c45e1a7..4ff2d57f72966da93bb1fe8869ba824b2477055c 100644 (file)
                compatible = "gpio-leds";
 
                lan {
-                       label = "zl5900v2:green:lan";
+                       label = "green:lan";
                        gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
                };
 
                led_power: power {
-                       label = "zl5900v2:blue:power";
+                       label = "blue:power";
                        gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
                };
        };
@@ -88,7 +88,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &esw {
 &wmac {
        ralink,mtd-eeprom = <&factory 0x0>;
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};