Skip to contentSkip to conversation

ACPI: x86: Force enabling of PWM2 on the Yogabook YB1-X90

PATCH Applied Yauhen Kharuzhy 2 participants 2 messages Feb 11 – Feb 12 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: x86: Force enabling of PWM2 on the Yogabook YB1-X90

The PWM2 on YB1-X90 tablets is used for keyboard backlight control but it is disabled in the ACPI DSDT table. Add it to the override_status_ids list to allow keyboard function control driver (drivers/platform/x86/lenovo/yogabook.c) to use it.

---
 drivers/acpi/x86/utils.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/acpi/x86/utils.c +12 -0
index 4ee30c2897a2..418951639f51 100644
@@ -81,6 +81,18 @@ static const struct override_status_id override_status_ids[] = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"),
 	      }),
 
+	/*
+	 * Lenovo Yoga Book uses PWM2 for touch keyboard backlight control.
+	 * It needs to be enabled only for the Android device version (YB1-X90*
+	 * aka YETI-11); the Windows version (YB1-X91*) uses ACPI control
+	 * methods.
+	 */
+	PRESENT_ENTRY_HID("80862289", "2", INTEL_ATOM_AIRMONT, {
+		DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
+		DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "CHERRYVIEW D1 PLATFORM"),
+		DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "YETI-11"),
+	      }),
+
 	/*
 	 * 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.51.0
maintainer Applied
#1 lore raw
Quoted 25 lines · Yauhen Kharuzhy

The PWM2 on YB1-X90 tablets is used for keyboard backlight control but it is disabled in the ACPI DSDT table. Add it to the override_status_ids list to allow keyboard function control driver (drivers/platform/x86/lenovo/yogabook.c) to use it.

---
 drivers/acpi/x86/utils.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/acpi/x86/utils.c +6 -0
index 4ee30c2897a2..418951639f51 100644
@@ -81,6 +81,18 @@ static const struct override_status_id override_status_ids[] = {
                DMI_MATCH(DMI_PRODUCT_NAME, "Mipad2"),
              }),
 
+       /*
+        * Lenovo Yoga Book uses PWM2 for touch keyboard backlight control.
+        * It needs to be enabled only for the Android device version (YB1-X90*
+        * aka YETI-11); the Windows version (YB1-X91*) uses ACPI control
+        * methods.
+        */

drivers/acpi/x86/utils.c static const struct override_status_id override_status_ids[] = {

Quoted 10 lines
drivers/acpi/x86/utils.c +6 -1
+       PRESENT_ENTRY_HID("80862289", "2", INTEL_ATOM_AIRMONT, {
+               DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Intel Corporation"),
+               DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "CHERRYVIEW D1 PLATFORM"),
+               DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "YETI-11"),
+             }),
+
        /*
         * The INT0002 device is necessary to clear wakeup interrupt sources
         * on Cherry Trail devices, without it we get nobody cared IRQ msgs.
--

Applied as 7.0-rc material, thanks!