]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
spi: spidev: Add an entry for the ABB spi sensors
authorHeiko Schocher <hs@denx.de>
Sat, 19 Jul 2025 06:33:53 +0000 (08:33 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 21 Jul 2025 12:47:05 +0000 (13:47 +0100)
This sensors are currently controlled from userspace, ideally
we will add full drivers in the future.

Signed-off-by: Heiko Schocher <hs@denx.de>
Link: https://patch.msgid.link/20250719063355.73111-3-hs@denx.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spidev.c

index 6108959c28d9c7505be63583e8206519275663ba..5300c942a2a44dc9fe039d7059c136e93ac792b1 100644 (file)
@@ -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 },