diff options
author | Heiko Stuebner <heiko.stuebner@theobroma-systems.com> | 2019-10-23 16:46:41 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-11-14 07:09:34 -0600 |
commit | 96383bdfe421f01de9c339570de40e9bfd9ef455 (patch) | |
tree | 3efc3533ddea0c2d2ae78ca05c32e71c98c785e3 /test/optee/test-optee-optee.dts | |
parent | 6ccb05eae01b660b0585accf338302af1069f419 (diff) | |
download | u-boot-96383bdfe421f01de9c339570de40e9bfd9ef455.tar.gz |
tests: add OP-TEE test suite
OP-TEE can get supplied with a devicetree and will then insert
its firmware node and reserved-memory sections into it.
As this devicetree often is not the one supplied to a later
loaded kernel, a previous commit added functionality to transfer
these nodes onto that new devicetree.
To make sure this functionality stays intact, also add a test
for the transfer functionality.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/optee/test-optee-optee.dts')
-rw-r--r-- | test/optee/test-optee-optee.dts | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/optee/test-optee-optee.dts b/test/optee/test-optee-optee.dts new file mode 100644 index 0000000000..11e26a2728 --- /dev/null +++ b/test/optee/test-optee-optee.dts @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019, Theobroma Systems Design und Consulting GmbH + */ + +/dts-v1/; + +/ { + #address-cells = <2>; + #size-cells = <2>; + + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + optee_shm@32000000 { + reg = <0x00 0x32000000 0x00 0x400000>; + }; + + optee_core@30000000 { + reg = <0x00 0x30000000 0x00 0x2000000>; + }; + }; +}; |