]> git.ipfire.org Git - thirdparty/openwrt.git/commit
kernel: enable memory mapped TPM interface on armsr 19188/head
authorMathew McBride <matt@traverse.com.au>
Thu, 12 Jun 2025 02:17:47 +0000 (12:17 +1000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 21 Jun 2025 12:00:36 +0000 (14:00 +0200)
commit3e5a70482b71076a06bca53647758cb5a69c3de6
tree072f05a38af9dac46f255129062cf39839376e75
parent0ef4c3dfa0c8904ff0238738064aafed733ef8d6
kernel: enable memory mapped TPM interface on armsr

The memory mapped TPM interface (TIS) can be used for
emulated or virtualized TPM instances with QEMU and
a simulation package like swtpm.

On QEMU the device will appear in the device tree
with a "tcg,tpm-tis-mmio" compatible.

For example:
qemu-system-aarch64 -machine virt -cpu max \
    -bios u-boot.bin \
    -nographic \
    .... \
    -hda openwrt-armsr-armv8-combined-efi.img \
    -chardev socket,id=chrtpm,path=/tmp/mytpm/swtpm-sock \
    -tpmdev emulator,id=tpm0,chardev=chrtpm \
    -device tpm-tis-device,tpmdev=tpm0

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Link: https://github.com/openwrt/openwrt/pull/19188
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/linux/modules/other.mk