summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/solomon/ssd130x-spi.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2023-12-29 14:20:21 +0300
committerJavier Martinez Canillas <javierm@redhat.com>2024-01-01 15:03:05 +0300
commitb4299c936d8fd62b75621cad8dbf8aa9178e7c0e (patch)
treeacd5cfb6f69f824008644d35bd83e96378059bdc /drivers/gpu/drm/solomon/ssd130x-spi.c
parente06b7373cfb96b73d05712fbd15b6d6a78ce9b9d (diff)
downloadlinux-b4299c936d8fd62b75621cad8dbf8aa9178e7c0e.tar.xz
drm/ssd130x: Add support for the SSD133x OLED controller family
The Solomon SSD133x controllers (such as the SSD1331) are used by RGB dot matrix OLED panels, add a modesetting pipeline to support the chip family. The SSD133x controllers support 256 (8-bit) and 65k (16-bit) color depths but only the 256-color mode (DRM_FORMAT_RGB332) is implemented for now. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231229112026.2797483-5-javierm@redhat.com
Diffstat (limited to 'drivers/gpu/drm/solomon/ssd130x-spi.c')
-rw-r--r--drivers/gpu/drm/solomon/ssd130x-spi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/solomon/ssd130x-spi.c b/drivers/gpu/drm/solomon/ssd130x-spi.c
index 84e035a7ab3f..84bfde31d172 100644
--- a/drivers/gpu/drm/solomon/ssd130x-spi.c
+++ b/drivers/gpu/drm/solomon/ssd130x-spi.c
@@ -142,6 +142,11 @@ static const struct of_device_id ssd130x_of_match[] = {
.compatible = "solomon,ssd1327",
.data = &ssd130x_variants[SSD1327_ID],
},
+ /* ssd133x family */
+ {
+ .compatible = "solomon,ssd1331",
+ .data = &ssd130x_variants[SSD1331_ID],
+ },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, ssd130x_of_match);
@@ -166,6 +171,8 @@ static const struct spi_device_id ssd130x_spi_table[] = {
{ "ssd1322", SSD1322_ID },
{ "ssd1325", SSD1325_ID },
{ "ssd1327", SSD1327_ID },
+ /* ssd133x family */
+ { "ssd1331", SSD1331_ID },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(spi, ssd130x_spi_table);