From nobody Mon Apr 6 10:45:17 2026 Received: from mail-10630.protonmail.ch (mail-10630.protonmail.ch [79.135.106.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 449EE346A0B for ; Sat, 21 Mar 2026 07:53:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.135.106.30 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774079591; cv=none; b=Ce6+66spwKSyAyAn2i/g4VEzIMbbz47/dx915cLjQVwwctyedakly5RP0wLYoXxpCPHl5aDxtWtN1pLKC1aTr+bYukwEfHgyTn++g2qj5+Ew6f+hiIp8eJuOyJnhrJyv//DqbpgiGj1JN9QoUOCZAt11PvrEwT86yWkpFw/yG9Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774079591; c=relaxed/simple; bh=Mh1PNSDh4egjT99i3znVirqhMp1QvCuSXegWWStQiUI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gt4PKexbFpg2SF45WsxgXmf2w+4T5ZGM+7+7z/DvBfFp6AzIqVPemPUXIyIGaTxSQndEZgUzqNwx3aqdq0cvmHGGKLNsnKwARfLYcraMHYn3AVugJqoKp6x6W5Eh6qFYB4K9oEdae5BKokNzhJHJFPVrfC/I+SuWw5x7+YIqJOU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me; spf=pass smtp.mailfrom=pm.me; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b=i7rnNbQh; arc=none smtp.client-ip=79.135.106.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pm.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pm.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pm.me header.i=@pm.me header.b="i7rnNbQh" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1774079581; x=1774338781; bh=VIjFEoU5kuSs8on1xHPBMp4W/LcZNwtBH4t9BMnjpcM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=i7rnNbQhaPSKpF1d6rSWnhEXzbgrw/1jVTnJrwVzN3jy9f+6SqCdWm3jNcbNJOc+2 gm0DX4CRW2kPVdS7DnVmP4QcVibodGzYstXHgGrjH4Z5TnCy7jWkowmI8hhkPFpbBt Dzlx8lluTxgzhepENH6nfYVo2d6sT5B38YUyEb8964Q+/phBxFBpSJ3hEBprFOLb/o VD+L5bYRLT0RQZvYg780FIYCglhuGdh9B3tDRufMsMSZWuqY8JYsEtSf2T5JUWd48Y RwGBIjUFDsnT+Y+anr8bWOguuS3StbobyFKbW7SmhxoZz7bcT+c5rLY7wwJ2+9PnKm p9LfqeokhT0nA== Date: Sat, 21 Mar 2026 07:52:55 +0000 To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , Jeffrey Hugo , Neil Armstrong , Martin Blumenstingl From: Alexander Koskovich Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Alexander Koskovich , Konrad Dybcio , Dmitry Baryshkov Subject: [PATCH v4 5/5] drm/msm/dsi: Add support for RGB101010 pixel format Message-ID: <20260321-dsi-rgb101010-support-v4-5-eb28ecebbfe8@pm.me> In-Reply-To: <20260321-dsi-rgb101010-support-v4-0-eb28ecebbfe8@pm.me> References: <20260321-dsi-rgb101010-support-v4-0-eb28ecebbfe8@pm.me> Feedback-ID: 37836894:user:proton X-Pm-Message-ID: 74e88428093f1c2459eaaeb3576114a45fa4c3bd Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add video and command mode destination format mappings for RGB101010, and extend the VID_CFG0 DST_FORMAT bitfield to 3 bits to accommodate the new format value. Make sure this is guarded behind MSM_DSI_6G_VER >=3D V2.1.0 as anything older does not support this. Required for 10 bit panels such as the BOE BF068MWM-TD0. Reviewed-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Signed-off-by: Alexander Koskovich --- drivers/gpu/drm/msm/dsi/dsi_host.c | 10 ++++++++++ drivers/gpu/drm/msm/registers/display/dsi.xml | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/d= si_host.c index b55ffe2fdec3..67b33f46a93c 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -757,6 +757,7 @@ static inline enum dsi_vid_dst_format dsi_get_vid_fmt(const enum mipi_dsi_pixel_format mipi_fmt) { switch (mipi_fmt) { + case MIPI_DSI_FMT_RGB101010: return VID_DST_FORMAT_RGB101010; case MIPI_DSI_FMT_RGB888: return VID_DST_FORMAT_RGB888; case MIPI_DSI_FMT_RGB666: return VID_DST_FORMAT_RGB666_LOOSE; case MIPI_DSI_FMT_RGB666_PACKED: return VID_DST_FORMAT_RGB666; @@ -769,6 +770,7 @@ static inline enum dsi_cmd_dst_format dsi_get_cmd_fmt(const enum mipi_dsi_pixel_format mipi_fmt) { switch (mipi_fmt) { + case MIPI_DSI_FMT_RGB101010: return CMD_DST_FORMAT_RGB101010; case MIPI_DSI_FMT_RGB888: return CMD_DST_FORMAT_RGB888; case MIPI_DSI_FMT_RGB666_PACKED: case MIPI_DSI_FMT_RGB666: return CMD_DST_FORMAT_RGB666; @@ -1706,6 +1708,14 @@ static int dsi_host_attach(struct mipi_dsi_host *hos= t, if (dsi->lanes > msm_host->num_data_lanes) return -EINVAL; =20 + if (dsi->format =3D=3D MIPI_DSI_FMT_RGB101010 && + !msm_dsi_host_version_geq(msm_host, MSM_DSI_VER_MAJOR_6G, + MSM_DSI_6G_VER_MINOR_V2_1_0)) { + DRM_DEV_ERROR(&msm_host->pdev->dev, + "RGB101010 not supported on this DSI controller\n"); + return -EINVAL; + } + msm_host->channel =3D dsi->channel; msm_host->lanes =3D dsi->lanes; msm_host->format =3D dsi->format; diff --git a/drivers/gpu/drm/msm/registers/display/dsi.xml b/drivers/gpu/dr= m/msm/registers/display/dsi.xml index c7a7b633d747..e40125f75175 100644 --- a/drivers/gpu/drm/msm/registers/display/dsi.xml +++ b/drivers/gpu/drm/msm/registers/display/dsi.xml @@ -15,6 +15,7 @@ xsi:schemaLocation=3D"https://gitlab.freedesktop.org/free= dreno/ rules-fd.xsd"> + @@ -39,6 +40,7 @@ xsi:schemaLocation=3D"https://gitlab.freedesktop.org/free= dreno/ rules-fd.xsd"> + @@ -142,7 +144,8 @@ xsi:schemaLocation=3D"https://gitlab.freedesktop.org/fr= eedreno/ rules-fd.xsd"> - + + --=20 2.53.0