mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
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 <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>
This commit is contained in:
parent
e65a13a290
commit
0bbc54da32
|
|
@ -78,6 +78,8 @@ &pinctrl_gmac0_mdio_default
|
|||
&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 {
|
||||
|
|
@ -251,6 +253,24 @@ regulator-state-mem {
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user