ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt3052_engenius_esr-9753.dts
index 1f076eaab2f472ab80c84fabf3918c1bc790c578..4501a44c41ff10cc688bafd2eced9e66132237f4 100644 (file)
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "esr-9753:orange:power";
+                       label = "orange:power";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "esr-9753:orange:wps";
+                       label = "orange:wps";
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
        };
@@ -91,7 +91,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>;
+       };
+};