2019-11-27 14:24:00

by Neal Liu

[permalink] [raw]
Subject: [PATCH v5 2/3] dt-bindings: rng: add bindings for MediaTek ARMv8 SoCs

Document the binding used by the MediaTek ARMv8 SoCs random
number generator with TrustZone enabled.

Signed-off-by: Neal Liu <[email protected]>
---
.../bindings/arm/firmware/mediatek,mtk-sec-rng.txt | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/firmware/mediatek,mtk-sec-rng.txt

diff --git a/Documentation/devicetree/bindings/arm/firmware/mediatek,mtk-sec-rng.txt b/Documentation/devicetree/bindings/arm/firmware/mediatek,mtk-sec-rng.txt
new file mode 100644
index 0000000..741fcdc
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/firmware/mediatek,mtk-sec-rng.txt
@@ -0,0 +1,18 @@
+MediaTek random number generator with TrustZone enabled
+
+Required properties:
+- compatible : Should contain "mediatek,mtk-sec-rng"
+
+- method : The method of calling Arm Trusted Firmware. Permitted
+ values are:
+
+ "smc" : SMC #0, with the register assignments specified
+ in this binding.
+
+Example:
+ firmware {
+ hwrng {
+ compatible = "mediatek,mtk-sec-rng";
+ methods = "smc";
+ };
+ };
--
1.7.9.5