summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTrapti Damodar Balgi <[email protected]>2026-06-09 09:48:16 +0200
committerMichal Simek <[email protected]>2026-07-08 08:55:50 +0200
commit336ac1481725741adeee40c9754b645e09aaffed (patch)
treeaa160ab176b302d5045cc5dce96e1dec2565991f /arch
parent6cc155fb43907fbe87713d4d4b64d7d9672b4f9f (diff)
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 <[email protected]> Signed-off-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/49490b1d510f27f47e71e86c7d1f29478111ef81.1780991287.git.michal.simek@amd.com
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/dts/zynqmp-dlc21-revA.dts9
1 files changed, 9 insertions, 0 deletions
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 = <&eth_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 */
};