imx8mm-cl-iot-gate: Retrieve the MAC address from EEPROM

Currently the eth0 MAC address is randomly assigned.

Retrieve the MAC address from EEPROM.

Signed-off-by: Fabio Estevam <festevam@denx.de>
This commit is contained in:
Fabio Estevam
2022-04-12 13:05:37 -03:00
committed by Stefano Babic
parent 6924bc7ca2
commit 79bc9dcfa2
4 changed files with 66 additions and 1 deletions

View File

@@ -17,6 +17,11 @@
stdout-path = &uart3;
};
aliases {
eeprom0 = &i2c_eeprom0;
eeprom1 = &i2c_eeprom1;
};
reg_vusb_5v: regulator-usdhc2 {
compatible = "regulator-fixed";
regulator-name = "VUSB_5V";
@@ -79,7 +84,7 @@
pinctrl-0 = <&pinctrl_i2c1>;
status = "okay";
eeprom@54 {
i2c_eeprom0: eeprom@54 {
compatible = "atmel,24c08";
reg = <0x54>;
pagesize = <16>;
@@ -92,6 +97,11 @@
pinctrl-0 = <&pinctrl_i2c2>;
status = "okay";
i2c_eeprom1: eeprom@50 {
compatible = "atmel,24c08";
reg = <0x50>;
pagesize = <16>;
};
rtc@69 {
compatible = "abracon,ab1805";
reg = <0x69>;