From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 960CAF589DD for ; Thu, 23 Apr 2026 14:22:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TtW8Ke3+3caLu1o1aX6FwxpV7hgm6Dp5nq0xbXJOLMk=; b=nzzrAC3nXqD8gxdYB7+QZr0uQl bP0Rz7UMcyxpqsVib1PJgilLnk+tqKuchhY5lu/mCvHe8t3QN/Jb6BxvdDUPZWMy4o1AEGg1nd3lX YAXk+kJiv4neoXuNWYjRyVj/+R/Qxxi6tBktp8OaVOjw5xn1tGWIAR0DrC6W4+h3eG7FM8ix97/bW PKBh2pLxXe26KXrmBYcmLTYqfbeMUq6F/unnpROJIhCCmoyO9Zihlv00pvGNkuWVCpWpXHMt8/LY/ w04CeYpAhqNGAoxMT4TpmdsxMan5J6el0CxT9rHetpGm5eqh/lsDLXLbxZGyKKKT3ss6OGKean/8t F19zdjCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wFuwP-0000000BoJY-3Iej; Thu, 23 Apr 2026 14:22:05 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wFuwH-0000000BoDQ-2G1t for linux-arm-kernel@lists.infradead.org; Thu, 23 Apr 2026 14:22:01 +0000 Received: from [127.0.1.1] (91-158-153-178.elisa-laajakaista.fi [91.158.153.178]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 02BF015AB; Thu, 23 Apr 2026 16:20:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1776954011; bh=hCyv0tXAPLSXxkg6g/MXFWhjFE1z8zTbHbQQgreRYzo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=FUrqxXksKnuR51MfvdmUans9zfwa3+LBjitbEwim0WsI73E40s7jziltNxgndekAe IihUQsHLtcpkUpUGCmHJbWaeTUt+196kW6FOVdKnJTFPgcYLVFXA7NESXqlH3WJwKQ p1apAvs5zG6IXFCiKnh92JXVFvCYnvrNUgnJR//4= From: Tomi Valkeinen Date: Thu, 23 Apr 2026 17:21:16 +0300 Subject: [PATCH v10 05/11] drm/fourcc: Add DRM_FORMAT_T430 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260423-xilinx-formats-v10-5-c690c2b8ea89@ideasonboard.com> References: <20260423-xilinx-formats-v10-0-c690c2b8ea89@ideasonboard.com> In-Reply-To: <20260423-xilinx-formats-v10-0-c690c2b8ea89@ideasonboard.com> To: Vishal Sagar , Anatoliy Klymenko , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Laurent Pinchart , Michal Simek , Simon Ser Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Dmitry Baryshkov , Pekka Paalanen , Tomi Valkeinen X-Mailer: b4 0.15-dev-c25d1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2208; i=tomi.valkeinen@ideasonboard.com; h=from:subject:message-id; bh=hCyv0tXAPLSXxkg6g/MXFWhjFE1z8zTbHbQQgreRYzo=; b=owEBbQKS/ZANAwAIAfo9qoy8lh71AcsmYgBp6ir1Q+QgRnOE58i8kR2OvEJ8/VEm5fvV98pEl Ux3SpPFGIKJAjMEAAEIAB0WIQTEOAw+ll79gQef86f6PaqMvJYe9QUCaeoq9QAKCRD6PaqMvJYe 9UaTD/45klGaGE244vl//O4+nLV0CRN/AMAYax3PBJ1yLNqa7RcLRaDUhbTxPGqnoQkFtmvXrCz CjyZL29TDFj08knYVnCwZfvDItF+Pb/dpRPeG44McCrgWR7uGXh1PkDYCbfVW6bcs9W72oNZPN0 k57lL7LNl/V3sBuB4/m1vbIYzBoK/sshEUbEIpt4k+Ljem4SbNTOvMYFDCRPVwUeP0rPVDBkD/Z 5XP8h8lB6veWMr751U27Sb+udy04Q0k3TYdo3EoDE3lBo9AnUX6G/X8RzeeOXXSEiDKubRFB68H 1XsiqohgX0z5A8LoVDMwZAom8GICBYOO6zAkVUE/lza2q832ec3fzKDkIsfqlSXU7b69ECFCtPN iI5D7YITOBxtzvqdHeh9aA8yEWsIMOyhYrTwXqZwj7rTG6dKzrJGlo6ehYh6L9Zb7lt2rcN9glo qDLDp0oBCzkB6QcvgsO4Tp3gCR+egDv5MH/NzFWoIK0jquVX5bADU3QNQmfa8SmZ3/PMA89Xtmb H/0E+SAp4A2SgYXXa92TDzAM85/nmYze4HZuTWwYaBPwVJxkWqg9H8+I3KVF/RbdMZ95cOVHs7w 3E/k5P0I3PJOkBVJJZ8dUElYU8au4bQ5TnJZCV/3WnIA2vdIJPGEv4kE1mJgUBxuDbQo6AQ7Wn/ I7fk6nvK9tKCtIQ== X-Developer-Key: i=tomi.valkeinen@ideasonboard.com; a=openpgp; fpr=C4380C3E965EFD81079FF3A7FA3DAA8CBC961EF5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260423_072157_728524_1BC286B6 X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add T430, a 3 plane 10 bits per component non-subsampled YCbCr format. A new initial letter was chosen for this one, as the format doesn't match the existing P, Q or S formats. T is the next one in the alphabet. It was definitely not chosen because of the initial letter in the author's name. Reviewed-by: Dmitry Baryshkov Reviewed-by: Vishal Sagar Reviewed-by: Laurent Pinchart Signed-off-by: Tomi Valkeinen --- drivers/gpu/drm/drm_fourcc.c | 3 +++ include/uapi/drm/drm_fourcc.h | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c index 01761c553e7e..20b84efc135e 100644 --- a/drivers/gpu/drm/drm_fourcc.c +++ b/drivers/gpu/drm/drm_fourcc.c @@ -388,6 +388,9 @@ const struct drm_format_info *__drm_format_info(u32 format) { .format = DRM_FORMAT_XYYY2101010, .depth = 0, .num_planes = 1, .char_per_block = { 4, 0, 0 }, .block_w = { 3, 0, 0 }, .block_h = { 1, 0, 0 }, .hsub = 1, .vsub = 1, .is_yuv = true }, + { .format = DRM_FORMAT_T430, .depth = 0, .num_planes = 3, + .char_per_block = { 4, 4, 4 }, .block_w = { 3, 3, 3 }, .block_h = { 1, 1, 1 }, + .hsub = 1, .vsub = 1, .is_yuv = true }, }; unsigned int i; diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 472f95632640..07bfbc8a0300 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -403,6 +403,15 @@ extern "C" { */ #define DRM_FORMAT_Q401 fourcc_code('Q', '4', '0', '1') +/* + * 3 plane non-subsampled (444) YCbCr LSB aligned + * 10 bpc, 30 bits per sample image data in a single contiguous buffer. + * index 0: Y plane, [31:0] x:Y2:Y1:Y0 [2:10:10:10] little endian + * index 1: Cb plane, [31:0] x:Cb2:Cb1:Cb0 [2:10:10:10] little endian + * index 2: Cr plane, [31:0] x:Cr2:Cr1:Cr0 [2:10:10:10] little endian + */ +#define DRM_FORMAT_T430 fourcc_code('T', '4', '3', '0') + /* * 3 plane YCbCr LSB aligned * In order to use these formats in a similar fashion to MSB aligned ones -- 2.43.0