tee: tstee: Add Trusted Services TEE driver
authorBalint Dobszay <balint.dobszay@arm.com>
Mon, 25 Mar 2024 15:11:03 +0000 (16:11 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Wed, 3 Apr 2024 12:03:09 +0000 (14:03 +0200)
commitc835e5a3153cae2956efdbb9948b90f2b9e5e64d
treef341b2b1d5d08e688035a4ee5680fe22437dca94
parentcf4441503e20a0c0a36e0a98dcf57de3d3844c91
tee: tstee: Add Trusted Services TEE driver

The Trusted Services project provides a framework for developing and
deploying device Root of Trust services in FF-A Secure Partitions. The
FF-A SPs are accessible through the FF-A driver, but this doesn't
provide a user space interface. The goal of this TEE driver is to make
Trusted Services SPs accessible for user space clients.

All TS SPs have the same FF-A UUID, it identifies the RPC protocol used
by TS. A TS SP can host one or more services, a service is identified by
its service UUID. The same type of service cannot be present twice in
the same SP. During SP boot each service in an SP is assigned an
interface ID, this is just a short ID to simplify message addressing.
There is 1:1 mapping between TS SPs and TEE devices, i.e. a separate TEE
device is registered for each TS SP. This is required since contrary to
the generic TEE design where memory is shared with the whole TEE
implementation, in case of FF-A, memory is shared with a specific SP. A
user space client has to be able to separately share memory with each SP
based on its endpoint ID.

Acked-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/Kconfig
drivers/tee/Makefile
drivers/tee/tstee/Kconfig [new file with mode: 0644]
drivers/tee/tstee/Makefile [new file with mode: 0644]
drivers/tee/tstee/core.c [new file with mode: 0644]
drivers/tee/tstee/tstee_private.h [new file with mode: 0644]
include/uapi/linux/tee.h