linux/Documentation/leds
Yauhen Kharuzhy 047da762b9 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>
2023-05-25 12:16:11 +01:00
..
index.rst Documentation: leds: Add MT6370 doc to the toctree 2023-03-23 15:18:41 +00:00
leds-blinkm.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-class-flash.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-class-multicolor.rst leds: multicolor: Introduce a multicolor class definition 2020-07-22 14:41:29 +02:00
leds-class.rst Documentation: leds: remove invalidated information 2020-10-26 09:21:51 +01:00
leds-el15203000.rst docs: ABI: sysfs-class-led-trigger-pattern: remove hw_pattern duplication 2020-10-30 13:15:03 +01:00
leds-lm3556.rst Documentation: Add leading slash to some paths 2021-03-31 13:49:19 -06:00
leds-lp55xx.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-lp3944.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-lp5521.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-lp5523.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-lp5562.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-mlxcpld.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
leds-mt6370-rgb.rst Documentation: leds: MT6370: Use bullet lists for timing variables 2023-03-29 15:38:53 +01:00
leds-qcom-lpg.rst Documentation: leds: Correct spelling 2023-01-30 08:03:46 +00:00
leds-sc27xx.rst docs: ABI: sysfs-class-led-trigger-pattern: remove hw_pattern duplication 2020-10-30 13:15:03 +01:00
ledtrig-oneshot.rst docs: leds: ledtrig-oneshot: Fix spelling mistake 2023-04-20 14:57:48 +01:00
ledtrig-transient.rst leds: we don't want people to use LED subsystem for vibrations 2020-08-17 18:04:15 +02:00
ledtrig-usbport.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
uleds.rst docs: leds: convert to ReST 2019-06-28 20:57:31 +02:00
well-known-leds.txt leds: Add Intel Cherry Trail Whiskey Cove PMIC LED driver 2023-05-25 12:16:11 +01:00