]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
spi: spidev: Add an entry for elgin,jg10309-01
authorFabio Estevam <festevam@gmail.com>
Wed, 28 Aug 2024 18:00:56 +0000 (15:00 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:10:39 +0000 (15:10 +0200)
[ Upstream commit 5f3eee1eef5d0edd23d8ac0974f56283649a1512 ]

The rv1108-elgin-r1 board has an LCD controlled via SPI in userspace.
The marking on the LCD is JG10309-01.

Add the "elgin,jg10309-01" compatible string.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20240828180057.3167190-2-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spidev.c

index 0b97e5b97a01861a1ebc6f4defd24b76a49c86e5..8570cd35b7e50cdb7071329dc310910e1613713d 100644 (file)
@@ -712,6 +712,7 @@ static int spidev_of_check(struct device *dev)
 static const struct of_device_id spidev_dt_ids[] = {
        { .compatible = "cisco,spi-petra", .data = &spidev_of_check },
        { .compatible = "dh,dhcom-board", .data = &spidev_of_check },
+       { .compatible = "elgin,jg10309-01", .data = &spidev_of_check },
        { .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check },
        { .compatible = "lwn,bk4", .data = &spidev_of_check },
        { .compatible = "menlo,m53cpld", .data = &spidev_of_check },