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: 13767740 Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012041.outbound.protection.outlook.com [52.101.66.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA97D1CA8D for ; Mon, 19 Aug 2024 02:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.66.41 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724035208; cv=fail; b=feMo8oKda2cNOkFK2fk6ZoA+mkMiIW4BB+nqwh9G85QXIsnTORn0KqSVp9rdNw34XgBmaONi6wufvmmYeLQHD8Irl0AV4NcADrwtRoslnHOpPRhwA01hTYAoigq2ENTehLZFMxobZOxWTaY+VbcGHaKbkZJs4UVovu7P0H17Y3s= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724035208; c=relaxed/simple; bh=SrT0YydWTRannoJc9Kidt9g3zu0CFdSd0xgJDn/ei2c=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=tX5L/5P6jSVCgUf1MqvtsbKWJyMSZ9Xw2e9W5qdhc3a21NuE6TaRc/Y1IrXLEgPCtJaRTeeUT2HlNNm1lfuVuAFEqipasnNpN2efzxCC5GJX92BmWVJ1YA2Z/SD9J4nlrZpTv6cn8/dnPaBnYphH69aaq7PvDnOiHsMVKVXnN/0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=NpYyzXPL; arc=fail smtp.client-ip=52.101.66.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="NpYyzXPL" 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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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+rlG5Cl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lj6iO3DfFRl/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 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