Re: BMI160 accelerometer on AyaNeo tablet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Oct 16, 2021 at 7:19 PM Maxim Levitsky <maximlevitsky@xxxxxxxxx> wrote:
>
> I recently bought this device, and it has this accelerometer/gyroscope.
>
> Unfortunately, the device is advertised in ACPI as 10EC5280, instead of BMI0160
>
> I attached a patch that does add this 10EC5280 to the list of ACPI ids of this driver, and the device seems to work fine, showing both acceleration and angular velocity in /sys IIO attributes with reasonable values.
>

( resend using plain text - reminds me to never use Gmail's web
interface, even on weekends .)

> Best regards,
>    Maxim Levitsky
commit 880bbf2e5ee2fa0e99798482664997a7db225f56
Author: Maxim Levitsky <mlevitsk@xxxxxxxxxx>
Date:   Sat Oct 2 20:54:00 2021 +0300

    BMI160: AYA NEA accelometer ID
    
    On AYA NEO, the accelerometer is BMI160 but it is exposed
    via ACPI as 10EC5280
    
    Signed-off-by: Maxim Levitsky <mlevitsk@xxxxxxxxxx>

diff --git a/drivers/iio/imu/bmi160/bmi160_i2c.c b/drivers/iio/imu/bmi160/bmi160_i2c.c
index 26398614eddfa..2b3e3e15e2e04 100644
--- a/drivers/iio/imu/bmi160/bmi160_i2c.c
+++ b/drivers/iio/imu/bmi160/bmi160_i2c.c
@@ -43,6 +43,7 @@ MODULE_DEVICE_TABLE(i2c, bmi160_i2c_id);
 
 static const struct acpi_device_id bmi160_acpi_match[] = {
 	{"BMI0160", 0},
+	{"10EC5280", 0}, /* AYA NEO tablet */
 	{ },
 };
 MODULE_DEVICE_TABLE(acpi, bmi160_acpi_match);

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux