From patchwork Mon Jun 5 06:22:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13266949 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 4401FC7EE2A for ; Mon, 5 Jun 2023 06:17:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 874A110E083; Mon, 5 Jun 2023 06:17:35 +0000 (UTC) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2082.outbound.protection.outlook.com [40.107.21.82]) by gabe.freedesktop.org (Postfix) with ESMTPS id 039D410E083 for ; Mon, 5 Jun 2023 06:17:33 +0000 (UTC) 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 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 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: dmdCzpvsrfcKFJOWLKvQYJG43h7+BcPBwRKT55ThSDDH27q+tRE2ORWn+SRBMuwcz4vfaL6Xjr/j4Xq6JMvqbs3p3RuBZs6okJD3mRPHGUoaEoflClnpQ1al7VmUxvfNsXinZTADyT7SyI8/APbF0QIJ0DwwXNu4Gd6ugSqih47a4KSWIaXAkt+rVzTaGwqeaNlzTbPi3YE6JLiXOxz7oGjvr6fpzpfFyGgTkG4SU2y16h/xpZWxnZSBHEIGkjKbudqppRhzMiAW5MFSe0soZRyIBB+jEb72l/5jRYxsCZ5TdTOZ5Idin7GbFv/F2ftM4XXNcS72nzQdDCRUhgkBhpKpqlXvqi7vS7XQP7jexuZ2AcASK9U0uaD8OoShN8mY+oq0IpuEg5oPF1FgIYdNSSQTkREUxjFPcN1yWlXv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xt5Yb85quMpB0xV16VldT2phl10tbKRfnT+oPiNfvLv4iTDV9elk7Noq3eC5ULRYSUDaIPkBRK7fFgCtH98Qfit1Nv73wvTRhUN5aaAE 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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marex@denx.de, neil.armstrong@linaro.org, conor+dt@kernel.org, rfoss@kernel.org, krzysztof.kozlowski+dt@linaro.org, jonas@kwiboo.se, s.hauer@pengutronix.de, peng.fan@nxp.com, jernej.skrabec@gmail.com, andrzej.hajda@intel.com, robh+dt@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, shawnguo@kernel.org, Laurent.pinchart@ideasonboard.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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