Skip to contentSkip to conversation

dt-bindings: rng: mediatek: convert to yaml schema

PATCH Applied Fabien Parent 2 participants 4 messages May 20, 2021 – May 21, 2021

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

PATCH v2 1/2 dt-bindings: rng: mediatek: convert to yaml schema

Convert the RNG binding for MediaTek to use YAML schema.

---

v2: Write the compatibles in a more compact way

 .../devicetree/bindings/rng/mtk-rng.txt       | 22 --------
 .../devicetree/bindings/rng/mtk-rng.yaml      | 53 +++++++++++++++++++
 2 files changed, 53 insertions(+), 22 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rng/mtk-rng.txt
 create mode 100644 Documentation/devicetree/bindings/rng/mtk-rng.yaml
Documentation/devicetree/bindings/rng/mtk-rng.txt deleted +0 -22
deleted file mode 100644
index dfdcb5cd2ea8..000000000000
@@ -1,22 +0,0 @@
-Device-Tree bindings for Mediatek random number generator
-found in MediaTek SoC family
-
-Required properties:
-- compatible	    : Should be
-			"mediatek,mt7622-rng", 	"mediatek,mt7623-rng" : for MT7622
-			"mediatek,mt7629-rng",  "mediatek,mt7623-rng" : for MT7629
-			"mediatek,mt7623-rng" : for MT7623
-			"mediatek,mt8516-rng", "mediatek,mt7623-rng" : for MT8516
-- clocks	    : list of clock specifiers, corresponding to
-		      entries in clock-names property;
-- clock-names	    : Should contain "rng" entries;
-- reg 		    : Specifies base physical address and size of the registers
-
-Example:
-
-rng: rng@1020f000 {
-	compatible = "mediatek,mt7623-rng";
-	reg = <0 0x1020f000 0 0x1000>;
-	clocks = <&infracfg CLK_INFRA_TRNG>;
-	clock-names = "rng";
-};
Documentation/devicetree/bindings/rng/mtk-rng.yaml new file +53 -0

53 lines not on this page · raw message

Signature · 7 lines
2.31.1


_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
#1 lore raw

PATCH v2 2/2 dt-bindings: rng: mediatek: add mt8365 to mtk rng binding

Add RNG binding for MT8365 SoC.

---

v2: Write the compatible in a more compact way

 Documentation/devicetree/bindings/rng/mtk-rng.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/rng/mtk-rng.yaml +1 -0
index 4be5fc3c1409..61888e07bda0 100644
@@ -21,6 +21,7 @@ properties:
           - enum:
               - mediatek,mt7622-rng
               - mediatek,mt7629-rng
+              - mediatek,mt8365-rng
               - mediatek,mt8516-rng
           - const: mediatek,mt7623-rng
 
Signature · 7 lines
2.31.1


_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek
maintainer Applied
#2 lore raw

Re: [PATCH v2 2/2] dt-bindings: rng: mediatek: add mt8365 to mtk rng binding

Quoted 10 lines · Fabien Parent

Add RNG binding for MT8365 SoC.

---

v2: Write the compatible in a more compact way

 Documentation/devicetree/bindings/rng/mtk-rng.yaml | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks!

maintainer Applied
#3 lore raw
In reply to Fabien Parent
Quoted 5 lines · Fabien Parent

Convert the RNG binding for MediaTek to use YAML schema.

---

Quoted 8 lines

v2: Write the compatibles in a more compact way

 .../devicetree/bindings/rng/mtk-rng.txt       | 22 --------
 .../devicetree/bindings/rng/mtk-rng.yaml      | 53 +++++++++++++++++++
 2 files changed, 53 insertions(+), 22 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/rng/mtk-rng.txt
 create mode 100644 Documentation/devicetree/bindings/rng/mtk-rng.yaml

Applied, thanks!