]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: simple: Fix Innolux G070Y2-L01 BPP settings
authorMarek Vasut <marex@denx.de>
Sun, 20 Feb 2022 04:07:18 +0000 (05:07 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 16 Mar 2022 15:35:05 +0000 (16:35 +0100)
commit690955c63d2ed5af8b9b4bc0cfe5ec03e8bfc917
tree22e691731209edff62d6540b35fe0ecfef4f493f
parent79f2ff6e6cf3c223ea40054f613ef28b4d8f143e
drm/panel: simple: Fix Innolux G070Y2-L01 BPP settings

The Innolux G070Y2-L01 supports two modes of operation:
1) FRC=Low/NC ... MEDIA_BUS_FMT_RGB666_1X7X3_SPWG ... BPP=6
2) FRC=High ..... MEDIA_BUS_FMT_RGB888_1X7X4_SPWG ... BPP=8

Currently the panel description mixes both, BPP from 1) and bus
format from 2), which triggers a warning at panel-simple.c:615.

Pick the later, set bpp=8, fix the warning.

Fixes: 097e1162f4b0b ("drm/panel: simple: Add support for Innolux G070Y2-L01")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Christoph Fritz <chf.fritz@googlemail.com>
Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
Cc: Maxime Ripard <maxime@cerno.tech>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220220040718.532866-1-marex@denx.de
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/panel/panel-simple.c