dt-bindings: pwm: renesas,pwm-rcar: Make power-domains and resets required
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 29 Apr 2021 12:46:45 +0000 (14:46 +0200)
committerRob Herring <robh@kernel.org>
Mon, 10 May 2021 16:54:31 +0000 (11:54 -0500)
The "power-domains" property is present on all supported platforms.
The "resets" property is present on all but R-Car Gen1.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/16e82b5019b913f9a63e312166a37ef67266d425.1619700364.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml

index 3c2fa2e..7ea1070 100644 (file)
@@ -61,6 +61,19 @@ required:
   - reg
   - '#pwm-cells'
   - clocks
+  - power-domains
+
+if:
+  not:
+    properties:
+      compatible:
+        contains:
+          enum:
+            - renesas,pwm-r8a7778
+            - renesas,pwm-r8a7779
+then:
+  required:
+    - resets
 
 additionalProperties: false