platform/x86: x86-android-tablets: Add Lenovo Yoga Tab 3 (YT3-X90F) charger + fuel...
authorHans de Goede <hdegoede@redhat.com>
Sun, 27 Nov 2022 18:24:58 +0000 (19:24 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 8 Dec 2022 15:10:47 +0000 (16:10 +0100)
commitb6c14ff1deaafd30036ec36d5205acd5a578b1cd
treea991354318820a67fa3c781a04f09a123d250737
parent902ce18ab1f4444ff9d49865bea35a07adcc03fd
platform/x86: x86-android-tablets: Add Lenovo Yoga Tab 3 (YT3-X90F) charger + fuel-gauge data

The Lenovo Yoga Tab 3 (YT3-X90F) is an Intel Cherry Trail based tablet
which ships with Android as Factory OS. Its DSDT contains a bunch of I2C
devices which are not actually there, causing various resource conflicts.
Use acpi_quirk_skip_i2c_client_enumeration() to not enumerate these.

The YT3-X90F has quite a bit of exotic hardware, this adds initial
support by manually instantiating the i2c-clients for the 2 charger +
2 fuel-gauge chips used for the 2 batteries.

Support for other parts of the hw will be added by follow-up patches.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221127182458.104528-1-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets.c