summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChukun Pan2025-12-16 13:27:02 +0000
committerDaniel Golle2026-01-19 13:44:58 +0000
commit7a07d38f337fb5b532940c95386e9767d6415c98 (patch)
treedbb64472a9b996894ad71bebabfcc730353e91d1
parentdccfc109575eb8a7444e8bb5e6bcda2507230446 (diff)
downloadxback-7a07d38f337fb5b532940c95386e9767d6415c98.tar.gz
rockchip: correct MAC address for Radxa E20C
Use the unique MAC address in EEPROM for eth0. The MAC address of RTL8111H (eth1) is correct. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
-rw-r--r--target/linux/rockchip/patches-6.12/165-arm64-dts-rockchip-Use-MAC-address-from-EEPROM-for-.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/target/linux/rockchip/patches-6.12/165-arm64-dts-rockchip-Use-MAC-address-from-EEPROM-for-.patch b/target/linux/rockchip/patches-6.12/165-arm64-dts-rockchip-Use-MAC-address-from-EEPROM-for-.patch
new file mode 100644
index 0000000000..1670c07089
--- /dev/null
+++ b/target/linux/rockchip/patches-6.12/165-arm64-dts-rockchip-Use-MAC-address-from-EEPROM-for-.patch
@@ -0,0 +1,52 @@
+From 66f872646878e1f124d39bca3966dc65c2af6eef Mon Sep 17 00:00:00 2001
+From: Chukun Pan <amadeus@jmu.edu.cn>
+Date: Sun, 30 Nov 2025 18:09:03 +0800
+Subject: [PATCH] arm64: dts: rockchip: Use MAC address from EEPROM for
+ Radxa E20C
+
+The EEPROM on the Radxa E20C stores two unique MAC addresses.
+Assigned to network interfaces via device tree.
+
+Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
+---
+
+--- a/arch/arm64/boot/dts/rockchip/rk3528-radxa-e20c.dts
++++ b/arch/arm64/boot/dts/rockchip/rk3528-radxa-e20c.dts
+@@ -17,7 +17,6 @@
+ compatible = "radxa,e20c", "rockchip,rk3528";
+
+ aliases {
+- ethernet0 = &gmac1;
+ i2c1 = &i2c1;
+ mmc0 = &sdhci;
+ mmc1 = &sdmmc;
+@@ -213,6 +212,8 @@
+ pinctrl-names = "default";
+ pinctrl-0 = <&rgmii_miim>, <&rgmii_tx_bus2>, <&rgmii_rx_bus2>,
+ <&rgmii_rgmii_clk>, <&rgmii_rgmii_bus>;
++ nvmem-cells = <&eth_mac1>;
++ nvmem-cell-names = "mac-address";
+ status = "okay";
+ };
+
+@@ -232,6 +233,20 @@
+ pagesize = <16>;
+ read-only;
+ vcc-supply = <&vcc_3v3>;
++
++ nvmem-layout {
++ compatible = "fixed-layout";
++ #address-cells = <1>;
++ #size-cells = <1>;
++
++ eth_mac0: macaddr@9e {
++ reg = <0x9e 0x06>;
++ };
++
++ eth_mac1: macaddr@a4 {
++ reg = <0xa4 0x06>;
++ };
++ };
+ };
+ };
+