From patchwork Mon Aug 19 02:39:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13767743 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 93737C52D7C for ; Mon, 19 Aug 2024 02:41:03 +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:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=zEr2CU8a5fcXR5YEMr/axLT++IYP4/hEAnv0FxNp1PA=; b=reRCV2XKcGlPn0UlyNbwLnZw5W Ny7wwos97dEQZO1SVaBodhEPDMtKgAlyfd0y52FIzEc4thgEC/OakDEXXdX3YOFQas9QspeSJXIO2 VIDN+cu+64Z10qAy/i7WM3i95GhNvNa8hMfzKhFuObw7mz/nk6qWYJeLGF//gR4RfBkt+Op2TC5RH oGamyB1WER/DOfouBC+2Rg7oKykF/Xr6GL0rp13xXM70kxEeRyjkDhHf6DkpKx68PiChy2nvsblpp KzpOE3wBzlE2nmACEi/96hK56nPv0YYrhT1HI0GaW4TnQFLCVCPBC0tbPZJoEojgt6/wQaw+R75jZ 1GtBHHsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfsKB-0000000096W-04Xg; Mon, 19 Aug 2024 02:40:51 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfsJU-000000008ul-3Mvx for linux-arm-kernel@lists.infradead.org; Mon, 19 Aug 2024 02:40:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YkD7V0XK8BNu82SxOhO7fAgsqDXSBovM0d0ftc6xH7Br6vylZnWJwZOfdqFfSeGWpz1AbPvAYFNpVDKhcwZumM7a6OieLiuEDRnYJ788SxDhLdrFREjlC4UZ1jX1yKlsjRvXifNVuoG5QjYLMDvHEb/ecLa7mH7yKvQEwn2q8HbaY6O1PtumvZlHVNOdPCgw0wKpML4vMNelMdNYWC4/ONUN0lPRbzjNGQL4iEk7Vw2cKbp3Zs71aKYWa4pKp6FvvdFt78XIyTFjeLwffsVeN9mjzVGQnNgP9UAwTMx4dFnxzpw1yfcoz2dZ+Ls4Ljdmod3EPqyjua5NW//b9EdZyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=zEr2CU8a5fcXR5YEMr/axLT++IYP4/hEAnv0FxNp1PA=; b=l/fXjNottEkN8AXqkRk7P9Ivi2uolJxblaHF/BljWTMVMbtlnm4P+NUrkJBBTFZvlaIhgv04aAbT8L4vEruNZ1g6kLyrO8INdMX2ps6XuuXnwNQxtlmsqpxnhrf0F9cSEf2Eczh33bt2SpG32HgQ6EZK6D4YJAFHf1/KQdmGsecXBH1500z8CwqPqzCpkr8VSqgkSYtQbXxTYR75SrqshZiCNqEt9YlVZc7fmy4bcXP2uiGPfFXN3wH7CO03vHI07g4dP5l/5NLw/QH0ocQLASym0ZQp/Wf5/VCW6XP/TGdq0vb6oG6Q8XToHrBEWX4cyfIgp6UTvUwB2rgdq4rhHg== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zEr2CU8a5fcXR5YEMr/axLT++IYP4/hEAnv0FxNp1PA=; b=NpYyzXPLpKdXyBZRScrjxJKHdvgldYPKrCDFKHIWJypCo0PhbEL5tA1HNS9+gOjAo30eelCT0acah8k87j/a4EIlHx3iRqxStXm0s/dYuXhsRABwTRCe4Y05Tr6yKCMBoz3UcIJzFY76FzKIIpK0RvKhr6XgC5CjGuHOUgGpdGoAHgg1NlhoqmYVAWfUoVpuYxehYxFDbTXfIEHq0ofclS85T4dohojpRGoTwrzlZ3Tp/7rCt+ZcfCBY8eyeerZMJiG6Ns7W+3xhnDaPb7iV2TaegOqetHOxig8rPx9lgM2RvcSWZPHJ4fPq+YOjsy2NS2MH6AHCwkp/l33c0OGdgA== 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 DU2PR04MB8807.eurprd04.prod.outlook.com (2603:10a6:10:2e2::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Mon, 19 Aug 2024 02:40:03 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%2]) with mapi id 15.20.7875.019; Mon, 19 Aug 2024 02:40:03 +0000 From: Liu Ying To: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, victor.liu@nxp.com, andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, peng.fan@nxp.com, krzk@kernel.org Subject: [PATCH v4 0/2] drm/bridge: imx: Add i.MX93 parallel display format configuration support Date: Mon, 19 Aug 2024 10:39:59 +0800 Message-Id: <20240819024001.850065-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SG2P153CA0025.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::12) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DU2PR04MB8807:EE_ X-MS-Office365-Filtering-Correlation-Id: c241be51-8dff-48b9-a1c5-08dcbff83a22 X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|52116014|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: fc9IP2K9+pG4KN+FMvQjfiVZX9UuIOFz4J/fJsQBjS5uCPY4FrxQV+OTHWFbH9eXQaVsjHqkiSJCezz2QBt55Hp7TPa9tBVsDxn/pkDpdA4vxu7vxn/b0wHAbFUAl7AoC2F2/2cPyd88qAJh/06wLjXIv/yIF6hSIkUXq5BWv+rl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rXQxlj6iO3DfFRl/otxUB8TzGWBO+B1h+ftEH5Wd02Nx3XmPl0QC9O+TJWHr/69XDCRsAiO1eL8HZ0ejdrjN73BoasK9lKU9hdTI8N+9DoDK87Mo5M4JqJCyWukUe4nrX97mSYbgSvx4d5/5zwrTs7gIwseZHT1XWct5PhHbGYz1uUtPfJBuOwDZw== 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:(13230040)(376014)(1800799024)(52116014)(7416014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ppO8LbZbpZXYeh1KmCtxdjDbQjnnEOTLg4EyBfa7t/4gDqZDgxebj3XSEZTFqBmES7zcWBVrK4HDvJ4NbFTidGaIyPaCUQ7nsaaH6++cvo7kFBDsYW2LeHPews3NlVI1w8IPxzisr7tD1knfgpujcGbWyspvDLHDXz7F6lTIUacFKafGCfHShA4mizNwXyqemNZeZ1DxhgCKJEkw2JAJFCCiOaZkh3q2JV/ZbF+ce5sblojb++KqkLwyRZ5ChGXRm112B98N7cL1I/pE+tbMKU+UEO5G3+MB2VRdIL6OWrkSAKRKyKoYqVlHt5jhC0pWeNkQR8dVpdgo79sr5ALPzodTw1+CKz1edKmOdyrUtBGRIx3IOF6mHJB+SYNgbgGu4c3w43PMhCw07vXvAomriUuHObPUAmUYKGRbAE3hvlG+LNiI9Q4Wic4nWm8VExiviHFitUOmJpVkgeZo0Ot2Coy7n1lsslayoQ8RvOrWHAhYMeZAzhtr0pHjheqknOzrKJPJlsEE4NyvtBcK6Hl5uZK6iT3erC6srxNrwVfHTIIijyfvhJtvz+xx8NiyUx67F+k+VcoCbhhJeQ/v943lIGMCDBg+13zQDtyz/y73UlCy9kVZtYTmLKgY1q1ahThVbHHnM3x9QUrNAQUxECFmWBtvDau8oCAJVOQ7KQPUWnEQBaU6C8yYRF8hqr+y1/Py6xMD+6ir2uZuexQhXLBB7Uo45HqHu11JqiSA1sYNG2GPa1QAoc0GvEuz9j0DJvDD5N6OvSQLEPm+VJqMt0HzX0iIvoh8nH5GdLb2dT5OVgXqxAr89+TCUN8nPhd7YQONcoIP+jOa08gl2u5q+FMTK3gMnkw+mvIgyT+pFdiuNhAi94MkUkwaTGbEDGwb2N1wnBGIUp0ExSjzFnW4rCx0N/d4Edwqvn7IkNNYJeF8IRC2idEuNVOv+11315aXWwxoUk2vGKp56/IMsWbFs++1ZrKoSDufvHIKY26ojh6Ytz+XlC6S5+aQrnnwwCILOJHzpEQ7Kaerg/ifypNMGlClandK3J1n1Qi5XKtXExxW1kGQGhFVcyWfeiCM4y9xzapLrAYGYdaVxaKNmh2RbGR4NUnHNZ+OiYgldR/1ar6weer+8VYb3eYsS1q3D26BxLy4+5cyQnMwLojUPU+/+PT/AlGtBvhEQU+X/yYKePpzRk1OL1J8fgKW/SEQQ9+utXrn89TJpgTkcJ8HijHoBuebEszuT1XIKqDkESv90Xb2TdRWcXx2gNQz2uDBCwc8rfajBe3jgS254Ea7jXvUnzz5uq/y5hCQO0U6Y7KblY3sclRfQzGOqjLSMQ5An3LersyUWLwr+JbQe1kYiofvypMMzfDYQkBWNxOMYh5iB3PrIqenOFbv+MRyEvF7TgKhR9V37eAUw5/E7jicFUn1H3d1IfqDsDGWx9ybJhw1zBAhRzc/jd9LsxRyhrAq1/7qHJ6cBTYCV2Ba4126yX77W3zXEwu6B6Dq81rfFq+1t5tNhl8/PrfnspFgv03AuVVqLjgpk82KryIvMK3delKyx3gY0PtfNjSHne7z2YkR0CMif3qo/ZddOzec4HbAjIq1DADk X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c241be51-8dff-48b9-a1c5-08dcbff83a22 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Aug 2024 02:40:03.0610 (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: p1CV+tOHsErDQfAf97lhDq0QZVvlC3nN0M7hUV0zeb5+uODTf8n90YbiGP1DOpzQ2qEybwrJJUjAEZU5Bp5rcQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8807 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240818_194008_872261_5506B0CF X-CRM114-Status: GOOD ( 11.12 ) 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 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. v3->v4: * Use dev_err_probe() in imx93_pdfc_bridge_probe() in patch 2/2. (Krzysztof) * Drop MODULE_ALIAS() in patch 2/2. (Krzysztof) * Update year of Copyright in patch 2/2. v2->v3: * Define i.MX93 parallel display format configuration subnode in i.MX93 mediamix blk-ctrl dt-binding. (Rob) * Resend with Conor's R-b tag on patch 1/2 and with the patch set rebased upon v6.11-rc1. 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 | 199 ++++++++++++++++++ 4 files changed, 276 insertions(+) create mode 100644 drivers/gpu/drm/bridge/imx/imx93-pdfc.c