Skip to contentSkip to conversation

dt-bindings: rng: microchip,pic32-rng: convert to DT schema

PATCH In review Kael D'Alcamo 3 participants 3 messages Sep 23, 2025 – Oct 17, 2025

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

PATCH 1/1 dt-bindings: rng: microchip,pic32-rng: convert to DT schema

Convert the Devicetree binding documentation for microchip,pic32mzda-rng from plain text to YAML.

---
 .../bindings/rng/microchip,pic32-rng.txt      | 17 --------
 .../bindings/rng/microchip,pic32-rng.yaml     | 40 +++++++++++++++++++
 2 files changed, 40 insertions(+), 17 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rng/microchip,pic32-rng.txt
 create mode 100644 Documentation/devicetree/bindings/rng/microchip,pic32-rng.yaml
Documentation/devicetree/bindings/rng/microchip,pic32-rng.txt deleted +0 -17
deleted file mode 100644
index c6d1003befb7..000000000000
@@ -1,17 +0,0 @@
-* Microchip PIC32 Random Number Generator
-
-The PIC32 RNG provides a pseudo random number generator which can be seeded by
-another true random number generator.
-
-Required properties:
-- compatible : should be "microchip,pic32mzda-rng"
-- reg : Specifies base physical address and size of the registers.
-- clocks: clock phandle.
-
-Example:
-
-	rng: rng@1f8e6000 {
-		compatible = "microchip,pic32mzda-rng";
-		reg = <0x1f8e6000 0x1000>;
-		clocks = <&PBCLK5>;
-	};
Documentation/devicetree/bindings/rng/microchip,pic32-rng.yaml new file +40 -0
new file mode 100644
index 000000000000..1f6f6fb81ddc
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rng/microchip,pic32-rng.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip PIC32 Random Number Generator
+
+description: |
+  The PIC32 RNG provides a pseudo random number generator which can be seeded
+  by another true random number generator.
+
+maintainers:
+  - Joshua Henderson <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - microchip,pic32mzda-rng
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - clocks
+
+additionalProperties: false
+
+examples:
+  - |
+    rng: rng@1f8e6000 {
+      compatible = "microchip,pic32mzda-rng";
+      reg = <0x1f8e6000 0x1000>;
+      clocks = <&PBCLK5>;
+    };
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 microchip,pic32mzda-rng from plain text to YAML.

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

Convert the Devicetree binding documentation for microchip,pic32mzda-rng from plain text to YAML.

---
 .../bindings/rng/microchip,pic32-rng.txt      | 17 --------
 .../bindings/rng/microchip,pic32-rng.yaml     | 40 +++++++++++++++++++
 2 files changed, 40 insertions(+), 17 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rng/microchip,pic32-rng.txt
 create mode 100644 Documentation/devicetree/bindings/rng/microchip,pic32-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