RE: bmc150_accel i2c-BMA250E:00: Invalid chip f8

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

 




> -----Original Message-----
> From: linux-iio-owner@xxxxxxxxxxxxxxx [mailto:linux-iio-owner@xxxxxxxxxxxxxxx] On Behalf Of Bastien Nocera
> Sent: 22 July, 2015 21:49
> To: linux-iio@xxxxxxxxxxxxxxx
> Subject: bmc150_accel i2c-BMA250E:00: Invalid chip f8
> 
> Hey,
> 
> Running kernel 4.0.8 on a WinBook TW100 tablet, I get the error message
> in the subject line when loading the bmc150_accel driver.
> 
> The 2 items in udev about that device:
> P: /devices/LNXSYSTM:00/LNXSYBUS:00/80860F41:04/BMA250E:00
> E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/80860F41:04/BMA250E:00
> E: MODALIAS=acpi:BMA250E:BMA250E:
> E: SUBSYSTEM=acpi
> 
> and:
> P: /devices/platform/80860F41:04/i2c-12/i2c-BMA250E:00
> E: DEVPATH=/devices/platform/80860F41:04/i2c-12/i2c-BMA250E:00
> E: MODALIAS=acpi:BMA250E:BMA250E:
> E: SUBSYSTEM=i2c
> 
> And the DSDT for the device:
> https://people.gnome.org/~hadess/Winbook%20TW100%20DSDT.dsl
> 
> Any ideas what I should try (apart from a more recent kernel, I'm onto
> that...)

Hi Bastien,

Seems to me that the ACPI table declares you have BMA250E chip, but
the hardware is actually BMA222E. Bosh accelerometer BMA250E has chip
ID 0xF9 [1], while BMA222E has chip ID 0xF8 [2].
These chips are very similar, except for the chip id and x/y/z resolution.

You could try forcing the driver to use bma222e for your ACPI ID and see
if the values you get for acceleration are OK. You need to do something
like this:

diff --git a/drivers/iio/accel/bmc150-accel.c b/drivers/iio/accel/bmc150-accel.c
index 47c6013..5cb413a 100644
--- a/drivers/iio/accel/bmc150-accel.c
+++ b/drivers/iio/accel/bmc150-accel.c
@@ -1839,7 +1839,7 @@ static const struct acpi_device_id bmc150_accel_acpi_match[] = {
        {"BMC150A",     bmc150},
        {"BMI055A",     bmi055},
        {"BMA0255",     bma255},
-       {"BMA250E",     bma250e},
+       {"BMA250E",     bma222e},
        {"BMA222E",     bma222e},
        {"BMA0280",     bma280},
        { },

In case it works you probably need to modify your ACPI table.

Thanks,
Irina

[1] https://ae-bst.resource.bosch.com/media/products/dokumente/bma250e/BST-BMA250E-DS004-05_published.pdf
[2] https://ae-bst.resource.bosch.com/media/products/dokumente/bma222e/BST-BMA222E-DS004-05_published.pdf


> 
> Cheers
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
��.n��������+%������w��{.n�����{��(��)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥




[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