|
|
Log in / Subscribe / Register

iio: Silan SC7A20 accelerometer support

From:  Samuel Holland <samuel-AT-sholland.org>
To:  Jonathan Cameron <jic23-AT-kernel.org>, Lars-Peter Clausen <lars-AT-metafoo.de>, Denis Ciocca <denis.ciocca-AT-st.com>, Linus Walleij <linus.walleij-AT-linaro.org>, Rob Herring <robh+dt-AT-kernel.org>, devicetree-AT-vger.kernel.org
Subject:  [PATCH v2 0/3] iio: Silan SC7A20 accelerometer support
Date:  Wed, 02 Feb 2022 17:50:45 -0600
Message-ID:  <20220202235049.8051-1-samuel@sholland.org>
Cc:  linux-iio-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, Samuel Holland <samuel-AT-sholland.org>
Archive-link:  Article

This chip is register-compatible with an ST part, so it works without
any issues when added to the existing driver.

Previously I called it a clone, but it's not really a clone, because
it's not a drop-in replacement for the other chips. The software
interface matches the ST parts, but the pinout does not. Instead, the
pinout matches the Kionix KX122 and KX132.

Changes in v2:
 - Move the new compatible to its own section
 - Add a comment about the WAI value
 - Update commit messages

Samuel Holland (3):
  dt-bindings: vendor-prefixes: Add silan vendor prefix
  dt-bindings: iio: st: Add Silan SC7A20 accelerometer
  iio: accel: st_accel: Add support for Silan SC7A20

 .../bindings/iio/st,st-sensors.yaml           |  3 +
 .../devicetree/bindings/vendor-prefixes.yaml  |  2 +
 drivers/iio/accel/st_accel.h                  |  2 +
 drivers/iio/accel/st_accel_core.c             | 83 +++++++++++++++++++
 drivers/iio/accel/st_accel_i2c.c              |  5 ++
 5 files changed, 95 insertions(+)

-- 
2.33.1



Copyright © 2022, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds