This patch adds support for "default-state" devicetree property, which
allows to defer pwm init to first use of led.
This allows to configure the PWM early in bootloader to let the LED
blink until an application in Linux userspace sets something different.
Signed-off-by: Denis Oste
The default-state is now supported for PWM leds.
Signed-off-by: Denis Osterland-Heim
Acked-by: Jacek Anaszewski
Acked-by: Pavel Machek
Acked-by: Rob Herring
---
Documentation/devicetree/bindings/leds/leds-pwm.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree
v6 -> v7: apply comments from Jacek
refactore default state read to separate function
and use it in leds-gpio and leds-pwm
@Pavel I hope that it is okay to keep your acked-by on 2/3,
the logic is the same but with switch, in favour of if
This patch introduces a new function to read initial
default_state from fwnode.
Signed-off-by: Denis Osterland-Heim
---
drivers/leds/led-core.c | 15 +++
drivers/leds/leds-gpio.c | 12 ++--
drivers/leds/leds.h | 1 +
include/linux/leds.h | 12 +---
4 files
der to let the LED
> > blink until an application in Linux userspace sets something different.
> >
> > Signed-off-by: Denis Osterland-Heim
> > Acked-by: Jacek Anaszewski
> > +#define LEDS_PWM_DEFSTATE_OFF 0
> > +#define LEDS_PWM_DEFSTATE_ON 1
>
v5 -> v6: tested the rebase to v5.8-rc2 based for-next
.../devicetree/bindings/leds/leds-pwm.txt | 2 +
drivers/leds/leds-pwm.c| 54 +++---
2 files changed, 50 insertions(+), 6 deletions(-)
Message-Id:
The default-state is now supported for PWM leds.
Signed-off-by: Denis Osterland-Heim
Acked-by: Jacek Anaszewski
Acked-by: Pavel Machek
Acked-by: Rob Herring
---
Documentation/devicetree/bindings/leds/leds-pwm.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree
This patch adds support for "default-state" devicetree property, which
allows to defer pwm init to first use of led.
This allows to configure the PWM early in bootloader to let the LED
blink until an application in Linux userspace sets something different.
Signed-off-by: Denis Oste
Hi Jacek,
is your ack still valid for the new versions of the patch-set?
Due to the changes I made, I am not sure.
Regards, Denis
Am Dienstag, den 17.03.2020, 21:43 +0100 schrieb Jacek Anaszewski:
> Hi Denis,
>
> On 3/16/20 9:24 PM, Denis Osterland-Heim wrote:
> > Hi Jacek,
>
9 matches
Mail list logo