]> www.infradead.org Git - users/willy/xarray.git/commitdiff
ARM: dts: microchip: sama7d65_curiosity: add EEPROM
authorRyan Wanner <Ryan.Wanner@microchip.com>
Tue, 1 Apr 2025 16:13:22 +0000 (09:13 -0700)
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>
Fri, 16 May 2025 05:31:28 +0000 (08:31 +0300)
If the MAC address is not fetched and loaded by U-boot then Linux will
have to load the address. The EEPROM and nvmem-layout to describe
EUI48 MAC address regions.

Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Link: https://lore.kernel.org/r/96ee6832d9b55acfae8d3560f625798025dfd89c.1743523114.git.Ryan.Wanner@microchip.com
[claudiu.beznea: added nvmem properties in gmac0 node before the status
 one]
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
arch/arm/boot/dts/microchip/at91-sama7d65_curiosity.dts

index 548c438bc03d61f90365510c0530a7b84d076fc1..8057cf9c919accbcf48b5d3d17f46b9fd35e2052 100644 (file)
@@ -78,6 +78,8 @@
                     &pinctrl_gmac0_txck_default
                     &pinctrl_gmac0_phy_irq>;
        phy-mode = "rgmii-id";
+       nvmem-cells = <&eeprom0_eui48>;
+       nvmem-cell-names = "mac-address";
        status = "okay";
 
        ethernet-phy@7 {
                        };
                };
        };
+
+       eeprom0: eeprom@51 {
+               compatible = "microchip,24aa025e48";
+               reg = <0x51>;
+               size = <256>;
+               pagesize = <16>;
+               vcc-supply = <&vdd_3v3>;
+
+               nvmem-layout {
+                       compatible = "fixed-layout";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       eeprom0_eui48: eui48@fa {
+                               reg = <0xfa 0x6>;
+                       };
+               };
+       };
 };
 
 &main_xtal {