[RFC PATCH 0/2] iio: st-accel: Add support for Silan clones

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

 



This small series adds support for the Silan SC7A20 and SC7A30E
accelerometers that seem to be clones or at least based on the
LIS2DH from ST.

These chips seem to be widely used in car dash recorders and the
midrived08 dash recorder that I'm trying to mainline support for
has a SC7A20.

This is RFC because I'm not sure if adding clone chips into this
driver is going to cause anyone trouble and I'm thinking there has
to be a better way of supporting both of the chips that are basically
the same but have different WAI register values than copy/pasting the
block and changing the WAI value.

Daniel Palmer (2):
  dt-bindings: vendor-prefixes: Add vendor prefix for Silan
  iio: st-accel: Add support for Silan SC7A20 and SC7A30E

 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 drivers/iio/accel/st_accel.h                  |   4 +
 drivers/iio/accel/st_accel_core.c             | 159 +++++++++++++++++-
 drivers/iio/accel/st_accel_i2c.c              |  10 ++
 4 files changed, 174 insertions(+), 1 deletion(-)

-- 
2.27.0




[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