linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] dt: bindings: pca9532: add description of pwm and psc properties
       [not found] <1023311712.12962.1600197989828@mail.vodafone.de>
@ 2020-09-16 11:14 ` Markus Moll
  2020-09-19 11:59 ` Pavel Machek
  1 sibling, 0 replies; 3+ messages in thread
From: Markus Moll @ 2020-09-16 11:14 UTC (permalink / raw)
  To: linux-leds; +Cc: Riku Voipio, Pavel Machek

These new properties allow users to configure the PWM when the device is
probed. This is useful for e.g. uninterrupted blinking during boot.

Signed-off-by: Markus Moll <mmoll@de.pepperl-fuchs.com>
---

Resending this patch as it seems the first attempt wasn't successful.
Apologies if you received this patch twice.

 .../devicetree/bindings/leds/leds-pca9532.txt | 10 ++++++++++
 1 file changed, 10 insertions(+)


diff --git a/Documentation/devicetree/bindings/leds/leds-pca9532.txt b/Documentation/devicetree/bindings/leds/leds-pca9532.txt
index f769c52e364..3aa05eca9df 100644
--- a/Documentation/devicetree/bindings/leds/leds-pca9532.txt
+++ b/Documentation/devicetree/bindings/leds/leds-pca9532.txt
@@ -11,6 +11,14 @@ Required properties:
 "nxp,pca9533"
 - reg - I2C slave address
 
+Optional properties:
+ - nxp,pwm: array of two 8-bit values specifying the blink duty cycle
+ fractions of each pwm (default )
+ The duty cycle is pwm/256.
+ - nxp,psc: array of two 8-bit values specifying the blink period of
+ each pwm (default )
+ The period is (psc+1)/152 seconds.
+
 Each led is represented as a sub-node of the nxp,pca9530.

 Optional sub-node properties:
@@ -26,6 +34,8 @@ Example:
 leds: pca9530@60 {
 compatible = "nxp,pca9530";
 reg = ;
+ nxp,pwm = /bits/ 8 ; // 50% duty cycle
+ nxp,psc = /bits/ 8 ; // 1Hz and 4Hz, respectively
 
 red-power {
 label = "pca:red:power";
-- 
2.25.1

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

* Re: [PATCH 2/2] dt: bindings: pca9532: add description of pwm and psc properties
       [not found] <1023311712.12962.1600197989828@mail.vodafone.de>
  2020-09-16 11:14 ` [PATCH 2/2] dt: bindings: pca9532: add description of pwm and psc properties Markus Moll
@ 2020-09-19 11:59 ` Pavel Machek
  2020-09-22 19:22   ` Markus Moll
  1 sibling, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2020-09-19 11:59 UTC (permalink / raw)
  To: Markus Moll; +Cc: linux-leds, Riku Voipio

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

On Tue 2020-09-15 21:26:29, Markus Moll wrote:
> These new properties allow users to configure the PWM when the device is
> probed. This is useful for e.g. uninterrupted blinking during boot.
> 
> Signed-off-by: Markus Moll <mmoll@de.pepperl-fuchs.com>
> ---
> .../devicetree/bindings/leds/leds-pca9532.txt | 10 ++++++++++
> 1 file changed, 10 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/leds/leds-pca9532.txt b/Documentation/devicetree/bindings/leds/leds-pca9532.txt
> index f769c52e364..3aa05eca9df 100644
> --- a/Documentation/devicetree/bindings/leds/leds-pca9532.txt
> +++ b/Documentation/devicetree/bindings/leds/leds-pca9532.txt
> @@ -11,6 +11,14 @@ Required properties:
> "nxp,pca9533"
> - reg - I2C slave address
> 
> +Optional properties:
> + - nxp,pwm: array of two 8-bit values specifying the blink duty cycle
> + fractions of each pwm (default <0 0>)
> + The duty cycle is pwm/256.
> + - nxp,psc: array of two 8-bit values specifying the blink period of
> + each pwm (default <0 0>)
> + The period is (psc+1)/152 seconds.
> +
> Each led is represented as a sub-node of the nxp,pca9530.

This will need ACK from dt people.

Also patch came whitespace-damaged.

Best regards,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

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

* Re: [PATCH 2/2] dt: bindings: pca9532: add description of pwm and psc properties
  2020-09-19 11:59 ` Pavel Machek
@ 2020-09-22 19:22   ` Markus Moll
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Moll @ 2020-09-22 19:22 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-leds, Riku Voipio

On Sat 2020-09-19 13:59:56, Pavel Machek wrote:
> This will need ACK from dt people.
> 
> Also patch came whitespace-damaged.

Sorry about that, I'll send a new patch and cc it appropriately.

Regards
Markus





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

end of thread, other threads:[~2020-09-22 19:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1023311712.12962.1600197989828@mail.vodafone.de>
2020-09-16 11:14 ` [PATCH 2/2] dt: bindings: pca9532: add description of pwm and psc properties Markus Moll
2020-09-19 11:59 ` Pavel Machek
2020-09-22 19:22   ` Markus Moll

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).