]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: zynqmp-dlc21-revA: add mac nvmem cell for gem0
authorTrapti Damodar Balgi <traptidamodar.balgi@amd.com>
Tue, 9 Jun 2026 07:48:16 +0000 (09:48 +0200)
committerMichal Simek <michal.simek@amd.com>
Wed, 8 Jul 2026 06:55:50 +0000 (08:55 +0200)
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 <traptidamodar.balgi@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/49490b1d510f27f47e71e86c7d1f29478111ef81.1780991287.git.michal.simek@amd.com
arch/arm/dts/zynqmp-dlc21-revA.dts

index 25cd0a09c9449e2d13cf0587fa79ffaa05a9e50b..83c39ce1a26575aa17cde3f4da68806998f1328a 100644 (file)
@@ -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>;
        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 */
 };