diff mbox

[2/2] pwm: bcm2835: Support for polarity setting via DT

Message ID 1499508838-20715-3-git-send-email-stefan.wahren@i2se.com
State Superseded
Headers show

Commit Message

Stefan Wahren July 8, 2017, 10:13 a.m. UTC
This adds support for the third (optional) pwm cell to specify the
polarity, which is needed by display backlights for example.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
 drivers/pwm/pwm-bcm2835.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Eric Anholt July 10, 2017, 4:56 p.m. UTC | #1
Stefan Wahren <stefan.wahren@i2se.com> writes:

> This adds support for the third (optional) pwm cell to specify the
> polarity, which is needed by display backlights for example.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>

Reviewed-by: Eric Anholt <eric@anholt.net>
Stefan Wahren July 20, 2017, 5:34 p.m. UTC | #2
> Eric Anholt <eric@anholt.net> hat am 10. Juli 2017 um 18:56 geschrieben:
> 
> 
> Stefan Wahren <stefan.wahren@i2se.com> writes:
> 
> > This adds support for the third (optional) pwm cell to specify the
> > polarity, which is needed by display backlights for example.
> >
> > Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
> 
> Reviewed-by: Eric Anholt <eric@anholt.net>

gentle ping to Thierry
--
To unsubscribe from this list: send the line "unsubscribe linux-pwm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Stefan Wahren July 27, 2017, 9:26 a.m. UTC | #3
Am 20.07.2017 um 19:34 schrieb Stefan Wahren:
>
>> Eric Anholt <eric@anholt.net> hat am 10. Juli 2017 um 18:56 geschrieben:
>>
>>
>> Stefan Wahren <stefan.wahren@i2se.com> writes:
>>
>>> This adds support for the third (optional) pwm cell to specify the
>>> polarity, which is needed by display backlights for example.
>>>
>>> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
>> Reviewed-by: Eric Anholt <eric@anholt.net>
> gentle ping to Thierry

ping ...
--
To unsubscribe from this list: send the line "unsubscribe linux-pwm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pwm/pwm-bcm2835.c b/drivers/pwm/pwm-bcm2835.c
index c5dbf16..db001cb 100644
--- a/drivers/pwm/pwm-bcm2835.c
+++ b/drivers/pwm/pwm-bcm2835.c
@@ -167,6 +167,8 @@  static int bcm2835_pwm_probe(struct platform_device *pdev)
 	pc->chip.dev = &pdev->dev;
 	pc->chip.ops = &bcm2835_pwm_ops;
 	pc->chip.npwm = 2;
+	pc->chip.of_xlate = of_pwm_xlate_with_flags;
+	pc->chip.of_pwm_n_cells = 3;
 
 	platform_set_drvdata(pdev, pc);