Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/mipi-dsi: add RGB101010 pixel format

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 <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Alexander Koskovich <akoskovich@pm.me>
Patchwork: https://patchwork.freedesktop.org/patch/713714/
Link: https://lore.kernel.org/r/20260324-dsi-rgb101010-support-v5-1-ff6afc904115@pm.me
[Acked by Maxime to be merged through msm-next on IRC on dri-devel]
[DB: moved RGB101010 to the end of enum mipi_dsi_pixel_format]
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

authored by

Alexander Koskovich and committed by
Dmitry Baryshkov
b50dc1e5 9c171c36

+4
+4
include/drm/drm_mipi_dsi.h
··· 144 144 MIPI_DSI_FMT_RGB666, 145 145 MIPI_DSI_FMT_RGB666_PACKED, 146 146 MIPI_DSI_FMT_RGB565, 147 + MIPI_DSI_FMT_RGB101010, 147 148 }; 148 149 149 150 #define DSI_DEV_NAME_SIZE 20 ··· 236 235 static inline int mipi_dsi_pixel_format_to_bpp(enum mipi_dsi_pixel_format fmt) 237 236 { 238 237 switch (fmt) { 238 + case MIPI_DSI_FMT_RGB101010: 239 + return 30; 240 + 239 241 case MIPI_DSI_FMT_RGB888: 240 242 case MIPI_DSI_FMT_RGB666: 241 243 return 24;