[PATCH v3 0/6] imx8(m): add optee node to binman FIT image

Yannic Moog y.moog at phytec.de
Fri Jan 10 13:35:32 CET 2025


There have been attempts to get op-tee node integrated upstream in the
past [1][2]. The challenge is on how to handle the load and entry
addresses where the op-tee image should be loaded to.
Different SoC families and architectures have different RAM base
addresses. Further the final addresses can vary from board to board
(e.g. depending on populated RAM size).
This approach follows the TI k3 kconfig solution.
To be able to define a sensible default for the new config option, put
it in the imx8m kconfig. For other imx families, the RAM start addresses
are different and thus finding a common sensible default is not
possible.
I do not have a working Nano and quad board so I was not able to test them.

I included usage for PHYTEC boards for examples (with documentation).

[1] https://patchwork.ozlabs.org/project/uboot/patch/20230622173006.3921891-1-tharvey@gateworks.com/
[2] https://patchwork.ozlabs.org/project/uboot/patch/ZeHDVr-Bzm935-5N@mecka.net/

---
Changes in v3:
- use OPTEE_LOAD_ADDR defaults as defined in upstream tf-a
- add imx8mq (untested)
- move common PHYTEC imx8mm optee build doc into include file

Changes in v2 (from RFC):
- Use kconfig instead of trying pure dt approach.
- Add load addresses in defconfigs instead of <board>-u-boot dts.

---
Yannic Moog (6):
      arm: imx8m: add OP-TEE node
      phycore-imx8mp_defconfig: add optee load address
      imx8mm-phygate-tauri-l_defconfig: add optee load address
      phycore-imx8mm_defconfig: add optee load address
      doc: phytec: imx8mp: add OP-TEE documentation
      doc: phytec: imx8mm: add OP-TEE documentation

 arch/arm/dts/imx8mm-u-boot.dtsi             | 17 ++++++++++++++++-
 arch/arm/dts/imx8mn-u-boot.dtsi             | 17 ++++++++++++++++-
 arch/arm/dts/imx8mp-u-boot.dtsi             | 17 ++++++++++++++++-
 arch/arm/dts/imx8mq-u-boot.dtsi             | 17 ++++++++++++++++-
 arch/arm/mach-imx/imx8m/Kconfig             | 11 +++++++++++
 board/phytec/phycore_imx8mm/MAINTAINERS     |  1 +
 configs/imx8mm-phygate-tauri-l_defconfig    |  1 +
 configs/phycore-imx8mm_defconfig            |  1 +
 configs/phycore-imx8mp_defconfig            |  1 +
 doc/board/phytec/imx8mm-optee-build.rsti    | 14 ++++++++++++++
 doc/board/phytec/imx8mm-phygate-tauri-l.rst |  9 ++++++++-
 doc/board/phytec/phycore-imx8mm.rst         |  8 +++++++-
 doc/board/phytec/phycore-imx8mp.rst         | 20 +++++++++++++++++++-
 13 files changed, 127 insertions(+), 7 deletions(-)
---
base-commit: 6016960ceb9d3fda591cda94df3841748fb65596
change-id: 20240903-phytec_imx8m_optee-8674ef012a36

Best regards,
-- 
Yannic Moog <y.moog at phytec.de>



More information about the U-Boot mailing list