[openwrt/openwrt] ipq40xx: habanero-dvk: fix LAN MAC adresses
LEDE Commits
lede-commits at lists.infradead.org
Sun Jun 30 02:26:27 PDT 2024
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/b4069fad025abb26e17988b769a6589b6c504dfb
commit b4069fad025abb26e17988b769a6589b6c504dfb
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Sun Jun 30 11:08:16 2024 +0200
ipq40xx: habanero-dvk: fix LAN MAC adresses
Currently, only the WAN MAC is being populated on Habanero DVK, and that is
happening via the ethernet1 alias so U-Boot does it, previously ethernet0
was implicitly added in the SoC DTSI so it would populate the LAN MAC-s but
it was dropped(rightly so) so now LAN MAC-s and the GMAC one are random.
So, lets simply switch to using NVMEM to assign the proper MAC adresses.
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
.../boot/dts/qcom/qcom-ipq4019-habanero-dvk.dts | 27 +++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-habanero-dvk.dts b/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-habanero-dvk.dts
index c25b9ecf5b..94be4d976e 100644
--- a/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-habanero-dvk.dts
+++ b/target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-habanero-dvk.dts
@@ -16,7 +16,6 @@
led-failsafe = &led_status;
led-running = &led_status;
led-upgrade = &led_upgrade;
- ethernet1 = &swport5;
};
soc {
@@ -266,6 +265,14 @@
#address-cells = <1>;
#size-cells = <1>;
+ macaddr_lan: macaddr at 0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_wan: macaddr at 6 {
+ reg = <0x6 0x6>;
+ };
+
precal_art_1000: precal at 1000 {
reg = <0x1000 0x2f20>;
};
@@ -330,6 +337,9 @@
&gmac {
status = "okay";
+
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_wan>;
};
&switch {
@@ -338,22 +348,37 @@
&swport1 {
status = "okay";
+
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_lan>;
};
&swport2 {
status = "okay";
+
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_lan>;
};
&swport3 {
status = "okay";
+
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_lan>;
};
&swport4 {
status = "okay";
+
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_lan>;
};
&swport5 {
status = "okay";
+
+ nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_wan>;
};
&wifi0 {
More information about the lede-commits
mailing list