From: Chukun Pan Date: Tue, 16 Dec 2025 13:27:02 +0000 (+0800) Subject: rockchip: correct MAC address for Radxa E20C X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a07d38f337fb5b532940c95386e9767d6415c98;p=thirdparty%2Fopenwrt.git 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 --- 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 00000000000..1670c070892 --- /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 +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 +--- + +--- 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 = <ð_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>; ++ }; ++ }; + }; + }; +