iio: accel: st_accel: Add support for Silan SC7A20
authorSamuel Holland <samuel@sholland.org>
Wed, 2 Feb 2022 23:50:48 +0000 (17:50 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 18 Feb 2022 11:35:49 +0000 (11:35 +0000)
commitc7a43b089826b17e46419d93c00c0d2f4b26735f
treec55137581eb4d5f809ba0b52395174eec92d8572
parentcb432e7dda793bd3e1821a3bacc23fe07630e80a
iio: accel: st_accel: Add support for Silan SC7A20

This chip appears to be register-compatible with the LIS2DH. The new
description is a copy of the LIS2DH's description with a different WAI
value.

Datasheet: http://linux-chenxing.org/silan/SC7A20-SilanMicroelectronics.pdf
Datasheet: http://www.siitek.com.cn/Upfiles/down/SC7A20说明书_0.92(智能穿戴).pdf
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220202235049.8051-4-samuel@sholland.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/st_accel.h
drivers/iio/accel/st_accel_core.c
drivers/iio/accel/st_accel_i2c.c