[PATCH V5 0/4] arm64: imx8mp: Read values from M24C32-D write-lockable page on DHCOM i.MX8MP

Christoph Niedermaier cniedermaier at dh-electronics.com
Mon Dec 2 18:29:46 CET 2024


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-cniedermaier@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
  lib: hashtable: Prevent recursive calling of callback functions
  board: dhelectronics: Sync env variable dh_som_serial_number with SN

 arch/arm/dts/imx8mp-dhcom-u-boot.dtsi         |   2 +
 board/dhelectronics/common/dh_common.c        | 166 +++++++++++++++++-
 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, 339 insertions(+), 11 deletions(-)

Signed-off-by: Christoph Niedermaier <cniedermaier at dh-electronics.com>
---
Cc: "NXP i.MX U-Boot Team" <uboot-imx at nxp.com>
Cc: Marek Vasut <marex at denx.de>
Cc: Fabio Estevam <festevam at gmail.com>
Cc: Stefano Babic <sbabic at denx.de>
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at dh-electronics.com
-- 
2.30.2



More information about the U-Boot mailing list