aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2023-11-25 17:36:49 -0800
committerRosen Penev <rosenp@gmail.com>2023-11-25 19:43:35 -0800
commitde1d9da150a5381e8cbc363be892ebb698188db8 (patch)
treedb556868df75a76b6f2f39e11fbcd867b68da42a /target/linux
parentede82f35ebede447b4203d660a6f9c643868eb73 (diff)
downloadupstream-de1d9da150a5381e8cbc363be892ebb698188db8.tar.gz
upstream-de1d9da150a5381e8cbc363be892ebb698188db8.tar.bz2
upstream-de1d9da150a5381e8cbc363be892ebb698188db8.zip
ath79: tp9343: convert to nvmem-layout
Allows getting rid of deprecated mac-address-increment. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target/linux')
-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 b2c009c3468..b38cd418176 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 daf77793141..f837dccff9a 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 409f288f07a..ccb3bb16709 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 d4638f1acf4..61adc08289a 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 3a38b8025ab..89dff434056 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>;
- };
-};