From: Heiko Schocher <hs@denx.de>
To: linux-spi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Heiko Schocher <hs@denx.de>,
Mark Brown <broonie@kernel.org>
Subject: [PATCH v1 2/3] spi: spidev: Add an entry for the ABB spi sensors
Date: Sat, 19 Jul 2025 08:33:53 +0200 [thread overview]
Message-ID: <20250719063355.73111-3-hs@denx.de> (raw)
In-Reply-To: <20250719063355.73111-1-hs@denx.de>
This sensors are currently controlled from userspace, ideally
we will add full drivers in the future.
Signed-off-by: Heiko Schocher <hs@denx.de>
---
drivers/spi/spidev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index 6108959c28d9..5300c942a2a4 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -703,6 +703,7 @@ static const struct class spidev_class = {
* spidev_dt_ids array below. Both arrays are kept in the same ordering.
*/
static const struct spi_device_id spidev_spi_ids[] = {
+ { .name = /* abb */ "spi-sensor" },
{ .name = /* cisco */ "spi-petra" },
{ .name = /* dh */ "dhcom-board" },
{ .name = /* elgin */ "jg10309-01" },
@@ -735,6 +736,7 @@ static int spidev_of_check(struct device *dev)
}
static const struct of_device_id spidev_dt_ids[] = {
+ { .compatible = "abb,spi-sensor", .data = &spidev_of_check },
{ .compatible = "cisco,spi-petra", .data = &spidev_of_check },
{ .compatible = "dh,dhcom-board", .data = &spidev_of_check },
{ .compatible = "elgin,jg10309-01", .data = &spidev_of_check },
--
2.20.1
next prev parent reply other threads:[~2025-07-19 6:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-19 6:33 [PATCH v1 0/3] spidev: introduce trivial abb sensor device Heiko Schocher
2025-07-19 6:33 ` [PATCH v1 1/3] dt-bindings: trivial-devices: Document ABB sensors Heiko Schocher
2025-07-20 2:11 ` Rob Herring
2025-07-20 3:25 ` Guenter Roeck
2025-07-21 14:22 ` Heiko Schocher
2025-07-19 6:33 ` Heiko Schocher [this message]
2025-07-19 6:33 ` [PATCH v1 3/3] arm64: dts: imx8mp: add ABB spi sensors Heiko Schocher
2025-07-21 15:56 ` (subset) [PATCH v1 0/3] spidev: introduce trivial abb sensor device Mark Brown
2025-07-21 16:24 ` Krzysztof Kozlowski
2025-07-21 17:34 ` Mark Brown
2025-07-22 4:05 ` Heiko Schocher
2025-07-22 4:58 ` Guenter Roeck
2025-07-22 10:20 ` Jonathan Cameron
2025-08-01 4:45 ` Heiko Schocher
2025-07-22 11:07 ` Krzysztof Kozlowski
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=20250719063355.73111-3-hs@denx.de \
--to=hs@denx.de \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.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;
as well as URLs for NNTP newsgroup(s).