From 0132e26d71b2c55c70acbbd1412777e48872cf47 Mon Sep 17 00:00:00 2001 From: XuYan Date: Fri, 18 Apr 2025 10:51:30 +0800 Subject: [PATCH] dt-bindings: Add bindings for Phytium HW RNG phytium inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IC1Z0Y CVE: NA --------------------------------------------------------- This patch documents the DT bindings for Phytium hardware random number generator. Signed-off-by: xuyan Signed-off-by: Chen Baozi Signed-off-by: Wang Yinfeng --- .../devicetree/bindings/rng/phytium,rng.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/phytium,rng.yaml diff --git a/Documentation/devicetree/bindings/rng/phytium,rng.yaml b/Documentation/devicetree/bindings/rng/phytium,rng.yaml new file mode 100644 index 000000000000..e32fc39ea86c --- /dev/null +++ b/Documentation/devicetree/bindings/rng/phytium,rng.yaml @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/phytium,rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Phytium Random Number Generator + +maintainers: + - Chen Baozi + +properties: + compatible: + const: phytium,rng + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + rng@0x31a06000 { + compatible = "phytium,rng"; + reg = <0x0 0x31a06000 0x0 0x1000>; + }; -- Gitee