From: Alexander Feilke <[email protected]> Integrates a new tq_eeprom sysinfo driver that reads & prints board information during boot.
This is the basis for additional patches that will be sent along with updates of the TQMa6 in the near future, including support for multiple indexed sysinfo devices and VARD (variant detection) data for newer TQ SOM's. changes in v2: - add documentation for tq,eeprom-sysinfo dt-bindings - use nvmem-cells instead of hardcoded offsets - unified `tq_eeprom_serial_len` for old and new format - replace XPL guards with $(PHASE_) in Makefile - remove (yet) unused sysinfo IDs SYSID_RAM_SIZE and SYSID_RAM_VARIANT - remove (yet) unused Kconfigs CI: https://dev.azure.com/u-boot/u-boot/_build/results?buildId=13229 Note: I got a strange unrelated error in test_ut in a previous CI run, where dm_test_rtc_dual() returned -EINVAL, causing the test to fail. It passed in the next run so I suppose its a race condition, but I didn't look further into it. Link: https://dev.azure.com/u-boot/u-boot/_build/results?buildId=13228&view=logs&j=db15d90c-51e5-5ca3-902e-4c5d558bba82&t=64917d2e-7acb-5ec4-6136-40fc146da71a Alexander Feilke (2): arm: dts: tqma7: integrate tq,eeprom sysinfo driver boards: tqma7: call tq-sysinfo setup Nora Schiffer (4): sysinfo: uclass: use sysinfo_priv size for per_device_auto sysinfo: add sysinfo_get_and_detect() helper sysinfo: tq_eeprom: new driver board: tq: common: add sysinfo helpers MAINTAINERS | 1 + arch/arm/dts/imx7s-tqma7-u-boot.dtsi | 20 ++ board/tq/common/Kconfig | 6 + board/tq/common/Makefile | 1 + board/tq/common/tq_sysinfo.c | 32 +++ board/tq/common/tq_sysinfo.h | 15 ++ board/tq/tqma7/tqma7.c | 3 + configs/tqma7_common.config | 1 + .../sysinfo/tq,eeprom-sysinfo.txt | 36 ++++ drivers/sysinfo/Kconfig | 8 + drivers/sysinfo/Makefile | 1 + drivers/sysinfo/sysinfo-uclass.c | 2 +- drivers/sysinfo/tq_eeprom.c | 203 ++++++++++++++++++ include/sysinfo.h | 25 +++ include/sysinfo/tq_eeprom.h | 24 +++ 15 files changed, 377 insertions(+), 1 deletion(-) create mode 100644 board/tq/common/tq_sysinfo.c create mode 100644 board/tq/common/tq_sysinfo.h create mode 100644 doc/device-tree-bindings/sysinfo/tq,eeprom-sysinfo.txt create mode 100644 drivers/sysinfo/tq_eeprom.c create mode 100644 include/sysinfo/tq_eeprom.h -- 2.34.1

