Message ID | 20240504-bmi120-v2-0-3b3ce6e1c3c6@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | Add support for bosch bmi120 | expand |
On Sat, May 4, 2024 at 8:00 AM Barnabás Czémán <trabarni@gmail.com> wrote: > > Add support for bosch bmi120. > BMI120 is an energy-efficient version of BMI160. Despite having a different > CHIPID value, this variant seems to be fully compatible with BMI160. > It could be find in many phones like xiaomi-vince or xiaomi-tissot. > > Signed-off-by: Barnabás Czémán <trabarni@gmail.com> > --- > Changes in v2: > - Add bosch,bmi120 as a fallback compatible. > - Remove error path if chipid is not found. > - Link to v1: https://lore.kernel.org/r/20240504-bmi120-v1-0-478470a85058@gmail.com > > --- > Danila Tikhonov (2): > iio: imu: bmi160: add support for bmi120 > dt-bindings: iio: imu: bmi160: add bmi120 > Preferably, the DT bindings patch should go first in the series before the code that use it (makes it easier for reviewers to read it in right order).
Add support for bosch bmi120. BMI120 is an energy-efficient version of BMI160. Despite having a different CHIPID value, this variant seems to be fully compatible with BMI160. It could be find in many phones like xiaomi-vince or xiaomi-tissot. Signed-off-by: Barnabás Czémán <trabarni@gmail.com> --- Changes in v2: - Add bosch,bmi120 as a fallback compatible. - Remove error path if chipid is not found. - Link to v1: https://lore.kernel.org/r/20240504-bmi120-v1-0-478470a85058@gmail.com --- Danila Tikhonov (2): iio: imu: bmi160: add support for bmi120 dt-bindings: iio: imu: bmi160: add bmi120 .../devicetree/bindings/iio/imu/bosch,bmi160.yaml | 6 ++++- drivers/iio/imu/bmi160/bmi160_core.c | 26 +++++++++++++++++----- drivers/iio/imu/bmi160/bmi160_i2c.c | 3 +++ drivers/iio/imu/bmi160/bmi160_spi.c | 3 +++ 4 files changed, 31 insertions(+), 7 deletions(-) --- base-commit: 9221b2819b8a4196eecf5476d66201be60fbcf29 change-id: 20240504-bmi120-d3c88dcb3073 Best regards,