]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
platform/x86: x86-android-tablets: Add swnode for Xiaomi pad2 indicator LED
authorKate Hsuan <hpa@redhat.com>
Fri, 22 Mar 2024 03:37:31 +0000 (11:37 +0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 8 Apr 2024 13:22:22 +0000 (15:22 +0200)
commitfcc6220ddc7e54d8442287273d0cb8c415ada022
tree54ff69b05badfda7f0340da7372b22618088f720
parentfe7af61159b85c2e78b4626be282e7fc9c487d46
platform/x86: x86-android-tablets: Add swnode for Xiaomi pad2 indicator LED

There is a KTD2026 LED controller to manage the indicator LED for Xiaomi
pad2. The ACPI for it is not properly made so the kernel can't get
a correct description of it.

This work adds a description for this RGB LED controller and also sets
a trigger to indicate the charging event (bq27520-0-charging). When it
is charging, the indicator LED will be turned on.

Signed-off-by: Kate Hsuan <hpa@redhat.com>
Link: https://lore.kernel.org/r/20240322033736.9344-2-hpa@redhat.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/x86-android-tablets/other.c