From patchwork Wed Mar 17 03:42:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 12144755 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB278C43381 for ; Wed, 17 Mar 2021 03:57:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8E41964FB9 for ; Wed, 17 Mar 2021 03:57:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbhCQD4o (ORCPT ); Tue, 16 Mar 2021 23:56:44 -0400 Received: from mail-eopbgr80048.outbound.protection.outlook.com ([40.107.8.48]:9307 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229807AbhCQD4Z (ORCPT ); Tue, 16 Mar 2021 23:56:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y5GrPrL3NhCVn2bsl+tMD3f9p8VcW/0dgVuxB8vQAllkqiHhnwiH8yFpNLhqt9lR6zqZUn3e4TT+bricLZdYZO63Gfp7BtGLEUhNMCiYVq7OaM5R+rxngK7dVFPouFMKwBebsqu66DytIapMJApWJ1QrGZ5+2DgIh5aDq9PXb6vgigyLM6DGkdD51lcLEHdPvXt68I5mB86cM7QeDgfhQoz9lOD3wjJ3DKcjzvMAJQ+N7DB84Gfdb1JEZMISuZ9NH5dI7CLboMv6JgwtsyG5ZAFfun3pQwnAFv7AfVCY1sbka1K8JpIuoLnO53KGoVep3yPlYFKi+QgFSX1ebxQsRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ci8rK3VRiEO5u5VqUZEUp+R2RaPHM1B0q9Fb3iCW0I4=; b=nXJn23kSWLv9+7TYGgoSHBRHDeMWCPBStkBvLBQpp9DW46Ir3XNg11VYRnsGJa0KN8w+KocnvqykTLBvGO5XEo6JiPdx5f9xOFwB1GsOl4yO5jR7fO7ImUXHAQ1tENqgSfluATuvJO2WtwGXHpoIlUbA4nJO7gT2jIhDVEfhl97Fp2IP4p2qMkIi67zLmaLRKKGo1eDvvCvk0WUTc1jtJgWb6u9khb0EGrmXErlB1CRCWSiATuZPNl6FDFNZHlATz/M19OZV23oC2BwG+LRReFjd03hxRB/g1dZYOOgAG59TyoR5aoNhvg1kMB3ypVXH79QQNxiLSV6Bk1LqIPL2Ig== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ci8rK3VRiEO5u5VqUZEUp+R2RaPHM1B0q9Fb3iCW0I4=; b=ZzvTWNky85doXY31wKRkT2mD8PQThUfmwJYewaB4bf/gKZPNvHIldD9Y4RFylbLBpMUxGHiwakjetqK/rVhXYHnPF5trH9MR1LZq9NYVTzx+uW5yLUlfninzOGCxnxkd6T+V415pgzvnoA4rVk4VGiQC86jsKrJs9jaNhZPaN8E= Authentication-Results: lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) by VI1PR04MB6991.eurprd04.prod.outlook.com (2603:10a6:803:12d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.32; Wed, 17 Mar 2021 03:56:23 +0000 Received: from VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::2564:cacc:2da5:52d0]) by VI1PR04MB3983.eurprd04.prod.outlook.com ([fe80::2564:cacc:2da5:52d0%5]) with mapi id 15.20.3933.032; Wed, 17 Mar 2021 03:56:23 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, mchehab@kernel.org, a.hajda@samsung.com, narmstrong@baylibre.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, kishon@ti.com, vkoul@kernel.org, robert.foss@linaro.org, lee.jones@linaro.org Subject: [PATCH v6 01/14] media: uapi: Add some RGB bus formats for i.MX8qm/qxp pixel combiner Date: Wed, 17 Mar 2021 11:42:36 +0800 Message-Id: <1615952569-4711-2-git-send-email-victor.liu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1615952569-4711-1-git-send-email-victor.liu@nxp.com> References: <1615952569-4711-1-git-send-email-victor.liu@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR04CA0090.apcprd04.prod.outlook.com (2603:1096:202:15::34) To VI1PR04MB3983.eurprd04.prod.outlook.com (2603:10a6:803:4c::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by HK2PR04CA0090.apcprd04.prod.outlook.com (2603:1096:202:15::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3955.18 via Frontend Transport; Wed, 17 Mar 2021 03:56:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 90779de6-3728-45fa-d29a-08d8e8f8a13c X-MS-TrafficTypeDiagnostic: VI1PR04MB6991: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:326; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zRXmZ0HK9KWzNko/LtnQMW2/rC0eXY0cspDedSQZcdLBMlHplmeurAWkgPi0WH9f6wFpz9RGibKC3p3kdKnk6NwykEke1CzUpr5NX//2TTi16f81iB9OYPGdmr4EbgdQ1Sy0qhKYVMDLn5Vgxwejpyy5xZF6la2CNBEHW88Cm8Zh2s2uv9vV+CP4shghEZgRiI+a1s+fulfdW7fkMnEPS3k3fZ0b1PIw4A2m7H01twAqmxMYeAYMxpENoKYNSTEY6n0eoPQgDXcsuD8fejPyaMFuu/lAORkPDtIGtj5hembygzkTJvAxzd2/3o5QAusfuHHqTdrQnVkctZRIUzd9wB+YEeUhzuI/TosnBvYLoIvwzk+MOqLmqQ3eA5jIF7D7db890b0TEX17gU/Jv7/pm916Dm5lvZ+EYavu2e+DSHa9os1YvFIvSKLr1gvvyBN8qVhw3sNlyjCerQaEwPJTZRD6uXe5v6sE3RaLwVb0LqrY6a0it9tVcoebJezHkQGnyVwgUf5RMB9DmvRBOfNTFJLt1qU8w1wdlQCP700QIkbKG7BiEZZ0akl2B1sAR7AYpqjHUSUVcYEHiywREXbtusZ3fqwSimlm3jyofR42PRE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB3983.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(346002)(136003)(39860400002)(396003)(376002)(6506007)(36756003)(2616005)(6512007)(86362001)(6486002)(478600001)(69590400012)(52116002)(186003)(66556008)(66946007)(4326008)(66476007)(6666004)(8676002)(956004)(5660300002)(83380400001)(316002)(26005)(2906002)(16526019)(8936002)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: I6nQy5wXa2i/zzPwxo2ysrqfV5lTbQhNALvdfnJqjfN7mbmsSvqOam2LvSki0BZaTuEma9G8ZDtnmhWUbhm6AkUebPtJRffvt+cYeBnJEPGQC4dqmMFrh5szuxWcfPOh3k4YAaCP7qTZ70C/PpG2sH3qcjQsaeDe8efiqIDhl0Nr24ade1QZkR8Oot7ekFTx60yu5gB/gyG3d6bOQPHSv7VYE7eS5Cr9YHGvPZROBczMemzpS23PYRdjx6y1vWN6a0ScufEAJQ2+fQaNTfuQZr90n/2Alj6vxetJ6m37+PPABif9oROGtIilPBtaLvfF2BkbZgxI+Gd66k93hmorIjL5mLYbtHg7cix3M2P4cl0PL3j2mQUqkxWzZlLmdBRTYEgDbUjKRUHRkeywvxShjvBSjkjWWTA8xYDcXdJunCyweRrn1CsodUmrlGSoE52wiKKBf7RGDr+/yMBD9A3X5pfBJjZxswfFfpufY9dC59aYBukNm4yuZGxuATYlgpEkMcctewzPooA7SbYhiNK0YO5RPKDxV8ItfFy4GgIaUYmFibfaaKO8l4Vb3ViGNJdHORQBGwA0mwFRIbTsccAvbq/soFD1Id/DaN4o4gP5zK2s/PJB7dyp0ijSEfLjtrMy+GkD4jNvEevmcd9xTjjPiIXChjgiYuCJnOxfioCIKp4szUQs6hsACH3qZVRUSmDXYGR3s/169ACX0kUrohjAC/Fah0vOOoq0d6vwGSEUGqHrAyAgjCml4YtA3VCIz+zk6+/u/n42RAHa+5ZSdWMaKYG6Iryrf0zEfDQeu5LM0ndUrdQgB7nJpWhrjI9fRmsa7E/Bx/ndSL5Ps3HUtU4lYOhqV9vLJQk+YrDOJYi6jvfCxV7GsMR39JWhFhLJo6lN02yPRxGOf6/La4hlIcztF6JxpcoJmdZY7ec9DbvSGDepAxsFGLAL8CxQ+X6gp/ozem3bnLRLzidJ3cUkwdvVGSWzoo3oIzaHIDkrjVM65UkYY6k602IWeiWabyQasnE0J85gMMF6ltbOys5+lPYf0j9X5lr1I8E8/ERsfhc+ufSCIZM0pMyrjfAmKsPtb0fg6I8Yuhev4LgxGiyy93gKJZ4mXg4E8WA4y9AZIC+JhY5/0WG+VVxM5S0VQeevROAZHB5FQ4rxTt/xcG1tLv1YuymjSWDCa7/DPLrHd+vIj1g2YEEw8f4khjCP06WkbmLIRD06PJbqaVHzW8YA0Hgst1w7YRHDJnfLNPWlEnWoDLeYrEKSkM1g+ANiRaI7yIhRXQS4KOSy6JB7ye8GBINxW2bXjWJx2Iirirb1nV0mWi9OydGniWtyuef8X1hwRIHL X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90779de6-3728-45fa-d29a-08d8e8f8a13c X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB3983.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2021 03:56:22.9765 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3bmrggAPn9x/qmTNtWGld/tKOITSJpkRPXrp8zMTYlE+pebkvwraS4lIfh3Wkblm4/vDK13G3qveHF3qKeORTg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6991 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This patch adds RGB666_1X30_CPADLO, RGB888_1X30_CPADLO, RGB666_1X36_CPADLO and RGB888_1X36_CPADLO bus formats used by i.MX8qm/qxp pixel combiner. The RGB pixels with padding low per component are transmitted on a 30-bit input bus(10-bit per component) from a display controller or a 36-bit output bus(12-bit per component) to a pixel link. Reviewed-by: Robert Foss Reviewed-by: Laurent Pinchart Signed-off-by: Liu Ying --- v5->v6: * Add Laurent's R-b tag. v4->v5: * Add Robert's R-b tag. v3->v4: * No change. v2->v3: * No change. v1->v2: * No change. include/uapi/linux/media-bus-format.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h index 0dfc11e..ec3323d 100644 --- a/include/uapi/linux/media-bus-format.h +++ b/include/uapi/linux/media-bus-format.h @@ -34,7 +34,7 @@ #define MEDIA_BUS_FMT_FIXED 0x0001 -/* RGB - next is 0x101e */ +/* RGB - next is 0x1022 */ #define MEDIA_BUS_FMT_RGB444_1X12 0x1016 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002 @@ -59,9 +59,13 @@ #define MEDIA_BUS_FMT_RGB888_3X8_DELTA 0x101d #define MEDIA_BUS_FMT_RGB888_1X7X4_SPWG 0x1011 #define MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA 0x1012 +#define MEDIA_BUS_FMT_RGB666_1X30_CPADLO 0x101e +#define MEDIA_BUS_FMT_RGB888_1X30_CPADLO 0x101f #define MEDIA_BUS_FMT_ARGB8888_1X32 0x100d #define MEDIA_BUS_FMT_RGB888_1X32_PADHI 0x100f #define MEDIA_BUS_FMT_RGB101010_1X30 0x1018 +#define MEDIA_BUS_FMT_RGB666_1X36_CPADLO 0x1020 +#define MEDIA_BUS_FMT_RGB888_1X36_CPADLO 0x1021 #define MEDIA_BUS_FMT_RGB121212_1X36 0x1019 #define MEDIA_BUS_FMT_RGB161616_1X48 0x101a