ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_kimax_u25awf-h1.dts
index 9c21d94d736ba1cdcd42a806d079d05feb63c326..87e6222c534e8f2ef3ae469e172d06b6bb919b4b 100644 (file)
                compatible = "gpio-leds";
 
                led_wifi: wifi {
-                       label = "u25awf:red:wifi";
+                       label = "red:wifi";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                };
 
                lan {
-                       label = "u25awf:green:lan";
+                       label = "green:lan";
                        gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
                };
        };
@@ -96,7 +96,8 @@
 };
 
 &ethernet {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};