Skip to contentSkip to conversation

dt-bindings: rng: hisi-rng: convert to DT schema

PATCH In review Kael D'Alcamo 3 participants 3 messages Sep 21, 2025 – Sep 28, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: rng: hisi-rng: convert to DT schema

Convert the Devicetree binding documentation for hisilicon,hip04-rng and hisilicon,hip05-rng from plain text to YAML.

---
 .../devicetree/bindings/rng/hisi-rng.txt      | 12 -------
 .../devicetree/bindings/rng/hisi-rng.yaml     | 32 +++++++++++++++++++
 2 files changed, 32 insertions(+), 12 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rng/hisi-rng.txt
 create mode 100644 Documentation/devicetree/bindings/rng/hisi-rng.yaml
Documentation/devicetree/bindings/rng/hisi-rng.txt deleted +0 -12
deleted file mode 100644
index d04d55a6c2f5..000000000000
@@ -1,12 +0,0 @@
-Hisilicon Random Number Generator
-
-Required properties:
-- compatible : Should be "hisilicon,hip04-rng" or "hisilicon,hip05-rng"
-- reg : Offset and length of the register set of this block
-
-Example:
-
-rng@d1010000 {
-	compatible = "hisilicon,hip05-rng";
-	reg = <0xd1010000 0x100>;
-};
Documentation/devicetree/bindings/rng/hisi-rng.yaml new file +32 -0
new file mode 100644
index 000000000000..5406b2596f42
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rng/hisi-rng.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Hisilicon Random Number Generator
+
+maintainers:
+  - Kefeng Wang <wangkefeng.wang@huawei>
+
+properties:
+  compatible:
+    enum:
+      - hisilicon,hip04-rng
+      - hisilicon,hip05-rng
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    rng@d1010000 {
+      compatible = "hisilicon,hip05-rng";
+      reg = <0xd1010000 0x100>;
+    };
Signature · 1 line
2.51.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Kael D'Alcamo

Convert the Devicetree binding documentation for hisilicon,hip04-rng and hisilicon,hip05-rng from plain text to YAML.

---
 .../devicetree/bindings/rng/hisi-rng.txt      | 12 -------
 .../devicetree/bindings/rng/hisi-rng.yaml     | 32 +++++++++++++++++++
 2 files changed, 32 insertions(+), 12 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rng/hisi-rng.txt
 create mode 100644 Documentation/devicetree/bindings/rng/hisi-rng.yaml
maintainer
#2 lore raw
In reply to Kael D'Alcamo
Quoted 10 lines · Kael D'Alcamo

Convert the Devicetree binding documentation for hisilicon,hip04-rng and hisilicon,hip05-rng from plain text to YAML.

---
 .../devicetree/bindings/rng/hisi-rng.txt      | 12 -------
 .../devicetree/bindings/rng/hisi-rng.yaml     | 32 +++++++++++++++++++
 2 files changed, 32 insertions(+), 12 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rng/hisi-rng.txt
 create mode 100644 Documentation/devicetree/bindings/rng/hisi-rng.yaml

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt