Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5209834rwd; Sun, 4 Jun 2023 23:23:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Jfe66n6OQIw1vaQ0AR+Q2xR5/JFqq8bJHxObhmRt3k9KgvBnEaIbxXBwv4/DuVG5dl0cc X-Received: by 2002:a05:6a00:f96:b0:656:c971:951 with SMTP id ct22-20020a056a000f9600b00656c9710951mr4569432pfb.8.1685946215252; Sun, 04 Jun 2023 23:23:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685946215; cv=pass; d=google.com; s=arc-20160816; b=PeLQW33uRYnYl+fLi355lK6oAPIqIgKrG66v700sWnuQO9LJBkERd572OtzF2bzp1u aGzpCdFxt1SDVcFs/KEpL9adnXhWpPYf5M/PEkQpW/ZsQUHomUgFT+BoCEBoQWHDa97K gTRKAzaLrd4KB3ISIWHXfrjEmXR9ZYofj1FtHn6S6r4/bi7qQufoOJxoQ5gP+87q5Y8G AJqc9HqpcUziMpe2h9c+kpSlY7eCXk5wWVOPVZm4xCfWDQX/7e1lGEeOuK7UxkMucypb 4zPfQtg5lIqQm2+03hlBqT972E9RgZYjDCkqF48F4a8CMgPxSXiI2QIH/RMFc/rcoUQT cLfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=Vq2QrDsLeLFT3PrU06q3+b+ugFyA1/XdMAChtwB92q4=; b=GuJ1Ri2K1ysgWN5V/GQK10M/DtbA4G8l3UajZ77pmDo1Ajj68kwOymnE0XYv7ts3l+ BzkLkyxFdi+lx55XKru/TZ6EH1mCXiIv9kyA8vnBiVJ+okSqhe8SBaE8YQ8XwAAfGNAs 1rLIrHYQ1TjuGfVK9P4XLnXIHbEzuja3bU4jrHXVK0rav8wYigE7/U6ADwbw4nZygc3I 9J5Kxmf20zW9kAn8FhL+FAw/sUQmmGj3lsFme6N4u3EBYuK6PlvQluKywJ9x80UjSRMr yd1uXXAv2bfQ7fw4GSJAIfNoKHf4eIt4vZNl9gRVTrAfBjEViA+lw72/+mzJvuYWL2IN TNHw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=CUP7OO6H; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w63-20020a638242000000b0053f3e6ec82bsi4980306pgd.774.2023.06.04.23.23.20; Sun, 04 Jun 2023 23:23:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=CUP7OO6H; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbjFEGRg (ORCPT + 99 others); Mon, 5 Jun 2023 02:17:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbjFEGRe (ORCPT ); Mon, 5 Jun 2023 02:17:34 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2047.outbound.protection.outlook.com [40.107.21.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89864D3; Sun, 4 Jun 2023 23:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J57UBpM7w8ZOWFx4sEcUqfo9i9l6IexucdDzBsc7LteUiFpnXCmGrwjb4igauKaOfCDXlvpLnn+kJrxv2Ar2wVVqT50FPQwvLW1CubznkbbTNYgnTx0FfXZZaBGXRDmN5jVQV7sz3zE/u63+tloR8aLviq5OIuI2vL3MmD/43SD0TKjN4fbgegeEM10TOMctgfoOk9tEplT6RZKuro0oG8uu4lHv/o5NYN+Bf9Ra9eHqWz9mXG3WDNWoj3fSD+xiqn7HJYpiMFzkv08Y4zPtJ5/vBMxQQ9x8xg2cxt051X6AQJ9LhUCnG7oZ8L7RWeoQOWfGe8PKTnWfXI3OQS2G7g== 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=Vq2QrDsLeLFT3PrU06q3+b+ugFyA1/XdMAChtwB92q4=; b=SKCsD+NsZ72Y8o0lgAjbpkEJLopT9TOAv3HEylUUWF04AQ82TasbJ+/LH7Cr50u15CwHQXE6scJrsN/FNbRzcFcHohogcuZIH3fg7uN/L2NLIx9XjhnMPl2JCJWc9zr860spRt7mNesM10IYIF9NPxYypeGMxZHMmsHdKb2M9rAjD/66zloCm7Gzvtmwe/o6EKmeFQbENEphhWJHgVPMCZrB4rN01ElFBzl1Hr5DzEFbxnpT0Ms0Crp55uwl0zwdm2So3J3ukm7mLPM/+GDnzX11woVZrPABdQEDm4Z8ItDSp2+1CDOgrItR7/AN/NU06qV5B/jgnKunCOLdZCV7uw== 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=Vq2QrDsLeLFT3PrU06q3+b+ugFyA1/XdMAChtwB92q4=; b=CUP7OO6HQevF66LBQQMVGqpC+45GAAB6xwIcuAhKfNttvU1BoK2bUQEIcvIC4+pDpNaJMB6NgzruSKL9MSLV5v8+87p0FTEvl769R1fzuIUVqdkhjre5jzIh4gAVODYy8GjTScmNsFT9YmtuvlOvd6rmP7pFHuN7Ar7G70q/gD0= 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 AS8PR04MB8545.eurprd04.prod.outlook.com (2603:10a6:20b:420::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Mon, 5 Jun 2023 06:17:31 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::f3d5:528:d12d:50d0]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::f3d5:528:d12d:50d0%4]) with mapi id 15.20.6455.030; Mon, 5 Jun 2023 06:17:30 +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 Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@gmail.com, daniel@ffwll.ch, peng.fan@nxp.com, marex@denx.de Subject: [PATCH v3 0/2] drm/bridge: imx: Add i.MX93 parallel display format configuration support Date: Mon, 5 Jun 2023 14:22:15 +0800 Message-Id: <20230605062217.3716328-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0045.apcprd02.prod.outlook.com (2603:1096:4:1f6::16) To AM0PR04MB7041.eurprd04.prod.outlook.com (2603:10a6:208:19a::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|AS8PR04MB8545:EE_ X-MS-Office365-Filtering-Correlation-Id: efb8b8d9-6f05-44b9-4d2d-08db658c8afa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DnLJZQ3zVNATn9kuWitT8k3viQfEmGTcNJpZQVxhjsIWYFfe42I4tcee/3ECCOCBvMbl3kGuIxxQRNitcBIS545BEp7YM4X2p4Q30JGwpmp/6mZ0Car6m8/et7D8hNaS+gWz2CseQyoOV6mvW+jUrNIbycAkYKS0w7uISoGRb4YEX/6ZYIGzubqb2h+CLUC1j0Tmenf4zgm/jvxcymU5D9wsw9KauwvtdQ1kR5a8NH3dTMrS++mokx+yxbpIAAwIHe5OGLEyiX1scRLPJQsBUK7Gn8SuTYO3YSo2kRWwRaCkIxgGhcgoJt0USUXlXB3PiHFDdX1purtbBO0ZzdmPzT1U+p8/fZpL+EP0dYWmo9wkSkSBKBPsMAKrpJrhmzYz9twB1lw2FnmCwtjxdvGg2WlCDfSF7Nj0o8j6dumOKMpaYJMUjv0AGEXnBwhreI9J7YuANJ2g9r1T/rK0UE4y+0mjotpTf8vJjtVL+GjTGXhx4S2WcZxlZ+78TZKnV+MTbyyeKX4xTEKvGUsOVoZpYQe06ynYVcfj6rRNssjs08pMfsFAHwxOaZUdOXK+b8FAb9DHCoazfQzzJL+n4F/MnH0grm5zVVRh1MU4Ge5V8CVvOg3zyy1/wN9SAMpS7CbS 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:(13230028)(4636009)(366004)(346002)(39860400002)(136003)(376002)(396003)(451199021)(2616005)(26005)(6512007)(1076003)(6506007)(38100700002)(38350700002)(41300700001)(52116002)(6486002)(6666004)(186003)(478600001)(4326008)(66476007)(66556008)(316002)(66946007)(7416002)(8936002)(8676002)(5660300002)(2906002)(86362001)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?dmdCzpvsrfcKFJOWLKvQYJG43h7+BcPBwRKT55ThSDDH27q+tRE2ORWn+SRB?= =?us-ascii?Q?Muwcz4vfaL6Xjr/j4Xq6JMvqbs3p3RuBZs6okJD3mRPHGUoaEoflClnpQ1al?= =?us-ascii?Q?7VmUxvfNsXinZTADyT7SyI8/APbF0QIJ0DwwXNu4Gd6ugSqih47a4KSWIaXA?= =?us-ascii?Q?kt+rVzTaGwqeaNlzTbPi3YE6JLiXOxz7oGjvr6fpzpfFyGgTkG4SU2y16h/x?= =?us-ascii?Q?pZWxnZSBHEIGkjKbudqppRhzMiAW5MFSe0soZRyIBB+jEb72l/5jRYxsCZ5T?= =?us-ascii?Q?dTOZ5Idin7GbFv/F2ftM4XXNcS72nzQdDCRUhgkBhpKpqlXvqi7vS7XQP7je?= =?us-ascii?Q?xuZ2AcASK9U0uaD8OoShN8mY+oq0IpuEg5oPF1FgIYdNSSQTkREUxjFPcN1y?= =?us-ascii?Q?WlXvlCIIYWBnAKtImmXz6fQ9tKXUSRtGK5Z9qhvjV6ht4P4oKjjHc2Iv7Fv8?= =?us-ascii?Q?CqKiBE8l/SXxedz0fqg9usAWE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?Q?60xj4H9BCJbSiPO7xSNI0nki9gl3NC0wRUpa/7ufupcinV/DinOZo7nPF20b?= =?us-ascii?Q?32LE3sIqZRBJWsmNVZmavHue8dmdR+X+DFeFLJ+ODz7ve9Z9mYaWaOM3Xt5Y?= =?us-ascii?Q?b85quMpB0xV16VldT2phl10tbKRfnT+oPiNfvLv4iTDV9elk7Noq3eC5ULRY?= =?us-ascii?Q?SUDaIPkBRK7fFgCtH98Qfit1Nv73wvTRhUN5aaAE?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: efb8b8d9-6f05-44b9-4d2d-08db658c8afa X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB7041.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2023 06:17:30.7390 (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: b6VNe6witFUSpXruFgA8XB2Hw7OvbHQrxpRSATGAO8arqdstryXPkxM8nVR4WoDjpgcTJbZr894Km9hbVG5sVA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8545 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patch set aims to add NXP i.MX93 parallel display format configuration DRM bridge driver support. i.MX93 mediamix blk-ctrl contains one DISPLAY_MUX register which configures parallel display format by using the "PARALLEL_DISP_FORMAT" field. i.MX93 LCDIF display controller's parallel output connects with this piece of small logic to configure parallel display format. Patch 1/2 adds NXP i.MX93 parallel display format configuration subnode in i.MX93 mediamix blk-ctrl dt-binding. Patch 2/2 adds NXP i.MX93 parallel display format configuration DRM bridge driver support. v2->v3: * Define i.MX93 parallel display format configuration subnode in i.MX93 mediamix blk-ctrl dt-binding. (Rob) v1->v2: * Set *num_input_fmts to zero in case imx93_pdfc_bridge_atomic_get_input_bus_fmts() returns NULL in patch 2/2. * Replace .remove callback with .remove_new callback in imx93_pdfc_bridge_driver in patch 2/2. Liu Ying (2): dt-bindings: soc: imx93-media-blk-ctrl: Add PDFC subnode to schema and example drm/bridge: imx: Add i.MX93 parallel display format configuration support .../soc/imx/fsl,imx93-media-blk-ctrl.yaml | 68 ++++++ drivers/gpu/drm/bridge/imx/Kconfig | 8 + drivers/gpu/drm/bridge/imx/Makefile | 1 + drivers/gpu/drm/bridge/imx/imx93-pdfc.c | 209 ++++++++++++++++++ 4 files changed, 286 insertions(+) create mode 100644 drivers/gpu/drm/bridge/imx/imx93-pdfc.c -- 2.37.1