summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafal Boni2024-10-24 15:40:53 +0000
committerRobert Marko2024-10-31 09:59:34 +0000
commit607091d4fed9b459afdb4ed140c374e5cec535b3 (patch)
tree1b986bc1ba6b2f6bc9fc2eb9a743846f4dda581d
parent92c2a4cf932d6f77509639bd6a4db1c11f64e97b (diff)
downloadopenwrt-607091d4fed9b459afdb4ed140c374e5cec535b3.tar.gz
ipq806x: Fix default MAC addresses on MR52 by moving to `nvmem-layout`
Partial, single-target update extracted from https://github.com/openwrt/openwrt/commit/d264d3a6 The previous `mac-address-increment` is deprecated, and in particular on this target means that the kernel is unable to read the MAC address, causing the system to boot with a new random MAC address each time. Fixes: https://github.com/openwrt/openwrt/issues/15238 Signed-off-by: Rosen Penev <rosenp@gmail.com> [rafal.boni@gmail.com: single-target-specific backport from larger change] Signed-off-by: Rafal Boni <rafal.boni@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16774 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--target/linux/ipq806x/files-5.15/arch/arm/boot/dts/qcom-ipq8068-mr52.dts28
1 files changed, 15 insertions, 13 deletions
diff --git a/target/linux/ipq806x/files-5.15/arch/arm/boot/dts/qcom-ipq8068-mr52.dts b/target/linux/ipq806x/files-5.15/arch/arm/boot/dts/qcom-ipq8068-mr52.dts
index 695c5411ba..8bb932c6e4 100644
--- a/target/linux/ipq806x/files-5.15/arch/arm/boot/dts/qcom-ipq8068-mr52.dts
+++ b/target/linux/ipq806x/files-5.15/arch/arm/boot/dts/qcom-ipq8068-mr52.dts
@@ -80,7 +80,7 @@
phy-mode = "sgmii";
phy-handle = <&phy0>;
- nvmem-cells = <&mac_address>;
+ nvmem-cells = <&mac_address 0>;
nvmem-cell-names = "mac-address";
};
@@ -93,9 +93,8 @@
phy-mode = "sgmii";
phy-handle = <&phy4>;
- nvmem-cells = <&mac_address>;
+ nvmem-cells = <&mac_address 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
&gsbi7 {
@@ -142,11 +141,17 @@
pagesize = <32>;
reg = <0x52>;
read-only;
- #address-cells = <1>;
- #size-cells = <1>;
- mac_address: mac-address@66 {
- reg = <0x66 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ mac_address: mac-address@66 {
+ compatible = "mac-base";
+ reg = <0x66 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
};
};
};
@@ -212,21 +217,18 @@
};
&wifi0 {
- nvmem-cells = <&mac_address>;
+ nvmem-cells = <&mac_address 4>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <4>;
};
&wifi1 {
- nvmem-cells = <&mac_address>;
+ nvmem-cells = <&mac_address 3>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <3>;
};
&wifi2 {
- nvmem-cells = <&mac_address>;
+ nvmem-cells = <&mac_address 2>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <2>;
};
&hs_phy_0 {