ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7628an_tplink_re200.dtsi
index 633950f287f4a5b9d51685b67d9245dec5de628d..d221a5c7c88016e009926e3747381631f0e2e493 100644 (file)
 };
 
 &ethernet {
-       mtd-mac-address = <&config 0x2008>;
+       nvmem-cells = <&macaddr_config_2008>;
+       nvmem-cell-names = "mac-address";
 };
 
 &wmac {
        status = "okay";
 
        mediatek,mtd-eeprom = <&radio 0x0>;
-       mtd-mac-address = <&config 0x2008>;
+       nvmem-cells = <&macaddr_config_2008>;
+       nvmem-cell-names = "mac-address";
        mac-address-increment = <1>;
 };
 
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&radio 0x8000>;
                ieee80211-freq-limit = <5000000 6000000>;
-               mtd-mac-address = <&config 0x2008>;
+               nvmem-cells = <&macaddr_config_2008>;
+               nvmem-cell-names = "mac-address";
                mac-address-increment = <2>;
        };
 };
+
+&config {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_config_2008: macaddr@2008 {
+               reg = <0x2008 0x6>;
+       };
+};