From: Hans de Goede <hdegoede@redhat.com>
To: "Rafael J . Wysocki" <rjw@rjwysocki.net>,
Adrian Hunter <adrian.hunter@intel.com>,
Ulf Hansson <ulf.hansson@linaro.org>
Cc: Hans de Goede <hdegoede@redhat.com>, Len Brown <lenb@kernel.org>,
linux-acpi@vger.kernel.org, linux-mmc@vger.kernel.org,
"Rafael J . Wysocki" <rafael.j.wysocki@intel.com>
Subject: [PATCH v2 5/7] ACPI / x86: Add PWM2 on the Xiaomi Mi Pad 2 to the always_present list
Date: Mon, 22 Nov 2021 18:05:34 +0100 [thread overview]
Message-ID: <20211122170536.7725-6-hdegoede@redhat.com> (raw)
In-Reply-To: <20211122170536.7725-1-hdegoede@redhat.com>
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.
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Changes in v2:
- Rebase on top of other patches in this series
- Add to this series since it now relies on other patches from this series
---
drivers/acpi/x86/utils.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/acpi/x86/utils.c b/drivers/acpi/x86/utils.c
index b3fb428461c6..a2ae1ac41319 100644
--- a/drivers/acpi/x86/utils.c
+++ b/drivers/acpi/x86/utils.c
@@ -71,6 +71,12 @@ static const struct override_status_id override_status_ids[] = {
PRESENT_ENTRY_HID("80860F09", "1", ATOM_SILVERMONT, {}),
PRESENT_ENTRY_HID("80862288", "1", ATOM_AIRMONT, {}),
+ /* The Xiaomi Mi Pad 2 uses PWM2 for touchkeys backlight control */
+ PRESENT_ENTRY_HID("80862289", "2", 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.
--
2.33.1
next prev parent reply other threads:[~2021-11-22 17:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-22 17:05 [PATCH v2 0/7] ACPI: acpi_device_override_status() changes Hans de Goede
2021-11-22 17:05 ` [PATCH v2 1/7] ACPI / x86: Drop PWM2 device on Lenovo Yoga Book from always present table Hans de Goede
2021-11-22 17:05 ` [PATCH v2 2/7] ACPI: Change acpi_device_always_present() into acpi_device_override_status() Hans de Goede
2021-11-22 17:05 ` [PATCH v2 3/7] ACPI / x86: Allow specifying acpi_device_override_status() quirks by path Hans de Goede
2021-11-22 17:05 ` [PATCH v2 4/7] ACPI / x86: Add not-present quirk for the PCI0.SDHB.BRC1 device on the GPD win Hans de Goede
2021-11-22 17:05 ` Hans de Goede [this message]
2021-11-22 17:05 ` [PATCH v2 6/7] mmc: sdhci-acpi: Remove special handling for GPD win/pocket devices Hans de Goede
2021-11-24 15:16 ` Adrian Hunter
2021-11-22 17:05 ` [PATCH v2 7/7] mmc: sdhci-acpi: Use the new soc_intel_is_byt() helper Hans de Goede
2021-11-24 15:16 ` Adrian Hunter
2021-11-23 11:13 ` [PATCH v2 0/7] ACPI: acpi_device_override_status() changes Ulf Hansson
2021-11-23 14:33 ` Hans de Goede
2021-11-25 9:51 ` Adrian Hunter
2021-12-01 19:15 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211122170536.7725-6-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--cc=adrian.hunter@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=rjw@rjwysocki.net \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox