]> Gentwo Git Trees - linux/.git/commit
drm/st7571-i2c: add support for inverted pixel format
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Mon, 21 Jul 2025 10:43:34 +0000 (12:43 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Mon, 1 Sep 2025 13:26:44 +0000 (15:26 +0200)
commite61c35157d32b4b422f0a4cbc3c40d04d883a9c9
tree99d5b1e874e287f4282a3cf7c1dc2950b3cd4dee
parentc68f78ae1d86a5eb9632b72f7b4f15912bff5b0f
drm/st7571-i2c: add support for inverted pixel format

Depending on which display that is connected to the controller, an
"1" means either a black or a white pixel.

The supported formats (R1/R2/XRGB8888) expects the pixels
to map against (4bit):
    00 => Black
    01 => Dark Gray
    10 => Light Gray
    11 => White

If this is not what the display map against, make it possible to invert
the pixels.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Link: https://lore.kernel.org/r/20250721-st7571-format-v2-4-159f4134098c@gmail.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
drivers/gpu/drm/sitronix/st7571-i2c.c