diff options
author | Yauhen Kharuzhy <jekhor@gmail.com> | 2023-04-30 21:59:48 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2023-05-25 13:16:11 +0200 |
commit | 047da762b9a937d60c16e2c8392c326e5ab11a1d (patch) | |
tree | 3bc686b8cb2bf06d3250a5f66cccea6f6b41da03 /Documentation/leds | |
parent | dt-bindings: leds: Drop redundant cpus enum match (diff) | |
download | linux-047da762b9a937d60c16e2c8392c326e5ab11a1d.tar.xz linux-047da762b9a937d60c16e2c8392c326e5ab11a1d.zip |
leds: Add Intel Cherry Trail Whiskey Cove PMIC LED driver
Add support for LEDs connected to the Intel Cherry Trail Whiskey Cove
PMIC. Charger and general-purpose LEDs are supported. Hardware blinking
is implemented, breathing is not.
This driver was tested with Lenovo Yoga Book notebook.
Changes by Hans de Goede (in response to review of v2):
- Since the PMIC is connected to the battery any changes we make to
the LED settings are permanent, even surviving reboot / poweroff.
Save LED1 register settings on probe() and if auto-/hw-control was
enabled on probe() restore the settings on remove() and shutdown().
- Delay switching LED1 to software control mode to first brightness write.
- Use dynamically allocated drvdata instead of a global drvdata variable.
- Ensure the LED is on when activating blinking.
- Fix CHT_WC_LED_EFF_BREATHING val ((3 << 1) rather then BIT(3)).
Link: https://lore.kernel.org/r/20190212205901.13037-2-jekhor@gmail.com
Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Co-developed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230430195952.862527-2-hdegoede@redhat.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'Documentation/leds')
-rw-r--r-- | Documentation/leds/well-known-leds.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/leds/well-known-leds.txt b/Documentation/leds/well-known-leds.txt index e9c30dc75884..326172ca4b62 100644 --- a/Documentation/leds/well-known-leds.txt +++ b/Documentation/leds/well-known-leds.txt @@ -65,7 +65,7 @@ Phones usually have multi-color status LED. * Power management -Good: "platform:*:charging" (allwinner sun50i) +Good: "platform:*:charging" (allwinner sun50i, leds-cht-wcove) * Screen |