All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V4 0/4] arm64: imx8mp: Read values from M24C32-D write-lockable page on DHCOM i.MX8MP
@ 2024-11-28 14:20 Christoph Niedermaier
  2024-11-28 14:20 ` [PATCH V4 1/4] arm64: dts: imx8mp: Add aliases for the access to the EEPROM ID page node Christoph Niedermaier
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Christoph Niedermaier @ 2024-11-28 14:20 UTC (permalink / raw)
  To: u-boot
  Cc: Christoph Niedermaier, NXP i.MX U-Boot Team, Marek Vasut,
	Fabio Estevam, Stefano Babic, Tom Rini, u-boot

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
  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 <cniedermaier@dh-electronics.com>
---
Cc: "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Cc: u-boot@dh-electronics.com
-- 
2.30.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-12-02 17:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-28 14:20 [PATCH V4 0/4] arm64: imx8mp: Read values from M24C32-D write-lockable page on DHCOM i.MX8MP Christoph Niedermaier
2024-11-28 14:20 ` [PATCH V4 1/4] arm64: dts: imx8mp: Add aliases for the access to the EEPROM ID page node Christoph Niedermaier
2024-12-01 18:18   ` Marek Vasut
2024-11-28 14:20 ` [PATCH V4 2/4] arm64: imx8mp: Read values from M24C32-D write-lockable page on DHCOM i.MX8MP Christoph Niedermaier
2024-12-01 18:43   ` Marek Vasut
2024-12-02 17:17     ` Christoph Niedermaier
2024-11-28 14:20 ` [PATCH V4 3/4] board: dhelectronics: Sync env variable dh_som_serial_number with SN Christoph Niedermaier
2024-12-01 18:20   ` Marek Vasut
2024-12-02 17:19     ` Christoph Niedermaier
2024-11-28 14:20 ` [PATCH V4 4/4] lib: hashtable: Prevent recursive calling of callback functions Christoph Niedermaier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.