diff mbox series

[1/2] dt/bindings: add bindings for optional optee hw-rng node

Message ID 1545136651-25776-2-git-send-email-sumit.garg@linaro.org
State New
Headers show
Series Add OP-TEE based hwrng driver | expand

Commit Message

Sumit Garg Dec. 18, 2018, 12:37 p.m. UTC
Add bindings for OP-TEE based optional hardware random number
generator. It could be used on ARM based devices where entropy
source is not accessible to normal world (linux in this case).

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>

---
 .../devicetree/bindings/arm/firmware/linaro,optee-tz.txt | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

-- 
2.7.4
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt b/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt
index d38834c..f567566 100644
--- a/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt
+++ b/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt
@@ -20,12 +20,28 @@  the reference implementation maintained by Linaro.
                    "hvc" : HVC #0, with the register assignments specified
 		           in drivers/tee/optee/optee_smc.h
 
+- hw-rng         : Optional OP-TEE based hardware RNG in case hardware
+                   entropy source is not accesible to normal world (Linux).
 
+                   - uuid: Trusted Application identifier which implements
+                           hw-rng
+
+                   - data-rate: Hardware RNG data generation rate in bytes per
+                                second
+
+                   - quality: Hardware RNG entropy estimation per 1024 bits of
+                              input
 
 Example:
 	firmware {
 		optee {
 			compatible = "linaro,optee-tz";
 			method = "smc";
+
+			hw-rng {
+				uuid = "ab7a617c-b8e7-4d8f-8301-d09b61036b64";
+				data-rate = <125>;
+				quality = <999>;
+			};
 		};
 	};