spi: spidev: Add an entry for elgin,jg10309-01
authorFabio Estevam <festevam@gmail.com>
Thu, 29 Aug 2024 11:31:57 +0000 (08:31 -0300)
committerMark Brown <broonie@kernel.org>
Thu, 29 Aug 2024 12:02:06 +0000 (13:02 +0100)
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/20240829113158.3324928-2-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spidev.c

index 05e6d007f9a7f617c52c20fbc5f7dfa16d9838a4..1927175c8095b0b3c488f056ae55aad42f3b62f8 100644 (file)
@@ -730,6 +730,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 },