Skip to content

Commit 0bbc54d

Browse files
ryan-wannerclaudiubeznea
authored andcommitted
ARM: dts: microchip: sama7d65_curiosity: add EEPROM
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 <[email protected]> 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 <[email protected]>
1 parent e65a13a commit 0bbc54d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

arch/arm/boot/dts/microchip/at91-sama7d65_curiosity.dts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
&pinctrl_gmac0_txck_default
7979
&pinctrl_gmac0_phy_irq>;
8080
phy-mode = "rgmii-id";
81+
nvmem-cells = <&eeprom0_eui48>;
82+
nvmem-cell-names = "mac-address";
8183
status = "okay";
8284

8385
ethernet-phy@7 {
@@ -251,6 +253,24 @@
251253
};
252254
};
253255
};
256+
257+
eeprom0: eeprom@51 {
258+
compatible = "microchip,24aa025e48";
259+
reg = <0x51>;
260+
size = <256>;
261+
pagesize = <16>;
262+
vcc-supply = <&vdd_3v3>;
263+
264+
nvmem-layout {
265+
compatible = "fixed-layout";
266+
#address-cells = <1>;
267+
#size-cells = <1>;
268+
269+
eeprom0_eui48: eui48@fa {
270+
reg = <0xfa 0x6>;
271+
};
272+
};
273+
};
254274
};
255275

256276
&main_xtal {

0 commit comments

Comments
 (0)