android_kernel_motorola_sm6375/drivers/leds
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Srihari Sathyanarayana 2d2ff4b594 Sol led: Handle power supply states
Handle power-supply states for Charging/Discharging
Set blink/solid Led settings as below

LED Brighness depend on Device Charging State
----------------------------------------------
-- Full while Device Charging
-- Half Brighness while not Charging

Led Functional Mode Depend on the Battery capacity
--------------------------------------------------
Battery Level < LOW_CAP_THRESHOLD_DEFAULT
-- Fast Blink "charging_low" led node(s)

LOW_CAP_THRESHOLD_DEFAULT < Battery Level < BATT_CAP_THRESHOLD_HIGH
-- Slow Blink "charging" led node(s) (If device charging)
-- Enable Solid 50% brightness for "charging" led node(s) (If device not charging)

BATT_CAP_THRESHOLD_HIGH < Battery Level < BATT_CAP_THRESHOLD_FULL
-- Slow Blink "charging_full" led node(s) (If device charging)
-- Enable Solid 50% brightness for "charging_full" led node(s) (If device not charging)

Battery Level ==  BATT_CAP_THRESHOLD_FULL
-- Enable Solid 100% brightness for "charging_full" led node(s)

Change-Id: I0abf35ea5ee51ade808ac196d8e56d7dcac33d9c
Signed-off-by: Srihari Sathyanarayana <sriharis@motorola.com>
Signed-off-by: Vijayakumar Gn <vijaygn@motorola.com>
Reviewed-on: https://gerrit.mot.com/2516362
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Perry White <awhite6@motorola.com>
Reviewed-by: Qing Chang <qing@motorola.com>
Submit-Approved: Jira Key
2023-02-28 01:30:57 -06:00
..
aw2033 dlkm: led_aw2033: don't enable led and CHGDIS when boot 2022-06-22 22:51:52 -05:00
trigger Sol led: Handle power supply states 2023-02-28 01:30:57 -06:00
Android.mk dlkm: leds/aw2033: add initial version driver 2022-03-28 02:21:38 -05:00
Kbuild
leds-indicator-pwm.c