The new i.MX8M Plus DHCOM rev.200 is populated with M24C32-D EEPROM that contains an additional write-lockable page called ID page, which is populated with a structure containing ethernet MAC addresses, DH item number and DH serial number.
This patch series prepare the device tree of the DHCOM i.MX8MP for reading the EEPROM ID page. Add the reading of the content and set the correspondent environment variable. It also synchronize two serial number environment variable via callback functions and fixing recursive calling of them. To ensure that the environment callback functions work, this patch series depends on patch [1]. [1] https://patchwork.ozlabs.org/project/uboot/patch/20241120160135.28262-1-cniederma...@dh-electronics.com/ Christoph Niedermaier (4): arm64: dts: imx8mp: Add aliases for the access to the EEPROM ID page node arm64: imx8mp: Read values from M24C32-D write-lockable page on DHCOM i.MX8MP board: dhelectronics: Sync env variable dh_som_serial_number with SN lib: hashtable: Prevent recursive calling of callback functions arch/arm/dts/imx8mp-dhcom-u-boot.dtsi | 2 + board/dhelectronics/common/dh_common.c | 165 +++++++++++++++++- board/dhelectronics/common/dh_common.h | 79 ++++++++- .../dh_imx8mp/imx8mp_dhcom_pdk2.c | 75 +++++++- configs/dhsom.config | 1 + lib/hashtable.c | 27 ++- 6 files changed, 338 insertions(+), 11 deletions(-) Signed-off-by: Christoph Niedermaier <cniederma...@dh-electronics.com> --- Cc: "NXP i.MX U-Boot Team" <uboot-...@nxp.com> Cc: Marek Vasut <ma...@denx.de> Cc: Fabio Estevam <feste...@gmail.com> Cc: Stefano Babic <sba...@denx.de> Cc: Tom Rini <tr...@konsulko.com> Cc: u-b...@dh-electronics.com -- 2.30.2