]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: timer: renesas,rz-mtu3: document RZ/{T2H,N2H}
authorCosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Fri, 10 Apr 2026 16:35:27 +0000 (19:35 +0300)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Thu, 23 Apr 2026 11:10:25 +0000 (13:10 +0200)
Compared to the previously supported SoCs, the Renesas RZ/T2H and RZ/N2H
SoCs do not have a reset line.

Add support for them by moving the required reset into a conditional
matching all compatibles for the existing SoCs. Disable the resets for
RZ/T2H and RZ/N2H.

Document RZ/T2H and RZ/N2H, and use the generic compatible as a
fallback, as functionality is the same.

Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260410163530.383818-8-cosmin-gabriel.tanislav.xa@renesas.com
Documentation/devicetree/bindings/timer/renesas,rz-mtu3.yaml

index 00cd5cbcf6e9ba5e31b6b201a74082ea41fd55b4..ecff2912d812b8affe8849b0eae939889a4afdf7 100644 (file)
@@ -112,6 +112,8 @@ properties:
           - renesas,r9a07g043-mtu3  # RZ/{G2UL,Five}
           - renesas,r9a07g044-mtu3  # RZ/G2{L,LC}
           - renesas,r9a07g054-mtu3  # RZ/V2L
+          - renesas,r9a09g077-mtu3  # RZ/T2H
+          - renesas,r9a09g087-mtu3  # RZ/N2H
       - const: renesas,rz-mtu3
 
   reg:
@@ -231,7 +233,22 @@ required:
   - interrupt-names
   - clocks
   - power-domains
-  - resets
+
+allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - renesas,r9a07g043-mtu3
+              - renesas,r9a07g044-mtu3
+              - renesas,r9a07g054-mtu3
+    then:
+      required:
+        - resets
+    else:
+      properties:
+        resets: false
 
 additionalProperties: false