diff options
author | Conor Dooley | 2022-10-07 12:35:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2022-12-31 13:31:50 +0100 |
commit | 48ad27467b00819c0885ccada3f24a36501a6dab (patch) | |
tree | c78070e17b178a8c41fc6a1a8de9ef49fed0d819 | |
parent | d12b10a783960be2f075759633569ba8cba2029d (diff) |
dt-bindings: pwm: fix microchip corePWM's pwm-cells
[ Upstream commit a62d196e89887c029d5aef409135f9a2a8667268 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml b/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml index a7fae1772a81..cd8e9a8907f8 100644 --- a/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml +++ b/Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml @@ -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: | |