From 9bca83c319ac2c812b3f6fc32a690c812d6911c6 Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Thu, 6 Jul 2023 08:16:42 +0000 Subject: [PATCH] t23x: optee-dts: Add optee-dts source file Add optee-dts files for optee support. It is moved from the hardware/nvidia/soc/t23x/optee-dts to get rid of the legacy DT path. Bug 4170369 Change-Id: Id31d9efde21139c628be63b25bc7f6db7342e67c Signed-off-by: Laxman Dewangan Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2932011 (cherry picked from commit f2f92ed64bb5b5e94620d765b1cb9a61534e94eb) Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2933329 --- optee-dts/tegra234-optee.dts | 130 +++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 optee-dts/tegra234-optee.dts diff --git a/optee-dts/tegra234-optee.dts b/optee-dts/tegra234-optee.dts new file mode 100644 index 0000000..0f80678 --- /dev/null +++ b/optee-dts/tegra234-optee.dts @@ -0,0 +1,130 @@ +/* + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved. + */ + +/dts-v1/; + +/ { + #address-cells = <2>; + #size-cells = <2>; + + /* MB2 fills the non-secure memory chucks here in order to + * enable the dynamic shared memory in OP-TEE. + * Example: + * nsec-memory@ { + * device_type = "memory"; + * reg = ; + * }; + */ + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + + /* MB2 will fill the DICE identities in the DICE node. */ + dice { + compatible = "nvidia,dice-identity"; + status = "disabled"; + secure-status = "disabled"; + #address-cells = <2>; + #size-cells = <2>; + + eca-csr@0 { + compatible = "nvidia,dice-eca-csr"; + reg = <0 0 0 0>; + status = "disabled"; + secure-status = "disabled"; + }; + + device-id-cert@0 { + compatible = "nvidia,dice-device-id-cert"; + reg = <0 0 0 0>; + status = "disabled"; + secure-status = "disabled"; + }; + + device-id-key-pub@0 { + compatible = "nvidia,dice-device-id-key-pub"; + reg = <0 0 0 0>; + status = "disabled"; + secure-status = "disabled"; + }; + + alias-key-cert@0 { + compatible = "nvidia,dice-alias-key-cert"; + reg = <0 0 0 0>; + status = "disabled"; + secure-status = "disabled"; + }; + + alias-key-pub@0 { + compatible = "nvidia,dice-alias-key-pub"; + reg = <0 0 0 0>; + status = "disabled"; + secure-status = "disabled"; + }; + + alias-key-priv@0 { + compatible = "nvidia,dice-alias-key-priv"; + reg = <0 0 0 0>; + status = "disabled"; + secure-status = "disabled"; + }; + }; + + /* MB2 will fill the address and size of EKB blob. */ + ekb-blob@0 { + compatible = "jetson-ekb-blob"; + reg = <0 0 0 0>; + }; + + /* MB2 will fill the address and size. */ + tpm-event-log@0 { + compatible = "arm,tpm_event_log"; + tpm_event_log_sm_addr = <0x0 0x0>; + tpm_event_log_size = <0x0>; + }; + }; + + efuse@03810000 { + compatible = "nvidia,tegra234-efuse"; + reg = <0x0 0x03810000 0x0 0x600>; + status = "disabled"; + secure-status = "okay"; + }; + + se0@03b50000 { + compatible = "nvidia,tegra234-se0"; + reg = <0x0 0x03b50000 0x0 0x30000>; + status = "disabled"; + secure-status = "okay"; + }; + + rng1@03b70000 { + compatible = "nvidia,tegra234-rng1"; + reg = <0x0 0x03b70000 0x0 0x10000>; + status = "disabled"; + secure-status = "okay"; + }; + + stmm-device-mappings { + uuid = <0xed32d533 0x99e64209 0x9cc02d72 0xcdd998a7>; + description = "UEFI-mm"; + + device-regions { + combuart-t234 { + base-address = <0x00000000 0x0c198000>; + pages-count = <0x1>; + attributes = <0x3>; /* read-write */ + }; + + qspi0-t234 { + base-address = <0x00000000 0x03270000>; + pages-count = <0x10>; + attributes = <0x3>; /* read-write */ + }; + }; + }; +};