dt-bindings: pwm: imx: Include generic PWM schema
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 14 Feb 2022 21:21:41 +0000 (22:21 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 24 Feb 2022 14:03:24 +0000 (15:03 +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>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Documentation/devicetree/bindings/pwm/imx-pwm.yaml
Documentation/devicetree/bindings/pwm/imx-tpm-pwm.yaml

index 379d693889f635ef901a0daaaf76aa5aab288295..b3da4e629341c03960896f5b7542ec7bcdc1d111 100644 (file)
@@ -9,6 +9,9 @@ title: Freescale i.MX PWM controller
 maintainers:
   - Philipp Zabel <p.zabel@pengutronix.de>
 
+allOf:
+  - $ref: pwm.yaml#
+
 properties:
   "#pwm-cells":
     description: |
@@ -59,7 +62,6 @@ properties:
     maxItems: 1
 
 required:
-  - "#pwm-cells"
   - compatible
   - reg
   - clocks
index fe9ef42544f1a97e1a212ff1a0035fa600570332..8bef9dfeba9a010e4841e14c96471b2cad5e2004 100644 (file)
@@ -13,6 +13,9 @@ description: |
   The TPM counter and period counter are shared between multiple
   channels, so all channels should use same period setting.
 
+allOf:
+  - $ref: pwm.yaml#
+
 properties:
   "#pwm-cells":
     const: 3
@@ -34,7 +37,6 @@ properties:
     maxItems: 1
 
 required:
-  - "#pwm-cells"
   - compatible
   - reg
   - clocks