summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev2023-11-26 01:36:49 +0000
committerRosen Penev2023-11-26 03:43:35 +0000
commitde1d9da150a5381e8cbc363be892ebb698188db8 (patch)
treedb556868df75a76b6f2f39e11fbcd867b68da42a
parentede82f35ebede447b4203d660a6f9c643868eb73 (diff)
downloadopenwrt-de1d9da150a5381e8cbc363be892ebb698188db8.tar.gz
ath79: tp9343: convert to nvmem-layout
Allows getting rid of deprecated mac-address-increment. Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r--target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi3
-rw-r--r--target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v4.dts2
-rw-r--r--target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v6.dts2
-rw-r--r--target/linux/ath79/dts/tp9343_tplink_tl-wr941hp-v1.dts29
-rw-r--r--target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi27
5 files changed, 32 insertions, 31 deletions
diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi b/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi
index b2c009c346..b38cd41817 100644
--- a/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi
+++ b/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v3.dtsi
@@ -63,7 +63,6 @@
};
&eth1 {
- nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00 (-1)>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
};
diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v4.dts b/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v4.dts
index daf7779314..f837dccff9 100644
--- a/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v4.dts
+++ b/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v4.dts
@@ -66,6 +66,6 @@
};
&eth1 {
- nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v6.dts b/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v6.dts
index 409f288f07..ccb3bb1670 100644
--- a/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v6.dts
+++ b/target/linux/ath79/dts/tp9343_tplink_tl-wr940n-v6.dts
@@ -30,6 +30,6 @@
};
&eth1 {
- nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00 0>;
nvmem-cell-names = "mac-address";
};
diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wr941hp-v1.dts b/target/linux/ath79/dts/tp9343_tplink_tl-wr941hp-v1.dts
index d4638f1acf..61adc08289 100644
--- a/target/linux/ath79/dts/tp9343_tplink_tl-wr941hp-v1.dts
+++ b/target/linux/ath79/dts/tp9343_tplink_tl-wr941hp-v1.dts
@@ -120,6 +120,18 @@
label = "config";
reg = <0x750000 0x0a0000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_8: macaddr@8 {
+ compatible = "mac-base";
+ reg = <0x8 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
art: partition@7f0000 {
@@ -136,15 +148,14 @@
phy-handle = <&swphy0>;
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&eth1 {
status = "okay";
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 0>;
nvmem-cell-names = "mac-address";
};
@@ -152,16 +163,6 @@
status = "okay";
mtd-cal-data = <&art 0x1000>;
- nvmem-cells = <&macaddr_config_8>;
+ nvmem-cells = <&macaddr_config_8 0>;
nvmem-cell-names = "mac-address";
};
-
-&config {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_config_8: macaddr@8 {
- reg = <0x8 0x6>;
- };
-};
diff --git a/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi b/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi
index 3a38b8025a..89dff43405 100644
--- a/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi
+++ b/target/linux/ath79/dts/tp9343_tplink_tl-wx.dtsi
@@ -28,6 +28,18 @@
label = "u-boot";
reg = <0x000000 0x020000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_uboot_1fc00: macaddr@1fc00 {
+ compatible = "mac-base";
+ reg = <0x1fc00 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
partition@20000 {
@@ -50,9 +62,8 @@
phy-handle = <&swphy4>;
- nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&eth1 {
@@ -63,16 +74,6 @@
status = "okay";
mtd-cal-data = <&art 0x1000>;
- nvmem-cells = <&macaddr_uboot_1fc00>;
+ nvmem-cells = <&macaddr_uboot_1fc00 0>;
nvmem-cell-names = "mac-address";
};
-
-&uboot {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_uboot_1fc00: macaddr@1fc00 {
- reg = <0x1fc00 0x6>;
- };
-};