Skip to content

Commit c1a32c2

Browse files
claudiubezneaAndrei Simion
authored andcommitted
ARM: dts: at91: at91-sama7g5ek: add EEPROMs
Add EEPROMs. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> (cherry picked from commit 8129e9f) Signed-off-by: Andrei Simion <andrei.simion@microchip.com>
1 parent 5e9df83 commit c1a32c2

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,34 @@
403403
i2c-digital-filter;
404404
i2c-digital-filter-width-ns = <35>;
405405
status = "okay";
406+
407+
eeprom0: eeprom0@52 {
408+
compatible = "atmel,24mac02e4";
409+
#address-cells = <1>;
410+
#size-cells = <0>;
411+
reg = <0x52>;
412+
pagesize = <16>;
413+
size = <256>;
414+
status = "okay";
415+
416+
eeprom0_eui48: eui48@fa {
417+
reg = <0xfa 0x6>;
418+
};
419+
};
420+
421+
eeprom1: eeprom1@53 {
422+
compatible = "atmel,24mac02e4";
423+
#address-cells = <1>;
424+
#size-cells = <0>;
425+
reg = <0x53>;
426+
pagesize = <16>;
427+
size = <256>;
428+
status = "okay";
429+
430+
eeprom1_eui48: eui48@fa {
431+
reg = <0xfa 0x6>;
432+
};
433+
};
406434
};
407435
};
408436

@@ -442,6 +470,9 @@
442470
phy-mode = "rgmii-id";
443471
status = "okay";
444472

473+
nvmem-cells = <&eeprom0_eui48>;
474+
nvmem-cell-names = "mac-address";
475+
445476
ethernet-phy@7 {
446477
reg = <0x7>;
447478
interrupt-parent = <&pioA>;
@@ -459,6 +490,9 @@
459490
phy-mode = "rmii";
460491
status = "okay"; /* Conflict with pdmc0. */
461492

493+
nvmem-cells = <&eeprom1_eui48>;
494+
nvmem-cell-names = "mac-address";
495+
462496
ethernet-phy@0 {
463497
reg = <0x0>;
464498
interrupt-parent = <&pioA>;

0 commit comments

Comments
 (0)