Define nvmem-cells and convert mtd-mac-address to nvmem implementation.
The conversion is done with an automated script.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
};
&gmac0 {
- mtd-mac-address = <&art 0x1006>;
+ nvmem-cells = <&macaddr_art_1006>;
+ nvmem-cell-names = "mac-address";
};
&gmac1 {
- mtd-mac-address = <&art 0x5006>;
+ nvmem-cells = <&macaddr_art_5006>;
+ nvmem-cell-names = "mac-address";
};
&nand {
status = "okay";
qcom,ath10k-calibration-variant = "CM520-79F";
};
+
+&art {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_1006: macaddr@1006 {
+ reg = <0x1006 0x6>;
+ };
+
+ macaddr_art_5006: macaddr@5006 {
+ reg = <0x5006 0x6>;
+ };
+};
};
&gmac0 {
- mtd-mac-address = <&orgdata 0x20>;
+ nvmem-cells = <&macaddr_orgdata_20>;
+ nvmem-cell-names = "mac-address";
};
&gmac1 {
- mtd-mac-address = <&orgdata 0x20>;
+ nvmem-cells = <&macaddr_orgdata_20>;
+ nvmem-cell-names = "mac-address";
};
&usb3_ss_phy {
&usb3_hs_phy {
status = "okay";
};
+
+&orgdata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_orgdata_20: macaddr@20 {
+ reg = <0x20 0x6>;
+ };
+};