From: Ernest Van Hoecke <ernest.vanhoe...@toradex.com>

Apalis/Colibri iMX6 V1.2 will replace the STMPE811 ADC/Touch controller
which is EOL by the TLA2024 ADC and AD7879 touch controller.
To support this new version, we detect the presence of either the
STMPE811 or TLA2024 during boot and set a new environment variable named
"variant". This will allow us to select the correct DT easily.

"variant" environment variable behaviour:
- Empty or absent for all versions below v1.2 (STMPE811)
- "-v1.2" for all versions starting from v1.2 (TLA2024 + AD7879)

This behaviour is then used by the PREBOOT logic:
preboot=test -n ${fdtfile} || setenv fdtfile 
imx6q-apalis${variant}-${fdt_board}.dtb

v2: Fixed the "From" field
v1: 
https://lore.kernel.org/u-boot/20250228095317.621037-1-ernest.vanhoe...@toradex.com/

Ernest Van Hoecke (2):
  board: toradex: apalis/colibri imx6: Detect new v1.2 SoM variant
  toradex: apalis/colibri imx6: Select correct DTB for SoM v1.2+

 board/toradex/apalis_imx6/apalis_imx6.c   | 31 +++++++++++++++++++++++
 board/toradex/colibri_imx6/colibri_imx6.c | 31 +++++++++++++++++++++++
 configs/apalis_imx6_defconfig             |  2 +-
 configs/colibri_imx6_defconfig            |  2 +-
 4 files changed, 64 insertions(+), 2 deletions(-)

-- 
2.43.0

Reply via email to