From: Jonathan Cameron <jic23@kernel.org>
To: Matti Vaittinen <mazziesaccount@gmail.com>
Cc: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Dmitry Rokosov <DDRokosov@sberdevices.ru>,
Nikita Yushchenko <nikita.yoush@cogentembedded.com>,
Cosmin Tanislav <demonsingur@gmail.com>,
Jagath Jog J <jagathjog1996@gmail.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5 2/3] iio: accel: Support Kionix/ROHM KX022A accelerometer
Date: Sat, 29 Oct 2022 15:18:46 +0100 [thread overview]
Message-ID: <20221029151846.399547a7@jic23-huawei> (raw)
In-Reply-To: <758b00d6aea0a6431a5a3a78d557d449c113b21e.1666614295.git.mazziesaccount@gmail.com>
On Mon, 24 Oct 2022 15:40:29 +0300
Matti Vaittinen <mazziesaccount@gmail.com> wrote:
> KX022A is a 3-axis accelerometer from ROHM/Kionix. The sensor features
> include variable ODRs, I2C and SPI control, FIFO/LIFO with watermark IRQ,
> tap/motion detection, wake-up & back-to-sleep events, four acceleration
> ranges (2, 4, 8 and 16g), and probably some other cool features.
>
> Add support for the basic accelerometer features such as getting the
> acceleration data via IIO. (raw reads, triggered buffer [data-ready] or
> using the WMI IRQ).
>
> Important things to be added include the double-tap, motion
> detection and wake-up as well as the runtime power management.
>
> Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
>
...
> ---
> drivers/iio/accel/Kconfig | 21 +
> drivers/iio/accel/Makefile | 3 +
> drivers/iio/accel/kionix-kx022a-i2c.c | 51 ++
> drivers/iio/accel/kionix-kx022a-spi.c | 58 ++
> drivers/iio/accel/kionix-kx022a.c | 1142 +++++++++++++++++++++++++
> drivers/iio/accel/kionix-kx022a.h | 82 ++
> 6 files changed, 1357 insertions(+)
> create mode 100644 drivers/iio/accel/kionix-kx022a-i2c.c
> create mode 100644 drivers/iio/accel/kionix-kx022a-spi.c
> create mode 100644 drivers/iio/accel/kionix-kx022a.c
> create mode 100644 drivers/iio/accel/kionix-kx022a.h
>
> diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig
> index ffac66db7ac9..b7fd054819d2 100644
> --- a/drivers/iio/accel/Kconfig
> +++ b/drivers/iio/accel/Kconfig
> @@ -409,6 +409,27 @@ config IIO_ST_ACCEL_SPI_3AXIS
> To compile this driver as a module, choose M here. The module
> will be called st_accel_spi.
>
> +config IIO_KX022A
> + tristate
> +
> +config IIO_KX022A_SPI
> + tristate "Kionix KX022A tri-axis digital accelerometer"
Entry should mention SPI / I2C or we have two menu options that are
identical. I'll fix that if nothing else comes up.
> + depends on SPI
> + select IIO_KX022A
> + select REGMAP_SPI
> + help
> + Enable support for the Kionix KX022A digital tri-axis
> + accelerometer connected to I2C interface.
next prev parent reply other threads:[~2022-10-29 14:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-24 12:37 [PATCH v5 0/3] iio: Support ROHM/Kionix kx022a Matti Vaittinen
2022-10-24 12:40 ` [PATCH v5 1/3] dt-bindings: iio: Add KX022A accelerometer Matti Vaittinen
2022-10-24 12:40 ` [PATCH v5 2/3] iio: accel: Support Kionix/ROHM " Matti Vaittinen
2022-10-24 12:54 ` Andy Shevchenko
2022-10-24 14:14 ` Matti Vaittinen
2022-10-29 14:18 ` Jonathan Cameron [this message]
2023-10-17 20:07 ` Jagath Jog J
2023-10-18 19:34 ` Jonathan Cameron
2023-10-19 5:53 ` Matti Vaittinen
2023-10-19 11:12 ` Jonathan Cameron
2022-10-24 12:40 ` [PATCH v5 3/3] MAINTAINERS: Add KX022A maintainer entry Matti Vaittinen
2022-10-29 14:20 ` Jonathan Cameron
2022-10-31 5:40 ` Vaittinen, Matti
2022-10-29 14:23 ` [PATCH v5 0/3] iio: Support ROHM/Kionix kx022a Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221029151846.399547a7@jic23-huawei \
--to=jic23@kernel.org \
--cc=DDRokosov@sberdevices.ru \
--cc=andriy.shevchenko@linux.intel.com \
--cc=demonsingur@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=jagathjog1996@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matti.vaittinen@fi.rohmeurope.com \
--cc=mazziesaccount@gmail.com \
--cc=nikita.yoush@cogentembedded.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox