From nobody Sat Apr 4 07:51:28 2026 Received: from mail-106118.protonmail.ch (mail-106118.protonmail.ch [79.135.106.118]) (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 DA52C3242AB for ; Sat, 21 Mar 2026 07:52:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.135.106.118 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774079551; cv=none; b=Ukos6mSc8bTSGAoMdS11cuGtx9fuAAnn02aBuAJzP6nbgJpUKC3rBqW+I1iIx0BWsw71ndrn0cJfSwausEqrQhV63ODPWzpjvVE3SgCy4sLREIctYPXPI/JQYd0AC7z1b6Tf9N4tGLrXvbXeXoKFjljnFzX9v4jPIL2lJYRwW6k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774079551; c=relaxed/simple; bh=dD/BPKC5aT9eeNrRI4lDwbK6ytFidptagGuSLLMES4o=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Rf7ljKeZE/q38Ehog3vDwDu7NhJQ7mfkxxc9qDmZdOjCF5sll2fmiPf3R/GKTeXGS8yATwtvaPmoj8ZP2CJpRS9Xie5Crz1/yJuQfm7QebCsUwwq39d6thg55Gi9Fq8r5HzLQm6r19l148ij2VUWXj1JHZuzskI+mZtFF41Kz2A= 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=eknKBfQV; arc=none smtp.client-ip=79.135.106.118 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="eknKBfQV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1774079547; x=1774338747; bh=dD/BPKC5aT9eeNrRI4lDwbK6ytFidptagGuSLLMES4o=; 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=eknKBfQVua+/Zdc28IunDljWoOvc5nliyhT01KEmw4mQkJCHjuibI0mVWrtFPKj5U /OIFurwyox9ea50rPTjtymtK54ZAXDwp5CUQo13qR4+Rg8AA89rEegNDclGvAX89Uh qwfAOUMsPW9GJJvsBvd1scxBgZv/YvsTLSDu4uVvVRf6QqTi7IwFcHUylP74aSwnRN KHsF/iU6SALN5MbMAudKOg/KDW7aaObvYiEGZQI7UJfg6HDcW0spnyLKy/7RKoTe1O /jhWDUE7ufguxkDwXv3uk2lQ/dhpIdI3KabkPaWXk/oZcdA9EZHU9puwoWt3BBxWzE YTrzGp/BRdFaA== Date: Sat, 21 Mar 2026 07:52:19 +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 , Dmitry Baryshkov Subject: [PATCH v4 1/5] drm/mipi-dsi: add RGB101010 pixel format Message-ID: <20260321-dsi-rgb101010-support-v4-1-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: 776e05140780a2062676c01f53cd0cd9a48b1f1e 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 MIPI_DSI_FMT_RGB101010 for 30 bit (10,10,10 RGB) pixel format, corresponding to the packed 30 bit pixel stream defined in MIPI DSI v1.3 Section 8.8.17. Reviewed-by: Dmitry Baryshkov Signed-off-by: Alexander Koskovich --- include/drm/drm_mipi_dsi.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index 3aba7b380c8d..a822e9e876af 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -140,6 +140,7 @@ struct mipi_dsi_host *of_find_mipi_dsi_host_by_node(str= uct device_node *node); #define MIPI_DSI_HS_PKT_END_ALIGNED BIT(12) =20 enum mipi_dsi_pixel_format { + MIPI_DSI_FMT_RGB101010, MIPI_DSI_FMT_RGB888, MIPI_DSI_FMT_RGB666, MIPI_DSI_FMT_RGB666_PACKED, @@ -235,6 +236,9 @@ extern const struct bus_type mipi_dsi_bus_type; static inline int mipi_dsi_pixel_format_to_bpp(enum mipi_dsi_pixel_format = fmt) { switch (fmt) { + case MIPI_DSI_FMT_RGB101010: + return 30; + case MIPI_DSI_FMT_RGB888: case MIPI_DSI_FMT_RGB666: return 24; --=20 2.53.0