Skip to content

Commit 96e394d

Browse files
committed
dt-bindings: reserved-memory: add linaro,secure-heap
DMABUF Reserved memory definition for OP-TEE SDP feaure. Signed-off-by: Olivier Masse <[email protected]>
1 parent b7a3d9f commit 96e394d

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/reserved-memory/linaro,secure-heap.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Linaro Secure DMABUF Heap
8+
9+
maintainers:
10+
- Olivier Masse <[email protected]>
11+
12+
description:
13+
Linaro OP-TEE firmware needs a reserved memory for the
14+
Secure Data Path feature (aka SDP).
15+
The purpose is to provide a secure memory heap which allow
16+
non-secure OS to allocate/free secure buffers.
17+
The TEE is reponsible for protecting the SDP memory buffers.
18+
TEE Trusted Application can access secure memory references
19+
provided as parameters (DMABUF file descriptor).
20+
21+
allOf:
22+
- $ref: "reserved-memory.yaml"
23+
24+
properties:
25+
compatible:
26+
const: linaro,secure-heap
27+
28+
reg:
29+
description:
30+
Region of memory reserved for OP-TEE SDP feature
31+
32+
no-map:
33+
$ref: /schemas/types.yaml#/definitions/flag
34+
description:
35+
Avoid creating a virtual mapping of the region as part of the OS'
36+
standard mapping of system memory.
37+
38+
unevaluatedProperties: false
39+
40+
required:
41+
- compatible
42+
- reg
43+
- no-map
44+
45+
examples:
46+
- |
47+
reserved-memory {
48+
#address-cells = <2>;
49+
#size-cells = <2>;
50+
51+
sdp@3e800000 {
52+
compatible = "linaro,secure-heap";
53+
no-map;
54+
reg = <0 0x3E800000 0 0x00400000>;
55+
};
56+
};

0 commit comments

Comments
 (0)