]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
iio/gyro/bmg160: Add support for BMI088 chip
authorMike Looijmans <mike.looijmans@topic.nl>
Mon, 16 Mar 2020 06:34:03 +0000 (07:34 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:13 +0000 (16:56 +0100)
The BMI088 is pin-compatible with the BMI055, and provides
both gyro and accel functions. The gyro part is similar to
the BMI055 and this adds the chip to the list of supported
devices for the gyro part.

The accel part of the chip is not compatible with anything
existing already.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Documentation/devicetree/bindings/iio/gyroscope/bmg160.txt
drivers/iio/gyro/Kconfig
drivers/iio/gyro/bmg160_i2c.c
drivers/iio/gyro/bmg160_spi.c

index 78e18a1e9c1da130cccd32361ef40f3816473c3d..bb43d1ad9c9f8542c3aea00eda85dd65f695bd5c 100644 (file)
@@ -2,7 +2,7 @@
 
 Required properties:
 
-  - compatible : should be "bosch,bmg160" or "bosch,bmi055_gyro"
+  - compatible : should be "bosch,bmg160", "bosch,bmi055_gyro" or "bosch,bmi088_gyro"
   - reg : the I2C address of the sensor (0x69)
 
 Optional properties:
index 7eaf77707b0beed0d079ad100101b48bd770fb68..6daeddf37f6073142dbb60b13705143f8ed7c2ac 100644 (file)
@@ -61,7 +61,7 @@ config BMG160
        help
          Say yes here to build support for BOSCH BMG160 Tri-axis Gyro Sensor
          driver connected via I2C or SPI. This driver also supports BMI055
-         gyroscope.
+         and BMI088 gyroscope.
 
          This driver can also be built as a module.  If so, the module
          will be called bmg160_i2c or bmg160_spi.
index 4fc9c6a3321ff99afc66d327a96ad8f9794e9366..de15c6fc33819264bc27fd82304f26503c6f7e01 100644 (file)
@@ -42,6 +42,7 @@ static int bmg160_i2c_remove(struct i2c_client *client)
 static const struct acpi_device_id bmg160_acpi_match[] = {
        {"BMG0160", 0},
        {"BMI055B", 0},
+       {"BMI088B", 0},
        {},
 };
 
@@ -50,6 +51,7 @@ MODULE_DEVICE_TABLE(acpi, bmg160_acpi_match);
 static const struct i2c_device_id bmg160_i2c_id[] = {
        {"bmg160", 0},
        {"bmi055_gyro", 0},
+       {"bmi088_gyro", 0},
        {}
 };
 
index 182a59c42507d1799fa853be00639f998e4331a6..03e80bb2601abd6b5cacf317a6d2b935cd55546d 100644 (file)
@@ -37,6 +37,7 @@ static int bmg160_spi_remove(struct spi_device *spi)
 static const struct spi_device_id bmg160_spi_id[] = {
        {"bmg160", 0},
        {"bmi055_gyro", 0},
+       {"bmi088_gyro", 0},
        {}
 };