riscv: dts: binman.dtsi: Include OP-TEE OS image
authorYu-Chien Peter Lin <peter.lin@sifive.com>
Sat, 11 Jan 2025 01:55:27 +0000 (09:55 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 3 Feb 2025 07:26:00 +0000 (15:26 +0800)
commit47d90f6bd30ad3c5cc909131dbf80081a8685e5d
treed846ad2f5bccb79ced9c86b308fdea3e230aa88c
parent99654e1b9665de0245c0fd606760aa7d1e9b8810
riscv: dts: binman.dtsi: Include OP-TEE OS image

The following diagram illustrates the boot flow for OP-TEE OS
initialization on RISC-V.

    (1)-----------+
     | U-Boot SPL |
     +------------+
         |
         v
    (2)-------------------------------------------------------------+
     | OpenSBI (fw_dynamic.bin)                                     |
     |                (4)------------------------+                  |
     |                 | optee dispatcher driver |                  |
     +-----------------+-------^---------|-------+------------------+
M-mode   |                     |         |
---------+--[trusted domain]---+----.----+--[untrusted domain]-------
S-mode   |  (coldboot domain)  |    |    |
         v                     |    |    v
    (3)---------------------------+ |(5)----------------------------+
     | OP-TEE OS (tee.bin)        | | | U-Boot (u-boot-nodtb.bin)   |
     +----------------------------+ | +-----------------------------+
                                    |    |
                                    |    v
                                    |(6)----------------------------+
                                    | | Linux                       |
                                    | +-----------------------------+

This patch enables the inclusion of the OP-TEE binary within the
U-Boot ITB, allowing it to be loaded to a platform defined address
by U-Boot SPL.

Signed-off-by: Yu-Chien Peter Lin <peter.lin@sifive.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/dts/binman.dtsi