ramips: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_dlink_dir-860l-b1.dts
index f843f628013df3c9b680674ee482ab30775b0589..26f142dcffd2f14cb14d90c28fb7023dc9caae72 100644 (file)
 };
 
 &gmac0 {
-       mtd-mac-address = <&radio 0x4>;
+       nvmem-cells = <&macaddr_radio_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&radio {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_radio_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};