[openwrt/openwrt] lantiq: homehub-v3a: assign wlan mac in dts
LEDE Commits
lede-commits at lists.infradead.org
Thu Nov 27 16:24:50 PST 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/00e5204e8433a9d2717bf883101789a9f0d8cc45
commit 00e5204e8433a9d2717bf883101789a9f0d8cc45
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Thu Oct 23 13:19:41 2025 -0700
lantiq: homehub-v3a: assign wlan mac in dts
Userspace handling is deprecated.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16376
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../arch/mips/boot/dts/lantiq/ar9_bt_homehub-v3a.dts | 18 ++++++++++++++++++
.../base-files/etc/hotplug.d/firmware/12-ath9k-eeprom | 1 -
2 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_bt_homehub-v3a.dts b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_bt_homehub-v3a.dts
index f321e04241..b7a01ffff5 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_bt_homehub-v3a.dts
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/ar9_bt_homehub-v3a.dts
@@ -121,6 +121,14 @@
&gsw {
phy-mode = "rgmii";
+
+ nvmem-cells = <&macaddr_uboot_ethaddr 0>;
+ nvmem-cell-names = "mac-address";
+};
+
+&ppe {
+ nvmem-cells = <&macaddr_uboot_ethaddr 1>;
+ nvmem-cell-names = "mac-address";
};
&localbus {
@@ -154,6 +162,14 @@
partition at 64000 {
label = "u-boot-env";
reg = <0x64000 0x004000>;
+
+ nvmem-layout {
+ compatible = "u-boot,env";
+
+ macaddr_uboot_ethaddr: ethaddr {
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
ath9k_cal: partition at 68000 {
label = "art-copy";
@@ -182,6 +198,8 @@
wifi at e,0 {
reg = <0x7000 0 0 0 0>;
qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
+ nvmem-cells = <&macaddr_uboot_ethaddr 2>;
+ nvmem-cell-names = "mac-address";
};
};
diff --git a/target/linux/lantiq/xway/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom b/target/linux/lantiq/xway/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
index 91eb3f1680..2fdc575076 100644
--- a/target/linux/lantiq/xway/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
+++ b/target/linux/lantiq/xway/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
@@ -39,7 +39,6 @@ case "$FIRMWARE" in
;;
bt,homehub-v3a)
caldata_extract_swap "art-copy" 0x0 0x1000
- ath9k_patch_mac_crc $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) 2) 0x10c
;;
netgear,dgn3500|netgear,dgn3500b)
caldata_extract "calibration" 0xf000 0x1000
More information about the lede-commits
mailing list