* [PATCH] dt-bindings: rng: hisi-rng: convert to DT schema
@ 2025-09-21 16:11 Kael D'Alcamo
2025-09-22 20:50 ` Rob Herring (Arm)
2025-09-28 3:59 ` Herbert Xu
0 siblings, 2 replies; 3+ messages in thread
From: Kael D'Alcamo @ 2025-09-21 16:11 UTC (permalink / raw)
To: Olivia Mackall, Herbert Xu, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-crypto, devicetree, linux-kernel
Convert the Devicetree binding documentation for hisilicon,hip04-rng
and hisilicon,hip05-rng from plain text to YAML.
Signed-off-by: Kael D'Alcamo <dev@kael-k.io>
---
.../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
diff --git a/Documentation/devicetree/bindings/rng/hisi-rng.txt b/Documentation/devicetree/bindings/rng/hisi-rng.txt
deleted file mode 100644
index d04d55a6c2f5..000000000000
--- a/Documentation/devicetree/bindings/rng/hisi-rng.txt
+++ /dev/null
@@ -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>;
-};
diff --git a/Documentation/devicetree/bindings/rng/hisi-rng.yaml b/Documentation/devicetree/bindings/rng/hisi-rng.yaml
new file mode 100644
index 000000000000..5406b2596f42
--- /dev/null
+++ b/Documentation/devicetree/bindings/rng/hisi-rng.yaml
@@ -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>;
+ };
--
2.51.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: rng: hisi-rng: convert to DT schema
2025-09-21 16:11 [PATCH] dt-bindings: rng: hisi-rng: convert to DT schema Kael D'Alcamo
@ 2025-09-22 20:50 ` Rob Herring (Arm)
2025-09-28 3:59 ` Herbert Xu
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2025-09-22 20:50 UTC (permalink / raw)
To: Kael D'Alcamo
Cc: Olivia Mackall, Krzysztof Kozlowski, Herbert Xu, Conor Dooley,
devicetree, linux-crypto, linux-kernel
On Sun, 21 Sep 2025 18:11:34 +0200, Kael D'Alcamo wrote:
> Convert the Devicetree binding documentation for hisilicon,hip04-rng
> and hisilicon,hip05-rng from plain text to YAML.
>
> Signed-off-by: Kael D'Alcamo <dev@kael-k.io>
> ---
> .../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
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: rng: hisi-rng: convert to DT schema
2025-09-21 16:11 [PATCH] dt-bindings: rng: hisi-rng: convert to DT schema Kael D'Alcamo
2025-09-22 20:50 ` Rob Herring (Arm)
@ 2025-09-28 3:59 ` Herbert Xu
1 sibling, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2025-09-28 3:59 UTC (permalink / raw)
To: Kael D'Alcamo
Cc: Olivia Mackall, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
linux-crypto, devicetree, linux-kernel
On Sun, Sep 21, 2025 at 06:11:34PM +0200, Kael D'Alcamo wrote:
> Convert the Devicetree binding documentation for hisilicon,hip04-rng
> and hisilicon,hip05-rng from plain text to YAML.
>
> Signed-off-by: Kael D'Alcamo <dev@kael-k.io>
> ---
> .../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.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-09-28 3:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-21 16:11 [PATCH] dt-bindings: rng: hisi-rng: convert to DT schema Kael D'Alcamo
2025-09-22 20:50 ` Rob Herring (Arm)
2025-09-28 3:59 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®