Skip to content

Commit

Permalink
dt-bindings: pwm: fix microchip corePWM's pwm-cells
Browse files Browse the repository at this point in the history
[ Upstream commit a62d196 ]

corePWM is capable of inverted operation but the binding requires
\#pwm-cells of 2. Expand the binding to support setting the polarity.

Fixes: df77f77 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
ConchuOD authored and gregkh committed Dec 31, 2022
1 parent d12b10a commit 48ad274
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 48ad274

Please sign in to comment.