drm/panel: ilitek-ili9881c: Explicitly set address mode, allow 180° rotation
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 26 Jun 2024 14:40:38 +0000 (16:40 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 9 Oct 2024 07:48:45 +0000 (09:48 +0200)
commitb64e7d59ba75b1b080a65da20ffe0bae532854b5
tree26cde0640289e86c4236a92a474408985e0a0fdc
parent15bda06bc93fca828e5f11ca6b773fed19e45b8e
drm/panel: ilitek-ili9881c: Explicitly set address mode, allow 180° rotation

We can use horizontal and vertical flipping via the MIPI DCS address
mode to rotate the display by 180° using the device tree "rotation"
property. Since the tl050hdv35 panel has been defined as rotated,
we have to invert the bits there.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240626-drm-panel-ili9881c-rotation-v1-1-e0ff54173e32@pengutronix.de
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240626-drm-panel-ili9881c-rotation-v1-1-e0ff54173e32@pengutronix.de
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c