[PATCH 1/2] dt-bindings: timer: renesas: ostm: Document Renesas RZ/G2L OSTM

Biju Das biju.das.jz at bp.renesas.com
Wed Nov 10 00:31:51 PST 2021


Document the General Timer Module(a.k.a OSTM) found on the RZ/G2L SoC.

Signed-off-by: Biju Das <biju.das.jz at bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj at bp.renesas.com>
---
 .../bindings/timer/renesas,ostm.yaml          | 29 +++++++++++++++----
 1 file changed, 24 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/timer/renesas,ostm.yaml b/Documentation/devicetree/bindings/timer/renesas,ostm.yaml
index 600d47ab7d58..5a8ffdc8b1cb 100644
--- a/Documentation/devicetree/bindings/timer/renesas,ostm.yaml
+++ b/Documentation/devicetree/bindings/timer/renesas,ostm.yaml
@@ -19,11 +19,17 @@ description:
 
 properties:
   compatible:
-    items:
-      - enum:
-          - renesas,r7s72100-ostm # RZ/A1H
-          - renesas,r7s9210-ostm  # RZ/A2M
-      - const: renesas,ostm       # Generic
+    oneOf:
+      - items:
+          - enum:
+              - renesas,r7s72100-ostm  # RZ/A1H
+              - renesas,r7s9210-ostm   # RZ/A2M
+          - const: renesas,ostm        # Generic
+
+      - items:
+          - enum:
+              - renesas,r9a07g044-ostm # RZ/G2{L,LC}
+          - const: renesas,rzg2l-ostm  # RZ/G2L
 
   reg:
     maxItems: 1
@@ -37,6 +43,9 @@ properties:
   power-domains:
     maxItems: 1
 
+  resets:
+    maxItems: 1
+
 required:
   - compatible
   - reg
@@ -44,6 +53,16 @@ required:
   - clocks
   - power-domains
 
+if:
+  properties:
+    compatible:
+      contains:
+        enum:
+          - renesas,rzg2l-ostm
+then:
+  required:
+    - resets
+
 additionalProperties: false
 
 examples:
-- 
2.17.1




More information about the linux-arm-kernel mailing list