dt-bindings: pwm: fix microchip corePWM's pwm-cells
authorConor Dooley <conor.dooley@microchip.com>
Fri, 7 Oct 2022 11:35:10 +0000 (12:35 +0100)
committerConor Dooley <conor.dooley@microchip.com>
Wed, 9 Nov 2022 21:48:23 +0000 (21:48 +0000)
corePWM is capable of inverted operation but the binding requires
\#pwm-cells of 2. Expand the binding to support setting the polarity.

Fixes: df77f7735786 ("dt-bindings: pwm: add microchip corepwm binding")
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml

index a7fae1772a81b3382ecbe400a494b90ec40fdb62..cd8e9a8907f84a6b278d0e5e6335a07510858dae 100644 (file)
@@ -30,7 +30,9 @@ properties:
     maxItems: 1
 
   "#pwm-cells":
-    const: 2
+    enum: [2, 3]
+    description:
+      The only flag supported by the controller is PWM_POLARITY_INVERTED.
 
   microchip,sync-update-mask:
     description: |