From: Trapti Damodar Balgi Date: Tue, 9 Jun 2026 07:48:16 +0000 (+0200) Subject: arm64: zynqmp-dlc21-revA: add mac nvmem cell for gem0 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=336ac1481725741adeee40c9754b645e09aaffed;p=thirdparty%2Fu-boot.git arm64: zynqmp-dlc21-revA: add mac nvmem cell for gem0 Enable nvmem support for MAC address retrieval from EEPROM for ethernet@ff0b0000. Add nvmem-cells and nvmem-cell-names to the GEM0 node, and define a mac-address@20 cell under the EEPROM node on I2C0. This allows U-Boot to read the MAC address from EEPROM at offset 0x20. Signed-off-by: Trapti Damodar Balgi Signed-off-by: Michal Simek Link: https://lore.kernel.org/r/49490b1d510f27f47e71e86c7d1f29478111ef81.1780991287.git.michal.simek@amd.com --- diff --git a/arch/arm/dts/zynqmp-dlc21-revA.dts b/arch/arm/dts/zynqmp-dlc21-revA.dts index 25cd0a09c94..83c39ce1a26 100644 --- a/arch/arm/dts/zynqmp-dlc21-revA.dts +++ b/arch/arm/dts/zynqmp-dlc21-revA.dts @@ -90,6 +90,9 @@ status = "okay"; phy-handle = <&phy0>; phy-mode = "sgmii"; /* DTG generates this properly 1512 */ + nvmem-cells = <ð_mac>; + nvmem-cell-names = "mac-address"; + mdio: mdio { #address-cells = <1>; #size-cells = <0>; @@ -153,6 +156,12 @@ eeprom: eeprom@50 { /* u46 */ compatible = "atmel,24c32"; reg = <0x50>; + #address-cells = <1>; + #size-cells = <1>; + + eth_mac: mac-address@20 { + reg = <0x20 0x6>; + }; }; /* u138 - TUSB320IRWBR - for USB-C */ };