[PATCH v1 0/7] toradex: fix reset and hardware detection regressions

Francesco Dolcini francesco at dolcini.it
Tue Feb 20 19:29:19 CET 2024


From: Francesco Dolcini <francesco.dolcini at toradex.com>

This series fixes two regressions affecting multiple Toradex boards
(i.MX, TI and TEGRA based) and targets the current master, e.g. v2024.04 release.

U-Boot `reset` command is broken on all Tordex i.MX6* based SoMs since
v2023.07, this series fixes it enabling the `wdt-reboot` driver.

Since v2024.04-rc1 reading the Toradex configuration block is not working
properly anymore, the serial number and the hardware version are not read
correctly, preventing the board from functioning correctly (wrong mac address,
wrong DT, ...). This is fixed by reading the config block in `EVT_SETTINGS_R` and
adding a toradex sysinfo driver. In addition to that, we now use a random mac
address in case the config block is invalid.


Reported-by: Sahaj Sarup <sahaj.sarup at linaro.org>
Closes: https://lore.kernel.org/all/CAKZ1LvM45MB8N0CqgU+C7i9=Bjb6kqNTxWo2Tv407HKLWtCMkA@mail.gmail.com/
Reported-by: Marcel Ziswiler <marcel.ziswiler at toradex.com>
Closes: https://lore.kernel.org/all/e40ed93bd8f371ec56b8fc451dcb458f3ce6dcba.camel@toradex.com/
Reported-by: Francesco Dolcini <francesco at dolcini.it>
Closes: https://lore.kernel.org/all/ZY2ZDWAQuTlRjV9H@francesco-nb/

Emanuele Ghidoli (6):
  toradex: Fix recursive call to checkboard
  toradex: Remove not necessary model prints from checkboard()
  toradex: common: Use SETTINGS_R event to read toradex config block
  arm: dts: Refactor device trees using "&{/aliases}" syntax
  toradex: common: Add sysinfo driver
  toradex: common: Use random mac address if toradex config block is
    missing

Parth Pancholi (1):
  toradex: imx6*: fix reset using wdt-reboot driver

 arch/arm/dts/fsl-imx8qm-apalis-u-boot.dtsi    |   6 +
 arch/arm/dts/fsl-imx8qxp-colibri-u-boot.dtsi  |   6 +
 .../dts/imx6dl-colibri-eval-v3-u-boot.dtsi    |  28 +++-
 arch/arm/dts/imx6q-apalis-eval-u-boot.dtsi    |  36 +++--
 .../dts/imx6ull-colibri-eval-v3-u-boot.dtsi   |  14 ++
 .../arm/dts/imx7d-colibri-eval-v3-u-boot.dtsi |  14 +-
 .../dts/imx8mm-verdin-wifi-dev-u-boot.dtsi    |  16 +-
 .../dts/imx8mp-verdin-wifi-dev-u-boot.dtsi    |  16 +-
 .../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi  |   4 +
 arch/arm/dts/tegra124-apalis-u-boot.dtsi      |  12 ++
 arch/arm/dts/tegra20-colibri-u-boot.dtsi      |  12 ++
 arch/arm/dts/tegra30-apalis-u-boot.dtsi       |  12 ++
 arch/arm/dts/tegra30-colibri-u-boot.dtsi      |  12 ++
 .../arm/dts/vf610-colibri-eval-v3-u-boot.dtsi |   4 +
 board/toradex/apalis-imx8/apalis-imx8.c       |  10 --
 board/toradex/apalis-tk1/apalis-tk1.c         |   7 -
 board/toradex/apalis_imx6/apalis_imx6.c       |  21 ---
 board/toradex/apalis_t30/apalis_t30.c         |   8 -
 .../toradex/colibri-imx6ull/colibri-imx6ull.c |   7 -
 board/toradex/colibri-imx8x/colibri-imx8x.c   |  10 --
 board/toradex/colibri_imx6/colibri_imx6.c     |  20 ---
 board/toradex/colibri_imx7/colibri_imx7.c     |   8 -
 board/toradex/colibri_t20/colibri_t20.c       |  10 --
 board/toradex/colibri_t30/colibri_t30.c       |   7 -
 board/toradex/colibri_vf/colibri_vf.c         |  10 --
 board/toradex/common/Kconfig                  |   1 +
 board/toradex/common/tdx-common.c             | 137 +++++++++++++-----
 board/toradex/common/tdx-common.h             |   1 -
 configs/apalis-imx8_defconfig                 |   1 +
 configs/apalis-tk1_defconfig                  |   1 +
 configs/apalis_imx6_defconfig                 |   4 +
 configs/apalis_t30_defconfig                  |   1 +
 configs/colibri-imx6ull-emmc_defconfig        |   4 +
 configs/colibri-imx6ull_defconfig             |   4 +
 configs/colibri-imx8x_defconfig               |   1 +
 configs/colibri_imx6_defconfig                |   4 +
 configs/colibri_imx7_defconfig                |   1 +
 configs/colibri_imx7_emmc_defconfig           |   1 +
 configs/colibri_t20_defconfig                 |   1 +
 configs/colibri_t30_defconfig                 |   1 +
 configs/colibri_vf_defconfig                  |   1 +
 configs/verdin-am62_a53_defconfig             |   1 +
 configs/verdin-am62_r5_defconfig              |   1 +
 configs/verdin-imx8mm_defconfig               |   1 +
 configs/verdin-imx8mp_defconfig               |   1 +
 45 files changed, 284 insertions(+), 194 deletions(-)
 create mode 100644 arch/arm/dts/tegra124-apalis-u-boot.dtsi
 create mode 100644 arch/arm/dts/tegra20-colibri-u-boot.dtsi
 create mode 100644 arch/arm/dts/tegra30-apalis-u-boot.dtsi
 create mode 100644 arch/arm/dts/tegra30-colibri-u-boot.dtsi

-- 
2.39.2



More information about the U-Boot mailing list