platform/x86: x86-android-tablets: Add Bluetooth support for Vexia EDU ATLA 10
authorHans de Goede <hdegoede@redhat.com>
Wed, 4 Dec 2024 20:42:19 +0000 (21:42 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 10 Dec 2024 13:17:55 +0000 (15:17 +0200)
The UART used for the Bluetooth HCI on the Vexia EDU ATLA 10 is enumerated
as a PCI device, but the ODBA7823 ACPI fwnode for the HCI expects it to
use the more standard ACPI enumeration mode.

So Bluetooth does not work out of the box. Add x86_serdev_info to make
the x86-android-tablets manually associate the fwnode with the UART.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241204204227.95757-9-hdegoede@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/x86-android-tablets/other.c

index 251c0ea1ab79805282ce5e055b0e7b04065f849f..1d93d9edb23f48452b281f91df3d8c81d693b5e6 100644 (file)
@@ -715,6 +715,14 @@ static const struct x86_i2c_client_info vexia_edu_atla10_i2c_clients[] __initcon
        }
 };
 
+static const struct x86_serdev_info vexia_edu_atla10_serdevs[] __initconst = {
+       {
+               .ctrl.pci.devfn = PCI_DEVFN(0x1e, 3),
+               .ctrl_devname = "serial0",
+               .serdev_hid = "OBDA8723",
+       },
+};
+
 static struct gpiod_lookup_table vexia_edu_atla10_ft5416_gpios = {
        .dev_id = "i2c-FTSC1000",
        .table = {
@@ -755,6 +763,8 @@ static int __init vexia_edu_atla10_init(struct device *dev)
 const struct x86_dev_info vexia_edu_atla10_info __initconst = {
        .i2c_client_info = vexia_edu_atla10_i2c_clients,
        .i2c_client_count = ARRAY_SIZE(vexia_edu_atla10_i2c_clients),
+       .serdev_info = vexia_edu_atla10_serdevs,
+       .serdev_count = ARRAY_SIZE(vexia_edu_atla10_serdevs),
        .gpiod_lookup_tables = vexia_edu_atla10_gpios,
        .init = vexia_edu_atla10_init,
        .use_pci = true,