ACPI / x86: Add PWM2 on the Xiaomi Mi Pad 2 to the always_present list
cover ACPI / x86: Add PWM2 on the Xiaomi Mi Pad 2 to the always_present list
Hi Rafael,
This patch was previously send as part of a RFC series because I was not sure if there may be needed to be more entries in the always_present list for the Xiaomi Mi Pad 2.
I know have a clear plan forward and we will just need this one entry, so this patch now is ready for merging (for 5.17, though 5.16 is fine too).
Regards,
Hans
Hans de Goede (1):
ACPI / x86: Add PWM2 on the Xiaomi Mi Pad 2 to the always_present list
drivers/acpi/x86/utils.c | 5 +++++ 1 file changed, 5 insertions(+)
Signature · 1 line
2.31.1
PATCH 1/1 ACPI / x86: Add PWM2 on the Xiaomi Mi Pad 2 to the always_present list
The Xiaomi Mi Pad 2 has backlit LEDs behind the capacitive menu, home and back buttons below the screen which are controlled by the PWM2 controller of the CHT SoC. This PWM2 controller gets hidden by the firmware, add it to the always_present_ids table so that we can use the PWM controller to control the backlighting of the buttons.
--- drivers/acpi/x86/utils.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/acpi/x86/utils.c +5 -0
@@ -58,6 +58,11 @@ static const struct always_present_id always_present_ids[] = { ENTRY("80862289", "2", X86_MATCH(ATOM_AIRMONT), { DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X9"), }), + /* The Xiaomi Mi Pad 2 uses PWM2 for touchkeys backlight control */ + ENTRY("80862289", "2", X86_MATCH(ATOM_AIRMONT), { + DMI_MATCH(DMI_SYS_VENDOR, "Xiaomi Inc"), + DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"), + }), /* * The INT0002 device is necessary to clear wakeup interrupt sources * on Cherry Trail devices, without it we get nobody cared IRQ msgs.
Signature · 1 line
2.31.1