All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] ARM64: defconfig: add support for PWM LEDs
@ 2017-02-19 22:23 ` Martin Blumenstingl
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Blumenstingl @ 2017-02-19 22:23 UTC (permalink / raw)
  To: linux-arm-kernel

Some ARM64 boards (such as the Khadas VIM and many other Amlogic based
devices) have one of the LEDs connected through a PWM controller. This
allows dimming the LED.

The ARM64 defconfig does not support the leds-pwm driver yet. Enabling
that also means that we have to enable the default-on LED trigger.
leds-gpio has a (trigger specific) "default-state" property which can
be used to set the default state, while with leds-pwm this has to be
configured using the default-on trigger.

Martin Blumenstingl (1):
  ARM64: defconfig: enable the leds-pwm driver and default-on trigger

 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.11.1

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

* [PATCH 0/1] ARM64: defconfig: add support for PWM LEDs
@ 2017-02-19 22:23 ` Martin Blumenstingl
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Blumenstingl @ 2017-02-19 22:23 UTC (permalink / raw)
  To: linus-amlogic

Some ARM64 boards (such as the Khadas VIM and many other Amlogic based
devices) have one of the LEDs connected through a PWM controller. This
allows dimming the LED.

The ARM64 defconfig does not support the leds-pwm driver yet. Enabling
that also means that we have to enable the default-on LED trigger.
leds-gpio has a (trigger specific) "default-state" property which can
be used to set the default state, while with leds-pwm this has to be
configured using the default-on trigger.

Martin Blumenstingl (1):
  ARM64: defconfig: enable the leds-pwm driver and default-on trigger

 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.11.1

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

* [PATCH 1/1] ARM64: defconfig: enable the leds-pwm driver and default-on trigger
  2017-02-19 22:23 ` Martin Blumenstingl
@ 2017-02-19 22:23   ` Martin Blumenstingl
  -1 siblings, 0 replies; 6+ messages in thread
From: Martin Blumenstingl @ 2017-02-19 22:23 UTC (permalink / raw)
  To: linux-arm-kernel

This enables the leds-pwm driver to support LEDs which are PWM-powered
(and thus dimmable). Additionally we have to enable the "default-on"
trigger - this was not required before because the gpio-leds driver has
a separate "default-state" property which can be used to enable the LED
by default.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 33b744d54739..b36d02ce6154 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -394,8 +394,10 @@ CONFIG_MMC_SUNXI=y
 CONFIG_NEW_LEDS=y
 CONFIG_LEDS_CLASS=y
 CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_PWM=y
 CONFIG_LEDS_SYSCON=y
 CONFIG_LEDS_TRIGGERS=y
+CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
 CONFIG_LEDS_TRIGGER_HEARTBEAT=y
 CONFIG_LEDS_TRIGGER_CPU=y
 CONFIG_RTC_CLASS=y
-- 
2.11.1

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

* [PATCH 1/1] ARM64: defconfig: enable the leds-pwm driver and default-on trigger
@ 2017-02-19 22:23   ` Martin Blumenstingl
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Blumenstingl @ 2017-02-19 22:23 UTC (permalink / raw)
  To: linus-amlogic

This enables the leds-pwm driver to support LEDs which are PWM-powered
(and thus dimmable). Additionally we have to enable the "default-on"
trigger - this was not required before because the gpio-leds driver has
a separate "default-state" property which can be used to enable the LED
by default.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 33b744d54739..b36d02ce6154 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -394,8 +394,10 @@ CONFIG_MMC_SUNXI=y
 CONFIG_NEW_LEDS=y
 CONFIG_LEDS_CLASS=y
 CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_PWM=y
 CONFIG_LEDS_SYSCON=y
 CONFIG_LEDS_TRIGGERS=y
+CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
 CONFIG_LEDS_TRIGGER_HEARTBEAT=y
 CONFIG_LEDS_TRIGGER_CPU=y
 CONFIG_RTC_CLASS=y
-- 
2.11.1

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

* [PATCH 1/1] ARM64: defconfig: enable the leds-pwm driver and default-on trigger
  2017-02-19 22:23   ` Martin Blumenstingl
@ 2017-03-03 18:43     ` Kevin Hilman
  -1 siblings, 0 replies; 6+ messages in thread
From: Kevin Hilman @ 2017-03-03 18:43 UTC (permalink / raw)
  To: linux-arm-kernel

Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:

> This enables the leds-pwm driver to support LEDs which are PWM-powered
> (and thus dimmable). Additionally we have to enable the "default-on"
> trigger - this was not required before because the gpio-leds driver has
> a separate "default-state" property which can be used to enable the LED
> by default.
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

Applied to v4.12/defconfig of amlogic tree.

Kevin

> ---
>  arch/arm64/configs/defconfig | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 33b744d54739..b36d02ce6154 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -394,8 +394,10 @@ CONFIG_MMC_SUNXI=y
>  CONFIG_NEW_LEDS=y
>  CONFIG_LEDS_CLASS=y
>  CONFIG_LEDS_GPIO=y
> +CONFIG_LEDS_PWM=y
>  CONFIG_LEDS_SYSCON=y
>  CONFIG_LEDS_TRIGGERS=y
> +CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
>  CONFIG_LEDS_TRIGGER_HEARTBEAT=y
>  CONFIG_LEDS_TRIGGER_CPU=y
>  CONFIG_RTC_CLASS=y

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

* [PATCH 1/1] ARM64: defconfig: enable the leds-pwm driver and default-on trigger
@ 2017-03-03 18:43     ` Kevin Hilman
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin Hilman @ 2017-03-03 18:43 UTC (permalink / raw)
  To: linus-amlogic

Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:

> This enables the leds-pwm driver to support LEDs which are PWM-powered
> (and thus dimmable). Additionally we have to enable the "default-on"
> trigger - this was not required before because the gpio-leds driver has
> a separate "default-state" property which can be used to enable the LED
> by default.
>
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

Applied to v4.12/defconfig of amlogic tree.

Kevin

> ---
>  arch/arm64/configs/defconfig | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
> index 33b744d54739..b36d02ce6154 100644
> --- a/arch/arm64/configs/defconfig
> +++ b/arch/arm64/configs/defconfig
> @@ -394,8 +394,10 @@ CONFIG_MMC_SUNXI=y
>  CONFIG_NEW_LEDS=y
>  CONFIG_LEDS_CLASS=y
>  CONFIG_LEDS_GPIO=y
> +CONFIG_LEDS_PWM=y
>  CONFIG_LEDS_SYSCON=y
>  CONFIG_LEDS_TRIGGERS=y
> +CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
>  CONFIG_LEDS_TRIGGER_HEARTBEAT=y
>  CONFIG_LEDS_TRIGGER_CPU=y
>  CONFIG_RTC_CLASS=y

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

end of thread, other threads:[~2017-03-03 18:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-19 22:23 [PATCH 0/1] ARM64: defconfig: add support for PWM LEDs Martin Blumenstingl
2017-02-19 22:23 ` Martin Blumenstingl
2017-02-19 22:23 ` [PATCH 1/1] ARM64: defconfig: enable the leds-pwm driver and default-on trigger Martin Blumenstingl
2017-02-19 22:23   ` Martin Blumenstingl
2017-03-03 18:43   ` Kevin Hilman
2017-03-03 18:43     ` Kevin Hilman

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.