From patchwork Fri Aug 16 08:09:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13765670 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 83CDAC531DC for ; Fri, 16 Aug 2024 08:10:40 +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=qQ5nX+LAM3uhAJhyA6UlKk++zVokcdCUtTEfenGzDWQ=; b=tT2Ef1BoZphxkJLfSSoVhMgR+1 O553L9gBJeJcG1myJXyiO1k12ytG76h0hXqcG1R/LGxAeuGEfAiFmy9VQjNomSfMYPULo+go6cIvp 4t/Nkv+24dPPPEYkGlgEzlJwaaA4oKL49JFx7/MrhPCXzCOD7EcPI6QJ47/7tR3nWwrhIzG3XH2vh q8pPjrhI8r3mqm9ct+guyaFoWRUj0ZGiMIIFudOWAL5JViWjrsezTzZF6Pdu7GHKjtzU84wFMkbMA nvf+VVfakyTpYrjAGDJXYrPN8c13FmK0+oZ+eHN8jcFYqxfEKxKgxrfJaAca1xnc0OFq533ZDnkij eV0XHkaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ses2S-0000000CE8v-1rYP; Fri, 16 Aug 2024 08:10:24 +0000 Received: from mail-am7eur03on20601.outbound.protection.outlook.com ([2a01:111:f403:260e::601] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ses1l-0000000CDvd-3dNh for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 08:09:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jgJtcUFzGZ/Ta26QnpTCF5WOwf/H8TAVW88lZnneuDhL1fmzPizZIBbC9olo2PIEdd26BWbuAaqmh0jjnGwJaDLkc0lKkqc8xSSCBQYcjShR8DcWZZSVbPtIxOW0dJi2SwkbC8lBWlx6XqyyIDoRFcnT4mwOrckj8DyFXWE4JzEiBKxb4G4Jrr+CUiNVV7PxX1nrZBe+5qaZPbllxoa6Xh6oP2+eLtGSXWpymANdquF/efjOV8se+XjJY49VCup4SsFATvfEfNzJMP1o4FfDrVAaeMXK3xJRPH3lPDssFcj5FoZLmzNMU7T89Ht3WsRM3WCnCHGp0kt7LdtKUm4f3A== 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=qQ5nX+LAM3uhAJhyA6UlKk++zVokcdCUtTEfenGzDWQ=; b=rZn7rs2x/c4xQWH4UhIhKD2f65lzKyMvBxNQyksUJZc2jJqDTAH186cDR8YXrkxkyd75OWpycHpKvD7J3c8Ng0tNoFCJu5tcvtXHMOpXn3GSgG1h4FmD+4WnVMwUc8IwP4yPzsozmxq0iSAK2Cet71FMvxGzyxCrpyRzkF6Y2iJMug/uxoZyDIb+WTK/oifcrMmv1j5PDL65EEoEualjCgCroLi8Kh4sxV4WC0W0yIMy1uxMJ3xlo3nm2yoUq1m+/jU1Djvb1kYzK+EQBTYjxDRRekDuJvIqsJAUTBhP7b/5JWzMESDmMYFum2ucbmlbiSh9tt1EXn1DNtsUqgSq5w== 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=qQ5nX+LAM3uhAJhyA6UlKk++zVokcdCUtTEfenGzDWQ=; b=N8g6/NyYcaIWBf9oTA4nH6tBilbY8eMdLtEg5x77eUWFF0DW9oJxjugn+si4+zNRYa4Pdhbrp7Zuhg9P79a5pEfDGzafTCM7YEw4dmEwfLKgWJHTp2Fm9dMsx0GP9UMTGKHiWOHG6lXi2YEkMms3t3B4cMMkXrnqtMbUXr4HaLnIW0OSkd2n1aWPx5HsIwUdQsMYsxC2tgTJVRWTHUKDDpU0bJroHOAh/dOcJWyjydnu+QyTHA1RiaFImV+eIHeqVE4x7Pj+98zJBzLEwYcq+bjBBjITjV0jfa43jTGZY/KQ14K9rKT521Y2hqslBr9aBtR11DmpFv120nS5GWc8ag== 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 AM9PR04MB8508.eurprd04.prod.outlook.com (2603:10a6:20b:433::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.22; Fri, 16 Aug 2024 08:09:34 +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.018; Fri, 16 Aug 2024 08:09:33 +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 Subject: [PATCH v3 RESEND 0/2] drm/bridge: imx: Add i.MX93 parallel display format configuration support Date: Fri, 16 Aug 2024 16:09:31 +0800 Message-Id: <20240816080933.440594-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR01CA0035.apcprd01.prod.exchangelabs.com (2603:1096:4:192::13) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|AM9PR04MB8508:EE_ X-MS-Office365-Filtering-Correlation-Id: 2daf5875-1cdc-425d-aea7-08dcbdcac338 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|7416014|376014|52116014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: ZEhAJ9oTS9OggOed2Ig0qKTsHZHKzoYaP2evJb5G8Fp8EwCpy3oKlM1em+8+5NahMnl4bdIIXFW2W99azOz7B5rT+MHI8t9gAa2ZjfUg5pXbr7X4SmA5+aVTVMYdqAMPRqR6onBYJgQ+OF6JUmPMmTRRCGuOhH2cxJ7o8VH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Bcl0EcilRqjqDGm08r7wAXclnv77ZUmn7H7EEZcCHJ2dZJHrLLrd0CgH5SBk5rUavcAoXBZiRN8ilVuDp9TfiqnmpWmI62Q8wlysxNCmf4imR+os3wJdmnqXfpfYhJed3SmBYfVaCx1s4F2fH//ZpsyNb+YoLcIKD9v1fm6DJMFg== 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)(7416014)(376014)(52116014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tDkGvnvN1JWT9FPqjSCDxHlPZQIUjfoIyWZBHhDratzCA60/xzI70laMmTBYJ4gX3bYRfWkBn95ndgP4xh2hJMJLeW+U5/SGxacWGIdmZp//ZsyT0a8QxKz5rCdHB3N1vaatep3vWKd1obpqFuYozzY7vX062tZMRo76vHZPfEScyd+ExWBTxgOuTYHpjwh+R0aAbBlxji8gEgfSXe0VbBHrjDXyL+h8D7HtHZkcfYq2FF0HRlsxAS/SQEWatmevvjufNZnZVuomBF4lFZ0E9j2uuflTOGM1XbdOpeTfV6O0oLUw29hU1BVct6R0pPdpJM7N8a7mQ9o3UqjRJG86cy3flYjEj+ztXZtv/C+8jkJVdtz5QoX53r4ZctBJ2dpvF1eSIZKYx8oGqYRXDJBOVTpte5fEZwihl+kjiaXOWwQ3b2KcxXoxyJACRmnbrrZFzRum54cz/G4RZjnQiWsT5xZH3kmi+F6DcX4G7FvlvzQxZgSA3EOdw1bJGoLeo5dlrAspzmzWxHPQ9/UtrGtFPKYIk8DRvsi/msA3Ugv6HA2+yFjAGGd7VaA5geXLjECDUHLf07VBPh6Dr1Pjjy+mhyrasu6hL3/nYmtWW+amkiD/C0SU4jl1Gqe63bTn0hxi/5aQ6CMM1SfClbZeGfQktp7gIbBzG9oNPInj+JRjne2/3HSpLd/zNJu4CQVHI0CKjsVGu7EKIY+BoVQh5HK0tv6fuHOHjhZnt02HW5x7TTf0QXzvhwWGQI9j/Bg/wpBDaJd2huo4EHJ5rCz1AQFBeyoGq1Ryv/Z6jl+sO1VBWCkj/4sWCwBkxU0TTpkSUH5EWMk2aOvcA/UqmLatOBkH2u3pyN3IwsucuaKgjiqYRWxoNDD4tNi8F0Z4wz1gym3lQ7WFfFI6uyLAABATtHJQRwTa1GdY7jIuJ/XlXUtbbMkSKdd4SZGOD9YPW/GuF+aN/hrv0DFaMlgC9+1d1UGEwRrSK2jhKgTZCa1VU2+yQF+0qi6mqYUdDo9EBsVPy6kCXHgRhccZvaPdSRcxSVgOtbbsxHxEZmBUjnFhfVA0Vu8f4m15g1KPst2pt5dkRTdfpIqwfUhVmplrMfYDgZGliyw3DTh0y6VMzT4CH8a6np7HF2Ve3oP8NcScPkzr5WVN1vzvO+u8kRZBzVMkBgw2zZaPnEqORbzfeieQAKoVwFPnalN0v55ElT1fTK5XwTPv/c0f3QaB9xmsSDhFpL5E8YPJGquZVbblYr8+UzX4BH0H9HiCg4X3UIRlxuuJaVHs68bl0S1ubnrzbtbUU7xOmEjyB3hona119X3l8Ie59KAxEAbcfWNVMybp/XhD3Sb/O8iHjFTS98X7z9hzSE+wx03Yju8pCVfq/xIWLFTj063rxs6l13LFVlFPkDFCppx8Vsm90TQr6sAcQy+Pazi181fvxCl6GawU0tlC/6gF3yUP3gWBZWGJSSVD4spDKlU3mYIRq5w5U00gJgIFA0mZBShG0H/EDljZbxWHzYMYBoJB5usXvGd/RIogeOG/CEd481ZvgV5oMCiOtNVrJzfxlzcB9Yzr03MCUUyKR/XJAP1E7eCbe7J/iRds4Pz1jumt X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2daf5875-1cdc-425d-aea7-08dcbdcac338 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2024 08:09:33.8002 (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: 15rWqbW5No+1hPhOl6SETD8kBdQNcEMqr/vDqAdMxRV9BkC+Ie5LTul4iB523V5viCPoN0msnvdTvbgEMaIO5A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8508 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240816_010941_917749_F9F51E07 X-CRM114-Status: GOOD ( 10.47 ) 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. 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 | 209 ++++++++++++++++++ 4 files changed, 286 insertions(+) create mode 100644 drivers/gpu/drm/bridge/imx/imx93-pdfc.c