From patchwork Thu Jun 9 06:49:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying Liu X-Patchwork-Id: 12874865 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23FE9CCA473 for ; Thu, 9 Jun 2022 06:48:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237278AbiFIGsU (ORCPT ); Thu, 9 Jun 2022 02:48:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239213AbiFIGsR (ORCPT ); Thu, 9 Jun 2022 02:48:17 -0400 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50051.outbound.protection.outlook.com [40.107.5.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EA044B401; Wed, 8 Jun 2022 23:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cwOxPFB1WqZBk+g0nqRScO0aJEsiUkmMbh4WZNmgJR4qJya4oLuHaMW0g4L5cVgFvRw9HzKUY5lpwB/u4OC3KIIGlgnZ07IB2NC54kE2gmMaxbym0zUY/UxeCQfh7jWpJV7k0k9uSU/fX/qqJDU+pU1YgMc0nWFA3v1SC90XxMsGzxo3YNMbEB1Hzt5FqqqEab3ObibuhvkgENmrX6YJpBWxmDWSE8nNty/9XWB+OTtq4FY7OeLA79r3AOco3/FzIZvp2V5UlomMn6Qy8Q7qtm7GW1Mgklu+iDN2bmHSOFWllUce1p0ychpiF/oWkVsPVShXtwpK4bFjxaumquxGtA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PGMCFkE5UKzvfv/uX2zuCd//zUK1ZgRhdIRETpeS6yA=; b=fdTpnr3q9f6xTk4Y93u1ZXsWwaMenpFtHcxqj5du2NNTZIWUGaetYvdFoBh1m4KCicN5Y6ty1JRCyNCney+MOzxjGpkoTMceC+ZLCWaPXf9u/Srl+DKgqcO6EI6kYn4lYgsUUi0SHH2j3Q/3GH9gQO/JUsnVXqj/ivBKwBSb+ry5bapYJtQEtJFWKf8zwtDnv+9MWBY0wAN80hj2VDuiySZemRgoL+ulQvPQAGTHKCICojG1dzFEr5C+PBwAQ/l+ZFEMOtU6RaQTL+6DKWDEi1CIzK5mK40875RKi5C9Xgt5Y55oOYRr30s02eWdqZ8RpNU6ZvsHn83+XS77IpMgJg== 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=PGMCFkE5UKzvfv/uX2zuCd//zUK1ZgRhdIRETpeS6yA=; b=NZIskhGtBQd+OKuQJDoLUEAnRkpyLOD7A+0zjv8zLoeL0jZM+5ljWAwYAT+VAT5hJtgbSxGLZIJl7D6RPbubTQiGGBf1x80W9fJpOkFvlp5KxByoNH+AFBlPd5BdaSrWDdVJAwdgIQTy/GQuxdji/MKz4YMLwoxb0QEVep75+wA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by VI1PR04MB5280.eurprd04.prod.outlook.com (2603:10a6:803:5f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Thu, 9 Jun 2022 06:48:11 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::3c82:f63b:711a:502]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::3c82:f63b:711a:502%7]) with mapi id 15.20.5332.013; Thu, 9 Jun 2022 06:48:10 +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: andrzej.hajda@intel.com, narmstrong@baylibre.com, robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, lee.jones@linaro.org, mchehab@kernel.org, marcel.ziswiler@toradex.com, Laurent Pinchart Subject: [PATCH v8 01/14] media: uapi: Add some RGB bus formats for i.MX8qm/qxp pixel combiner Date: Thu, 9 Jun 2022 14:49:18 +0800 Message-Id: <20220609064931.3068601-2-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220609064931.3068601-1-victor.liu@nxp.com> References: <20220609064931.3068601-1-victor.liu@nxp.com> X-ClientProxiedBy: SGXP274CA0008.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::20) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1cc8759b-a47a-4283-b9f2-08da49e404ad X-MS-TrafficTypeDiagnostic: VI1PR04MB5280:EE_ X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aAy8HmCaLfIccdExDroJDY5TQ5WI14LX6R+qcHnB6l3gfUl/yiamdTJ6jKf4nbWX5mTnOX2dP4fFbqtrCx3w56SN39zGlipxjr0ZxrPPO6r2fuNqxOm0ua9nejLDKhedDst5P/cj8ULBt59bkY7Q8s12xLkIg5U3WGpmewKdONH6QFXZhSDFJvhrZQ0fLP2b+PoeanENJTqh8jGxUmOzqQEm0NBxGRbWiLBBnyhi2wXez8BCK16NiqbCDG5PZ/lhsrqPoNIooEv7rQ5NrVUDMzjCpQtjno85JW94m6ccLzJ3VJX5PxH1LMMzS/yXch5yl6qyET5tx/fHnTnGo4q7wtUwrjaVKugUzez5yQ9p4YzLpCt1YqAfRulScNTenl7MZwZe1ETDJMDUiOEACBSuqVE1NvVi1Z63jrFTcrLyeEoDclsJk554fRi21DVUnmwcs7K2FDrOZYYPFEZmHo4jRr0jH45WdPIFajzAFOcDnmUlk60A/K9wLGgsZD6Ap0wtNRsRPUETrCswDsWnPFO3KcBliCxqhcGHp/JPjUw7L0XpABU4NYM/nQZvXmXJ+Ix3EJiCzh6G+06tTOJE0+EsGhl3mE/oR0inpCpPwVy9bnD2cgR7ybRIP1KvtMXLZennQUFkI6drUNSsl8wM4N8RpvTX9M1eoU0gKN1nD5uOQZYSCK/Fe4rVs+CMzJopF1b73BGlPYsZe7ax8TIQQSUsNg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(1076003)(186003)(83380400001)(38350700002)(38100700002)(6506007)(36756003)(2906002)(52116002)(316002)(6512007)(508600001)(66946007)(6486002)(2616005)(66476007)(66556008)(8676002)(4326008)(7416002)(5660300002)(8936002)(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4lw8bG/aYsxUx5dg286miLW5j7tWx3VqlJNCWJlkF2En2POyVI7oDV5RSs9RhB6bXKCm1chKLkgW/O7IzIp5+/A9wfA6LfHsogADrVtGTIXq4HqkL+v9OHfS6+A2hQIGXFuH66OS/kczRbDjcE4AidespEKlfQ+JWJ7K83J0Tthvi8qF9MNMFLoWfpKT257vZ73kIHzOz3N7+FZ2qAdJEb7hV/3ln0lcoRreh5KCngLRFL/uJk2DLkvvddaoQqhhD4Ewd0oIf+g5XvQFxE4HR9U4Vd/uBpvKu3i6HqGf9pqAFcah5MN+M4OAx2iXBtwagFbTZnWMR/Cz2zKn59QvDOWkWFVwFFBz/RzisfYXpUGfhDPk7ksecFHgBpt4TiWShYnfvXFZ1qaqGF9qDcgMpzd/XlUQpx9apJwierw+L0gajq2jaVzfWrbHStVTqcpl6OiWGLVhj2BPJldiQmEazsiEftMqB/Lwiwfz0i/Jn2nrEr8Gp7vlI/fBjHKJMM/4uXQs0d9qzkGKg4Am8Ox1jQic3XHf/BwTc9BucFeQZAVPu/3gOUve93FiV5233I8iMRHY2SifO9gyUsAcBiiFpDCwGHCSH8HLWoNQRCXQ8pzccRr0IcuqWl9xoxCs22wPjikdIqefB28gl4X4yUWS7s95ENwtClbz7Cu/CTMiOaM4Izln36qVpzd/oA86QmA5uJwwojDMQB7ZcRZ7dtzCQJfAwfi07CxhWAZkQ9LZAHpAip9SuFw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1cc8759b-a47a-4283-b9f2-08da49e404ad X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2022 06:48:10.8711 (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: mdiOHjGOqTcojznuYaYeTLJzy45JsEs93apyX71SZmWFtZpG4lzTm8n/I/yrdKohk7AeGB9hnLn119SctWhJ9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5280 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 --- v7->v8: * No change. v6->v7: * No change. 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 0dfc11ee243a..ec3323dbb927 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