dt-bindings: pwm: renesas,pwm: Include generic PWM schema
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 14 Feb 2022 21:21:47 +0000 (22:21 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 24 Feb 2022 14:07:50 +0000 (15:07 +0100)
Include generic pwm.yaml schema, which enforces PWM node naming and
brings pwm-cells requirement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml

index 7ea1070..1c94acb 100644 (file)
@@ -59,21 +59,23 @@ properties:
 required:
   - compatible
   - reg
-  - '#pwm-cells'
   - clocks
   - power-domains
 
-if:
-  not:
-    properties:
-      compatible:
-        contains:
-          enum:
-            - renesas,pwm-r8a7778
-            - renesas,pwm-r8a7779
-then:
-  required:
-    - resets
+allOf:
+  - $ref: pwm.yaml#
+
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - renesas,pwm-r8a7778
+                - renesas,pwm-r8a7779
+    then:
+      required:
+        - resets
 
 additionalProperties: false