]> git.baikalelectronics.ru Git - uboot.git/commit
optee: bind the TA drivers on OP-TEE node
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Thu, 15 Dec 2022 08:54:52 +0000 (09:54 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 11 Jan 2023 20:02:24 +0000 (15:02 -0500)
commitb891ca2baae42c6806b91fa85521707eadbde44f
treec69b4b359ab7849c88082fffccaba02e4cfe0fed
parentaf37157a16629aeac9542a1b0b49f221d0efd145
optee: bind the TA drivers on OP-TEE node

In U-Boot driver model the devices can be referenced by
phandle in the U-Boot configuration nodes.

Without a valid node provided during the bind, the driver
associated to OP-TEE TA can't be referenced.

For example to force the sequence number with alias
(.flags = DM_UC_FLAG_SEQ_ALIAS)

  aliases {
rng0 = &optee;
  };

or other configuration:

board-sysinfo {
   compatible = "vendor,sysinfo-board";
   ramdom = <&optee>;
}

With this patch all drivers bound from OP-TEE service
discovery are now associated are associated to OP-TEE
node, allowing to identify by phandle the driver
provided by the TA for one UCLASS without modifying
device tree.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/tee/optee/core.c