From nobody Mon Apr 6 20:00:43 2026 Received: from mail-43100.protonmail.ch (mail-43100.protonmail.ch [185.70.43.100]) (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 10F2F3B8921 for ; Wed, 18 Mar 2026 09:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.100 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773826880; cv=none; b=gO/8Q7MlI1s7/aApuylPzwB/1DPfRm23e97K6gBmmdThbpyQv/quJ5EPDxU0FVEZSZRNs+6izY/PK5l86FhrMaBpaJ1M7p3BZFrQemLcQ4DIie7jUm65uA2o8hcdZOrXjg8YX1Nxm4dK6cNqow5ddv07b0qZoKVvRyD4+pA1A8U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773826880; c=relaxed/simple; bh=ruYaGccTAKXK+P0Ge5dwgCX44x/fhBLVWW76X3wmX0I=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JoEvgKNw5jd+BVI/D5Lq2NKnDgJnQg86jCVA7S3H0Pc1dBs/KyIuLQwvAGjLQ4TuucYHTP4PJScbERPo1EZ17yIrKvHb/0bZ37YyfFAXmiXpJWOcCd8rHjReR2/gKqO02SrJyX1IBQMiKKjAL/aD0t9pOoUt7reRtjg7BuLdeBE= 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=AyQaD+9Q; arc=none smtp.client-ip=185.70.43.100 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="AyQaD+9Q" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1773826868; x=1774086068; bh=cpbR1pI93xvVsMgjnenFLen8wZueCr5a35WmFg67pXU=; 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=AyQaD+9QGQ4g7rW28zwPEC6FX92gZ5WTDJaPbJ4OufoZ9cX9lIPNo/7+HpIl26P4D vb/54Wvq0SSa/hacytcUAJZERm3HY5BEb/VNGO2MBWsNpo37VaiMOh4/WLC3k8CjS9 2TcNSWOtH8uCsCb5FsNyx/OclRvUAolBnWsFvsVDVymgh54rE7FySAMbCqyKMTNj+L ZR3fCuzKfB0YJYGjbQxob+9PDrcuW+C4keZGQbvmZPWCD/Os7aFkQkEIhAG+yeuGKJ fUwD3F38slGcB7Fkcj1ZLH3tPVP2aJ3s6F9iiuP45JV2Qctm/w9WCT6m1BVK/v+zZR XXTO82pJP+YVw== Date: Wed, 18 Mar 2026 09:41:05 +0000 To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten From: Alexander Koskovich Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, Alexander Koskovich Subject: [PATCH 2/3] drm/msm/dsi: Add support for RGB101010 pixel format Message-ID: <20260318-dsi-rgb101010-support-v1-2-6021eb79e796@pm.me> In-Reply-To: <20260318-dsi-rgb101010-support-v1-0-6021eb79e796@pm.me> References: <20260318-dsi-rgb101010-support-v1-0-6021eb79e796@pm.me> Feedback-ID: 37836894:user:proton X-Pm-Message-ID: f8dd0542583259f10d8d10849af1a9bd91c952f8 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. Required for 10 bit panels such as the BOE BF068MWM-TD0. Signed-off-by: Alexander Koskovich --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 ++ drivers/gpu/drm/msm/registers/display/dsi.xml | 4 +++- 2 files changed, 5 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 db6da99375a1..3e3d61b9390f 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; diff --git a/drivers/gpu/drm/msm/registers/display/dsi.xml b/drivers/gpu/dr= m/msm/registers/display/dsi.xml index c7a7b633d747..7636e9914078 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,7 @@ xsi:schemaLocation=3D"https://gitlab.freedesktop.org/fr= eedreno/ rules-fd.xsd"> - + --=20 2.53.0