Add support for the 1080x2400 Visionox VTDR6130 AMOLED DSI panel found on the Qualcomm SM8550 MTP board. By default the the panel is configured to work with DSI compressed streams, but can work in uncompressed video mode since 1080x2400 in RGB888 fits in the 4 DSI lanes bandwidth. While display compression is preferred for performance and power reasons, let's start with the uncompressed video mode support and add the DSC support later on. To: Thierry Reding <thierry.reding@xxxxxxxxx> To: Sam Ravnborg <sam@xxxxxxxxxxxx> To: David Airlie <airlied@xxxxxxxxx> To: Daniel Vetter <daniel@xxxxxxxx> To: Rob Herring <robh+dt@xxxxxxxxxx> To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@xxxxxxxxxx> Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx Cc: devicetree@xxxxxxxxxxxxxxx Cc: linux-arm-msm@xxxxxxxxxxxxxxx Cc: linux-kernel@xxxxxxxxxxxxxxx Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx> --- Changes in v2: - Patch 1: Added review tags - Patch 2: - Fixed includes block grouping - used mipi_dsi_dcs_write_seq() instead of custom macro - Used MIPI_DCS macros instead of hex valuex when possible - Dropped first DCS write which was enabling DSC, and so removed DSC disable - Fixed width/height - Dropped calling mipi_dsi_dcs_set_display_brightness() and direct DCS write to avoid double swap - Fixes MODULE_AUTHOR & MODULE_DESCRIPTION - Link to v1: https://lore.kernel.org/r/20230103-topic-sm8550-upstream-vtdr6130-panel-v1-0-9b746b858378@xxxxxxxxxx --- Neil Armstrong (2): dt-bindings: display: panel: document the Visionox VTDR6130 AMOLED DSI Panel bindings drm/panel: add visionox vtdr6130 DSI panel driver .../bindings/display/panel/visionox,vtdr6130.yaml | 53 +++ drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-visionox-vtdr6130.c | 358 +++++++++++++++++++++ 4 files changed, 420 insertions(+) --- base-commit: 1b929c02afd37871d5afb9d498426f83432e71c2 change-id: 20230103-topic-sm8550-upstream-vtdr6130-panel-f81dad976abd Best regards, -- Neil Armstrong <neil.armstrong@xxxxxxxxxx>