diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2021-10-19 16:45:19 +0200 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2021-10-21 23:36:30 +0200 |
commit | c223d9c636ed55ba8abaa94be329f92fe43d522d (patch) | |
tree | 2ce19496ef04f6e4f51778da36a80f2e992d723e /drivers/auxdisplay/Kconfig | |
parent | 2904c01428e7e372bcfa4723a891669b2c55f1fb (diff) |
auxdisplay: ht16k33: Add LED support
Instantiate a single LED based on the "led" subnode in DT.
This allows the user to control display brightness and blinking (backed
by hardware support) through the LED class API and triggers, and exposes
the display color. The LED will be named
"auxdisplay:<color>:<function>".
When running in dot-matrix mode and if no "led" subnode is found, the
driver falls back to the traditional backlight mode, to preserve
backwards compatibility.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Reviewed-by: Robin van der Gracht <robin@protonic.nl>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/auxdisplay/Kconfig')
-rw-r--r-- | drivers/auxdisplay/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig index 42fc7b155de0..e32ef7f9945d 100644 --- a/drivers/auxdisplay/Kconfig +++ b/drivers/auxdisplay/Kconfig @@ -176,6 +176,8 @@ config HT16K33 select FB_SYS_IMAGEBLIT select INPUT_MATRIXKMAP select FB_BACKLIGHT + select NEW_LEDS + select LEDS_CLASS select LINEDISP help Say yes here to add support for Holtek HT16K33, RAM mapping 16*8 |