On Tue, Oct 06, 2020 at 12:01:30PM +0200, Petr Vorel wrote: > Hi Jarkko, > > can rely on /dev/tpm0 and /dev/tpmrm0 for TPM detection? > i.e.: > /dev/tpmrm0 => TPM 2.0 > /dev/tpm0 => both TPM 1.2 or 2.0 > none of them => No TPM device I think that should work as tpmrm0 is unconditionally available for TPM devices. Since Linux v5.6 there has been a sysfs file called tpm_version_major available too. /Jarkko