lkml.org 
[lkml]   [2021]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    SubjectRe: BMI160 accelerometer on AyaNeo tablet
    On Sat, Oct 16, 2021 at 7:19 PM Maxim Levitsky <maximlevitsky@gmail.com> 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@redhat.com>
    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@redhat.com>

    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);
    \
     
     \ /
      Last update: 2021-10-16 18:28    [W:3.086 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site