All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] pwm: bcm2835: Support for polarity setting via DT
@ 2017-08-12 10:19 ` Stefan Wahren
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Wahren @ 2017-08-12 10:19 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Rob Herring, Mark Rutland, linux-rpi-kernel, devicetree,
	linux-arm-kernel, linux-pwm, Stefan Wahren

This patch series adds support for the third (optional) pwm cell to specify the
polarity.

Changes in V2:
* add ack and review tags

Stefan Wahren (2):
  dt-bindings: pwm-bcm2835: Increase pwm-cells
  pwm: bcm2835: Support for polarity setting via DT

 Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt | 4 ++--
 drivers/pwm/pwm-bcm2835.c                             | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH V2 0/2] pwm: bcm2835: Support for polarity setting via DT
@ 2017-08-12 10:19 ` Stefan Wahren
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Wahren @ 2017-08-12 10:19 UTC (permalink / raw)
  To: linux-arm-kernel

This patch series adds support for the third (optional) pwm cell to specify the
polarity.

Changes in V2:
* add ack and review tags

Stefan Wahren (2):
  dt-bindings: pwm-bcm2835: Increase pwm-cells
  pwm: bcm2835: Support for polarity setting via DT

 Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt | 4 ++--
 drivers/pwm/pwm-bcm2835.c                             | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH V2 1/2] dt-bindings: pwm-bcm2835: Increase pwm-cells
  2017-08-12 10:19 ` Stefan Wahren
@ 2017-08-12 10:19   ` Stefan Wahren
  -1 siblings, 0 replies; 8+ messages in thread
From: Stefan Wahren @ 2017-08-12 10:19 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Rob Herring, Mark Rutland, linux-rpi-kernel, devicetree,
	linux-arm-kernel, linux-pwm, Stefan Wahren

We need to increase the pwm-cells for the optional flags parameter,
before we can implement support for polarity setting via DT.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt b/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt
index cf573e8..8cf87d1 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt
@@ -6,7 +6,7 @@ Required properties:
 - clocks: This clock defines the base clock frequency of the PWM hardware
   system, the period and the duty_cycle of the PWM signal is a multiple of
   the base period.
-- #pwm-cells: Should be 2. See pwm.txt in this directory for a description of
+- #pwm-cells: Should be 3. See pwm.txt in this directory for a description of
   the cells format.
 
 Examples:
@@ -15,7 +15,7 @@ pwm@2020c000 {
 	compatible = "brcm,bcm2835-pwm";
 	reg = <0x2020c000 0x28>;
 	clocks = <&clk_pwm>;
-	#pwm-cells = <2>;
+	#pwm-cells = <3>;
 };
 
 clocks {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH V2 1/2] dt-bindings: pwm-bcm2835: Increase pwm-cells
@ 2017-08-12 10:19   ` Stefan Wahren
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Wahren @ 2017-08-12 10:19 UTC (permalink / raw)
  To: linux-arm-kernel

We need to increase the pwm-cells for the optional flags parameter,
before we can implement support for polarity setting via DT.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt b/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt
index cf573e8..8cf87d1 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt
@@ -6,7 +6,7 @@ Required properties:
 - clocks: This clock defines the base clock frequency of the PWM hardware
   system, the period and the duty_cycle of the PWM signal is a multiple of
   the base period.
-- #pwm-cells: Should be 2. See pwm.txt in this directory for a description of
+- #pwm-cells: Should be 3. See pwm.txt in this directory for a description of
   the cells format.
 
 Examples:
@@ -15,7 +15,7 @@ pwm at 2020c000 {
 	compatible = "brcm,bcm2835-pwm";
 	reg = <0x2020c000 0x28>;
 	clocks = <&clk_pwm>;
-	#pwm-cells = <2>;
+	#pwm-cells = <3>;
 };
 
 clocks {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH V2 2/2] pwm: bcm2835: Support for polarity setting via DT
  2017-08-12 10:19 ` Stefan Wahren
@ 2017-08-12 10:19   ` Stefan Wahren
  -1 siblings, 0 replies; 8+ messages in thread
From: Stefan Wahren @ 2017-08-12 10:19 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Rob Herring, Mark Rutland, linux-rpi-kernel, devicetree,
	linux-arm-kernel, linux-pwm, Stefan Wahren

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>
---
 drivers/pwm/pwm-bcm2835.c | 2 ++
 1 file changed, 2 insertions(+)

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);
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH V2 2/2] pwm: bcm2835: Support for polarity setting via DT
@ 2017-08-12 10:19   ` Stefan Wahren
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Wahren @ 2017-08-12 10:19 UTC (permalink / raw)
  To: linux-arm-kernel

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>
---
 drivers/pwm/pwm-bcm2835.c | 2 ++
 1 file changed, 2 insertions(+)

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);
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH V2 0/2] pwm: bcm2835: Support for polarity setting via DT
  2017-08-12 10:19 ` Stefan Wahren
@ 2017-08-21  5:28   ` Thierry Reding
  -1 siblings, 0 replies; 8+ messages in thread
From: Thierry Reding @ 2017-08-21  5:28 UTC (permalink / raw)
  To: Stefan Wahren
  Cc: Rob Herring, Mark Rutland, linux-rpi-kernel, devicetree,
	linux-arm-kernel, linux-pwm

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

On Sat, Aug 12, 2017 at 12:19:42PM +0200, Stefan Wahren wrote:
> This patch series adds support for the third (optional) pwm cell to specify the
> polarity.
> 
> Changes in V2:
> * add ack and review tags
> 
> Stefan Wahren (2):
>   dt-bindings: pwm-bcm2835: Increase pwm-cells
>   pwm: bcm2835: Support for polarity setting via DT
> 
>  Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt | 4 ++--
>  drivers/pwm/pwm-bcm2835.c                             | 2 ++
>  2 files changed, 4 insertions(+), 2 deletions(-)

Both patches applied to for-4.14/drivers, thanks.

Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH V2 0/2] pwm: bcm2835: Support for polarity setting via DT
@ 2017-08-21  5:28   ` Thierry Reding
  0 siblings, 0 replies; 8+ messages in thread
From: Thierry Reding @ 2017-08-21  5:28 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Aug 12, 2017 at 12:19:42PM +0200, Stefan Wahren wrote:
> This patch series adds support for the third (optional) pwm cell to specify the
> polarity.
> 
> Changes in V2:
> * add ack and review tags
> 
> Stefan Wahren (2):
>   dt-bindings: pwm-bcm2835: Increase pwm-cells
>   pwm: bcm2835: Support for polarity setting via DT
> 
>  Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt | 4 ++--
>  drivers/pwm/pwm-bcm2835.c                             | 2 ++
>  2 files changed, 4 insertions(+), 2 deletions(-)

Both patches applied to for-4.14/drivers, thanks.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170821/d3f57336/attachment.sig>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-08-21  5:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-12 10:19 [PATCH V2 0/2] pwm: bcm2835: Support for polarity setting via DT Stefan Wahren
2017-08-12 10:19 ` Stefan Wahren
2017-08-12 10:19 ` [PATCH V2 1/2] dt-bindings: pwm-bcm2835: Increase pwm-cells Stefan Wahren
2017-08-12 10:19   ` Stefan Wahren
2017-08-12 10:19 ` [PATCH V2 2/2] pwm: bcm2835: Support for polarity setting via DT Stefan Wahren
2017-08-12 10:19   ` Stefan Wahren
2017-08-21  5:28 ` [PATCH V2 0/2] " Thierry Reding
2017-08-21  5:28   ` Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.