Skip to content

Commit b72cd8e

Browse files
jwrdegoederafaeljw
authored andcommitted
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. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 57d2dbf commit b72cd8e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/acpi/x86/utils.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ static const struct override_status_id override_status_ids[] = {
7171
PRESENT_ENTRY_HID("80860F09", "1", ATOM_SILVERMONT, {}),
7272
PRESENT_ENTRY_HID("80862288", "1", ATOM_AIRMONT, {}),
7373

74+
/* The Xiaomi Mi Pad 2 uses PWM2 for touchkeys backlight control */
75+
PRESENT_ENTRY_HID("80862289", "2", ATOM_AIRMONT, {
76+
DMI_MATCH(DMI_SYS_VENDOR, "Xiaomi Inc"),
77+
DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"),
78+
}),
79+
7480
/*
7581
* The INT0002 device is necessary to clear wakeup interrupt sources
7682
* on Cherry Trail devices, without it we get nobody cared IRQ msgs.

0 commit comments

Comments
 (0)