dt-bindings: pwm: renesas,tpu-pwm: Improve json-schema
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 10 May 2021 12:18:34 +0000 (14:18 +0200)
committerRob Herring <robh@kernel.org>
Thu, 13 May 2021 02:33:19 +0000 (21:33 -0500)
  - Include the general PWM controller schema,
  - Make clocks, power-domains, and resets properties required.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Link: https://lore.kernel.org/r/d36e3690ce8c5a1e53d054552e4fd8b90d6a5478.1620648868.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/pwm/renesas,tpu-pwm.yaml

index aa9a4570c90682266483da3e39d71f5ebc10edf2..7c99e42ad780c2cd9b7aa3b8ab5fc070f53f9003 100644 (file)
@@ -58,6 +58,23 @@ required:
   - compatible
   - reg
   - '#pwm-cells'
+  - clocks
+  - power-domains
+
+allOf:
+  - $ref: pwm.yaml#
+
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - renesas,tpu-r8a73a4
+                - renesas,tpu-r8a7740
+    then:
+      required:
+        - resets
 
 additionalProperties: false