From: Joshua Crofts <crofts@kernel.org>
To: Jakkapong Saksrisuwan <me@jakkapong.dev>, jic23@kernel.org
Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org,
rayyan@ansari.sh, linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: accel: kxcjk-1013: Add support for KX022-1020
Date: Thu, 3 Dec 2026 15:50:08 +0100 [thread overview]
Message-ID: <be715ccf-fa87-4124-a6b7-0e44cc2c6464@kernel.org> (raw)
In-Reply-To: <20261202070029.94349-1-me@jakkapong.dev>
On 02-Dec-26 8:00, Jakkapong Saksrisuwan wrote:
> The KX022-1020 is documented in the binding and is used by the Microsoft
> msm8226 devices (qcom-msm8226-microsoft-common.dtsi), but the driver has
> no entry for it, so the accelerometer is never probed on those boards.
>
> Support was added once before in
> commit d5cbe1502043 ("iio: accel: kxcjk-1013: Add support for KX022-1020")
> and reverted in
> commit b01b559682f3 ("iio: accel: kxcjk-1013: Revert "Add support for KX022-1020"")
> because adding the chip to enum kx_chipset broke the ODR start-up times
> of the KX023-1025. The driver now describes each chip with a
> struct kx_chipset_info, so that problem no longer exists.
>
> The Rev 12.0 datasheets of the KX022-1020 and the KX023-1025 have the
> same register map, the same CNTL1, ODCNTL (ODR encoding), INC4, WUFC,
> INT_REL and CNTL3 descriptions, and the same start-up time table. They
> differ in WHO_AM_I (0x14 vs 0x15), which the driver does not check.
> So let the KX022-1020 use kx0231025_info, which keeps the INT1 routing
> in kxcjk1013_chip_init() working.
>
> Link: https://fscdn.rohm.com/kionix/en/datasheet/KX022-1020%20Specifications%20Rev%2012.0.pdf
> Link: https://fscdn.rohm.com/kionix/en/datasheet/KX023-1025%20Specifications%20Rev%2012.0.pdf
I'd make these Datasheet tags, but perhaps this could be amended whilst applying.
Reviewed-by: Joshua Crofts <crofts@kernel.org>
--
Kind regards,
Joshua Crofts
next prev parent reply other threads:[~2026-12-03 14:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 7:00 [PATCH] iio: accel: kxcjk-1013: Add support for KX022-1020 Jakkapong Saksrisuwan
2026-12-03 14:50 ` Joshua Crofts [this message]
2026-12-03 17:28 ` Andy Shevchenko
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=be715ccf-fa87-4124-a6b7-0e44cc2c6464@kernel.org \
--to=crofts@kernel.org \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=me@jakkapong.dev \
--cc=nuno.sa@analog.com \
--cc=rayyan@ansari.sh \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.