diff mbox series

dt-bindings: pwm: renesas,pwm-rcar: Make power-domains and resets required

Message ID 16e82b5019b913f9a63e312166a37ef67266d425.1619700364.git.geert+renesas@glider.be
State Accepted
Commit 4fa9ee2e65ece14f040cc3596525c9e8d6a395eb
Headers show
Series dt-bindings: pwm: renesas,pwm-rcar: Make power-domains and resets required | expand

Commit Message

Geert Uytterhoeven April 29, 2021, 12:46 p.m. UTC
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>
---
 .../devicetree/bindings/pwm/renesas,pwm-rcar.yaml   | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Rob Herring (Arm) May 3, 2021, 8:03 p.m. UTC | #1
On Thu, 29 Apr 2021 14:46:45 +0200, Geert Uytterhoeven wrote:
> 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>

> ---

>  .../devicetree/bindings/pwm/renesas,pwm-rcar.yaml   | 13 +++++++++++++

>  1 file changed, 13 insertions(+)

> 


Applied, thanks!
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml b/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml
index 3c2fa2e93d1b17d6..7ea1070b4b3a82ec 100644
--- a/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml
+++ b/Documentation/devicetree/bindings/pwm/renesas,pwm-rcar.yaml
@@ -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