From ea6afb55c1c5e30c160b6ee17fe2a4d0003f9ef3 Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Tue, 21 Apr 2026 13:35:43 +0200 Subject: [PATCH] drm/panel: novatek-nt37705: Configure for 10-bit Update the init sequence and configuration to initialize the panel for 10-bit DSC cmd-mode. Signed-off-by: Luca Weiss --- drivers/gpu/drm/panel/panel-novatek-nt37705.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt37705.c b/drivers/gpu/drm/panel/panel-novatek-nt37705.c index 27bd8072ccd1..3e5a107cced7 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt37705.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt37705.c @@ -162,7 +162,7 @@ static int nt37705_on(struct nt37705_panel *ctx) mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x03, 0x01); mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x90, 0x03, 0x03); mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x91, - 0x89, 0x28, 0x00, 0x0c, 0xd2, 0x00, 0x02, + 0xab, 0x28, 0x00, 0x0c, 0xd2, 0x00, 0x02, 0x2f, 0x01, 0x18, 0x00, 0x07, 0x09, 0x75, 0x08, 0x34, 0x10, 0xf0); mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x2f, 0x02); @@ -340,7 +340,7 @@ static int nt37705_probe(struct mipi_dsi_device *dsi) mipi_dsi_set_drvdata(dsi, ctx); dsi->lanes = 4; - dsi->format = MIPI_DSI_FMT_RGB888; + dsi->format = MIPI_DSI_FMT_RGB101010; dsi->mode_flags = MIPI_DSI_MODE_NO_EOT_PACKET | MIPI_DSI_CLOCK_NON_CONTINUOUS; @@ -368,7 +368,7 @@ static int nt37705_probe(struct mipi_dsi_device *dsi) */ WARN_ON(1116 % ctx->dsc.slice_width); ctx->dsc.slice_count = 1116 / ctx->dsc.slice_width; - ctx->dsc.bits_per_component = 8; + ctx->dsc.bits_per_component = 10; ctx->dsc.bits_per_pixel = 8 << 4; /* 4 fractional bits */ ctx->dsc.block_pred_enable = true;