Hi @Fabrice this has not yet been fully implemented. I did some work a while ago with UEFI SecureBoot on X86 but never completed it.
The git repo you linked to is our fork of UBoot with just a few local patches so it will have whatever TPM support upstream UBoot has but we have not done anything more with it than that.
Many thanks for your feedbacks. My problem is that, for Raspberry, the file tpm-sl9670.dtbo must be present in /boot/overlays (I guess in /uboot/overlays) and the file config.txt must have the following additional lines:
dtparam=spi=on
dtoverlay=tpm-slb9670
I managed to update the this file. But even after copying the .dtbo file at the correct location, the TPM is not detected (it should appear as /dev/tpm0 and /dev/tpmrm0.
I will follow Mirzak’s advice and have a look at meta-secure-core.