aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2021-04-02 23:53:52 +0200
committerPetr Štetiar <ynezz@true.cz>2021-07-19 14:51:22 +0200
commit821b6640994df32d20a087a01b7c368187a93c24 (patch)
treed65688130b1dc7030d3c5978322c0c39c42b4527 /target/linux
parent1e6f330ccfa91f8a6860cfc768299490e3c08603 (diff)
downloadupstream-821b6640994df32d20a087a01b7c368187a93c24.tar.gz
upstream-821b6640994df32d20a087a01b7c368187a93c24.tar.bz2
upstream-821b6640994df32d20a087a01b7c368187a93c24.zip
ipq40xx: convert mtd-mac-address to nvmem implementation
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>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts20
-rw-r--r--target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts16
2 files changed, 32 insertions, 4 deletions
diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts
index 167094d4a2..6c97cede7b 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-cm520-79f.dts
@@ -197,11 +197,13 @@
};
&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 {
@@ -352,3 +354,17 @@
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>;
+ };
+};
diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts
index cdf0cfe644..fb0cec59f7 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-wtr-m2133hp.dts
@@ -403,11 +403,13 @@
};
&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 {
@@ -417,3 +419,13 @@
&usb3_hs_phy {
status = "okay";
};
+
+&orgdata {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_orgdata_20: macaddr@20 {
+ reg = <0x20 0x6>;
+ };
+};