From patchwork Fri Oct 18 06:48:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13841268 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 8270ED3C550 for ; Fri, 18 Oct 2024 06:48:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE36D10E899; Fri, 18 Oct 2024 06:48:10 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="oDobPQYP"; dkim-atps=neutral Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2050.outbound.protection.outlook.com [40.107.104.50]) by gabe.freedesktop.org (Postfix) with ESMTPS id EFB5F10E899 for ; Fri, 18 Oct 2024 06:48:08 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Z9c9fV91Ln66V9grJqrNO56OHRRdf9eYvjqEwsLf1tWkpnROgA1CiGQlXUBsPrj/0E4V9K7I9UkgMCgR/LEDq84E+iHBaDLlf81Sf80OSMYvG3SGjhvJ5WSS/GLvk41Zw8O6D8YuON9Smgjz5GNylkzLfBLsLcMCfTOcTRgYsSowmR9Unf8/Fvc+fuYSRmPA6egBCJtojiiNKimiwejc+82wmk0SaTgvUOLSsx271MnPgagrEqknOhtjsVuHIyQq94QmClTnz4WXlLX7oBIgj1VXVGkB2TUTDiKZh2YDZvcJZCGwb4xF6Gjgtaj/tH83zfDi3XHTmwsn+l3IhNLInQ== 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=FRYkO4XeuT3rwCKNhLiGWIQ7+KUTZeQsYmB0Pgck8H4=; b=aMCNyUENoBiBZNbQAWeSK3GAjSvGv24x3+5CTytIcs1aBRRv4+eK4RUAtnyqeZ+3ng2UdQ3XSCqAEEp3olBNvy56KMkdjUJ/fP7Q6XAekhGCSwdbnkwUx1CKfUdL8S/Wg8+GWS2K7Wc4vH6pznWwNgULWaa3yjUIZty0Tfc2C9SnWOeolJTxJRM/08/JO+ACyglwWGGuahZau+k9/ddTCIm2ZWQChvxAK5ySn+ZXXVHbSPj5QgKlqDVhfos+7WimWWQxpuk9nGQruaOrDFlbFwpCbJQuKRfnwL58PqMA4DvqrjUT1rARgEPL2aUcSAdf3jl9qm+vwJGYEtxp6xru+A== 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=FRYkO4XeuT3rwCKNhLiGWIQ7+KUTZeQsYmB0Pgck8H4=; b=oDobPQYPvdWyB6vRzGhDw8Wi8ID6qDN97VQ3PPKkRJRRh9rUqvU5m/YCVBpmF8tgvq2yBpuCz4zu4OJ4t+kUCe3bRnfn6agBBw09QBgEHI9lt6jxjL86RlZbTOfxxW94h0E1ywJNW2fLqj5vhYyfNeIHk5UVv3ARMhvvbLiB1c34RaU8FGDFrmrYcgnYF9qsvwPjSBp6xxas2MEeUeFNDJSMEO6NzKsAXsFR70YAa6G/dC0tz+ntJZt47rJzF0FYQ2HFcW/nRPCUYecmXX+hvjjecnmq/TJE5cPs/Pyik9pPnJYK0M4HN5ONl4X6qGF6mIDgOCMI1Re0hI94hhMQXg== 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 VI1PR04MB9787.eurprd04.prod.outlook.com (2603:10a6:800:1d8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Fri, 18 Oct 2024 06:48:05 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%4]) with mapi id 15.20.8069.020; Fri, 18 Oct 2024 06:48:05 +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, 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, simona@ffwll.ch, marex@denx.de, stefan@agner.ch, dmitry.baryshkov@linaro.org Subject: [PATCH 1/5] arm64: dts: imx8mp-kontron-bl-osm-s: Add HDMI connector Date: Fri, 18 Oct 2024 14:48:09 +0800 Message-Id: <20241018064813.2750016-2-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241018064813.2750016-1-victor.liu@nxp.com> References: <20241018064813.2750016-1-victor.liu@nxp.com> X-ClientProxiedBy: SG2PR04CA0204.apcprd04.prod.outlook.com (2603:1096:4:187::16) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|VI1PR04MB9787:EE_ X-MS-Office365-Filtering-Correlation-Id: 730764db-8a2a-4207-278d-08dcef40d1be 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|7416014|366016|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: MOdHxs/jmgUZdu7Pe1aVgO0aXHGQu3QnseEnO+zRMtSwfOE49CGssiA0+sLBi5HDRIjl0lIIG2tAUh/nbDkVNH7Gr9BVABi0VdXDo2YZcQ2jygPqH+h7MNw3IhzXed3GuLCK3K3ObK69Zt/Epv782IxnrBAlprx/vCqOUdBKSUASHZw1om3sRKC/A8hcILbnbwqlf47+bTB0Xi31DrDuG3hFdZdK0aZe2KoEPkdYYSZSnTQZ+FGTkSTmpnYKI5ygxHBcUdke9OENwOi+FSsF38gvfvOUzEA5wHs9wjWHfv+rQfW87059Gv6bD78cuVb6fD0nRF0q5qu9zZ5BPE56mfZbwYj9UI6MfYsZfKqwtYsrbHcBtQUn48I7LS4nb/LtkUCgTbxtfDuZplWtfdqEeQDq4ItZJOxRZGndAWnOtY0FY/HSqpXXDFHDB2gS+2+fAhwAhvmapcmcESU+Mg0ChLpglaIlefBAZYMoY0LQ5XvNAk/F3tZXHKKu5xMIEd3oXgFb1XaTk3IVE6YY5yAYBkDfHCcCUEaQNuu3e9T/JqGDXY3SeRfOmV39NtZbfUfzxzju1Jl2tKP/nPr4F5f33EfrZCGvDykrRyG0M32ZYd1hRy75vLOaNQAbbkgl5XGVB2Ug4PKfCple4VcR80n95VYW59JB21FpSzCLb67zQBAMUq4PKn+Ua4RlGrndlJI3zYeqMl1QbFH+S9NRu5EW3Y9Fey/CTepGLTHVj3NMsnEhkgGbwUW9uwwJn1EIQUuFF1Yz6ppbhzXlpDdR7ijnv2vpoCvsbi2qFRRNrGmEIatGk7typcy9mkR51j2qugkoykxWj6HLCnrodcdqJoFLTTErI0ohRPUPaREvSleXsOsYht4cyIHmVn2/W3u45Dvfs8oiHct42io3epKYxdHs8vWfM0wN76LMYQ1zB/jCeKou/Gu/hhf+k8Wjp4VTAZ8uk809G+RjZnsOBoeRUEsjIV9Va4GhKk8PQt+CEchDfXR61pzKaRS/A8WvQPi6jwzQiF4dG0Ibmdh7mru4lVBmI+nm29LD6t5pvDjmuEdmdjc/KL8nQhZz6DltIcAvqoShnDPyjcBU55LsgzrboNfnk3ByLqJPorJ6hse4YE/uQAqlqy0MUcRGEK3rd9kr2THEJ+hFLfrRlwHoPJmZZGEzskszV2DRcO0Vpyyyua44znLCC+V3MVcuXYHrdR2Vt64JhI719jViXjpNYWqjTZC6qDS8jK/K1ZXW4x28ZiwiCPwNnueuoh64cFbaNxKl7jtOr8f9hHGjQNciGvEGf1ChYZ6GaabVxkMEpFfc4TMiAsM9MpfY9ZmMdesy+CHpZ31Qlp1fmQSovYizgEwBNWFjNPrCsDY7MGGzQ3RlD2mK8Q0= 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)(7416014)(366016)(1800799024)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: INk1cOJ3Nf5w5iIWWH0pe35RY5usDkYiLAou0AyWJJJYilozbmpU1kqUFInQZWt044R3xfUQy5a8bhwtjpWZKkGQg8Eq2zBWCcdtj6mHr1iK2w8a5g/aM+zVvbBIJxsKB5WvRP4PhDcoLtAov3db1PDxODIvdxOI/hkAaGhfG7NsZIIvJScduapP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hI9orZ4QzKG478vMIAPbCistkvzRf0uOObC6ThFplt1dUzZcAIR4jQuyz0cfKq6YTS65W6ZHtwy+zORJ+Yblh5cnKFyBhP5ugDbMzUEYUut6EGfKUWL0rwbgZMSPJ8pKmciuRSgZykiRKcWvECzaDzB9QnxxWzxp2jQm+cXZi8sohD4dQO++oGHChiBPEz2H77S5Xec/S/6Z1jQ6URWD7WEx7dUMVfzpivsaOhTqbHdqKUgG5eG3XoIUUbuYMQKFsxhzIKxjXgHAA60/0qGRzC09jslb4i8XUhKSregJjinizvmUmd9oQOEGdAFc5YD3pVSb8ofDNcQ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 730764db-8a2a-4207-278d-08dcef40d1be X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2024 06:48:05.8758 (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: vtkYRw30Lj956rkvrV3A4Wm6aegexvTLf+4wQWcDlh4mWvZC/+ZlDlm0qpppvWIY5EoDVcnqzLkmJHFjxTIuQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9787 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add a HDMI connector to connect with i.MX8MP HDMI TX output. This is a preparation for making the i.MX8MP LCDIF driver use drm_bridge_connector which requires the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag. With that flag, the DW HDMI bridge core driver would try to attach the next bridge which is the HDMI connector. Signed-off-by: Liu Ying Reviewed-by: Alexander Stein --- .../dts/freescale/imx8mp-kontron-bl-osm-s.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts b/arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts index 0eb9e726a9b8..445bf5a46c6a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts @@ -23,6 +23,17 @@ extcon_usbc: usbc { id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; }; + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_in: endpoint { + remote-endpoint = <&hdmi_tx_out>; + }; + }; + }; + leds { compatible = "gpio-leds"; @@ -168,6 +179,14 @@ &hdmi_tx { pinctrl-0 = <&pinctrl_hdmi>; ddc-i2c-bus = <&i2c2>; status = "okay"; + + ports { + port@1 { + hdmi_tx_out: endpoint { + remote-endpoint = <&hdmi_in>; + }; + }; + }; }; &hdmi_tx_phy { From patchwork Fri Oct 18 06:48:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13841269 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 EA711D3C551 for ; Fri, 18 Oct 2024 06:48:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6BAB710E89D; Fri, 18 Oct 2024 06:48:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="YvxLUlp4"; dkim-atps=neutral Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2047.outbound.protection.outlook.com [40.107.241.47]) by gabe.freedesktop.org (Postfix) with ESMTPS id AE62F10E89D for ; Fri, 18 Oct 2024 06:48:16 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aQBFvPu47AZifUWKUM72qzRb79aJ/CjwHkZKjRvyOaUPQSm6ajOt89GAwrjvf61Me4LuNF8MNiQ5lBNLLT35fda3ctR38Eug/UNEy0R1kYuyzGFeFAMWlN7nuFEej9mNzDfuG49vDQlWU9tEelqKE6+wjey/7BkmDWKsOwxbJf1RfMakpokwHdUTsicb5kXHUb2xlxcNdJVsy//8bjS5HLNfHNiMfthiBfQSBn29pcMrX7CU44ZdACnFxM6wudYKhBjHCXcXg4XQFAjSxIFrH+DGsPRi5zK02qcSMtt1lTqqZu6teSs9mDZ36ADgxuCR2MwAnEUmrUZ0pJ2wsyBEiw== 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=oWnw69pJ0GDn19WSXkNgUc8LYyVFhZuLTgU+xiN5Wjg=; b=YkciaEG3CgvLfuuX5vXReYIg3KFM6BqHTtLts3RmnReO/LfOabzOD+1FW7n9jKsJwL5EXeW9oDXT2soTJAD5Zw4i7NKUWpVdzfwq9ZWGi53OZcchlCR8JwMTtzowKSMNtduzfPy8Wz9MlRlcaf2ti+wcKXJ9PEVWGaRMWUMKrUWC2/FE3JPHUN7cRDghhNt6Tc6Suh91KJur61nEIcj51a3Megsz0YNhlEFbT89gzEKHSEUluX3QUCZt/9BEf2lpCtn/AlB13VGznnXDdYU7ogdiyWoG0p5AOXywdFazOd/cPssOfLy1Ov3OnFF+WsxoC7qMLQB6eheqU0toENvu/A== 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=oWnw69pJ0GDn19WSXkNgUc8LYyVFhZuLTgU+xiN5Wjg=; b=YvxLUlp4O0qVKlXGmxMQm/pxN4xA30vhmGEi9TY/kJYMYk+Hp56ogw7ct2pv6EvsTQfdnmcoBm8s6dEz22GMLu7Ren7mxaPXHMcnKN+ekeB0+WxTNUf3IhR95p1attG/+TRbOtq+HB7iMLD2TNHn3KMDvL2t/Sxk6MzsxhDe495ibjQe/CHrtDpdYo+oE/eUzyjzI9kG1+ji644v/Y4kPeKBe53JhFhIGCpRKtU6yx/2paT0sZyiBWvl5AMUmbNoCLfy0IzegwFEIJ0rVdybjWVRatYJ3etiCea+HaZJai0M6mMGKl6JeqwQNs7Hoyx2fANPmwc02+k6FzsyJaS4JQ== 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 VI1PR04MB9787.eurprd04.prod.outlook.com (2603:10a6:800:1d8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Fri, 18 Oct 2024 06:48:13 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%4]) with mapi id 15.20.8069.020; Fri, 18 Oct 2024 06:48:13 +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, 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, simona@ffwll.ch, marex@denx.de, stefan@agner.ch, dmitry.baryshkov@linaro.org Subject: [PATCH 2/5] arm64: dts: imx8mp-kontron-smarc-eval-carrier: Add HDMI connector Date: Fri, 18 Oct 2024 14:48:10 +0800 Message-Id: <20241018064813.2750016-3-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241018064813.2750016-1-victor.liu@nxp.com> References: <20241018064813.2750016-1-victor.liu@nxp.com> X-ClientProxiedBy: SG2PR04CA0204.apcprd04.prod.outlook.com (2603:1096:4:187::16) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|VI1PR04MB9787:EE_ X-MS-Office365-Filtering-Correlation-Id: 96199735-7923-4814-00bf-08dcef40d60a 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|7416014|366016|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: XRJL2n7EAOTUUsVqfcTlEmo9QjOEDGJenojMX8Gj7mAb8TubIYdF+9p0tehgE68dIC0B2RGqjW7Ya7PyUuUVtNbbmiFE5t9+6+clirNQVhi07lem3QzeGAr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kOzj1vIO4inxVrpv9NXtBwzWZ2JWOw4CNyLIcjApc+Tvg9s1xS8SHknCudookd/CSnf95BE/8cMSwlj2HGyzPtUoqOoWCcaT2U1D3DQDYU9DzaVscSGjKV3ribf6lYRayfjioZy4H+jtgQzynYRmEMdyfuEXx9x+dMBp6YGr5/bYJK3JTqN8Y+06UXJEBzFvAb7Os= 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)(7416014)(366016)(1800799024)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2YJh3tejL09Z/m3gIYgYh+bLQ0LrbKsPK0Gs8J45unu5YjCXk9jWc/nr0m9AfF2YFI2IuTJGyM0wOZY2ac9XToXeGF2WbcRfSRZHD6FsiekeX7Ps4kvfiOQLI727aDZkvfqhn9SgUgnwKFoIAHiy4TwrmXnV3iHp1yhxCo3M2bVuvFl7oDXroLXELHwfDzt6ceUaSwRciUT2kcNnucTo7jEMtT6/k96VI8xA3UKQqgcofwNtjGnCqQYLk/JgslNwYFEQHBPQOU5CxkvsH67P0Anqlgm4yPH8pNtYtwuqQZeMIBPwjfZlqR2K5SLz6XJvPiJULkW8a2oBXQxoWFBCmUeCJ3UbvnfFKv0+laU1fpROKhkm61hN2YrYoGwJ4RlgGh6XV04whns7D9S4sgtiOJ+MsXb5iEhkswbbSYONWYY9r04M3k/yhXsOhVRs85VE3SvWe6/GWsgDJ7hwU/v1l2iaU9qUdQx+sjkA3Rn39InJ4egjyu2VDi0XKRvEr7aOcuO8Mxcyivx7Oqklb7DhgZD4OTZBrY1FWYelSG28k8z2zf0AiA0uwm37AmQvlW9ID8blPQxRgZczRLZ4ifqe5Wsc/hzdEPJ8jYkN11UYpAc3neygWkn4D4gc0Cfm7MzdjQOH0C/Gzd+gx+65Oew/D4GVcu+SOM22NPiwyUQCOVyHTqcEmR8tQVy1sw1Dyhiyk6uIWZ4ANB28vMCyYY6Ay6kGWM2jGl515P8NIydyo8+ezqB0OnitPrZ6owqq3cEdnacNbDG+16ZXDVxTrZfJWwoReJPOXW+xxcGrW00Khd8FRbXMaJ3hbXV3vFPJl6Mq4PPyJlMzVDaqtxU4jEPDfB/LqHXoYo6SdxJ3qpO4vq0pjscfGn2Y17IlMyIyFGaVgcBFhVs4qYs+a+Jn1wYv7OxdE62zc4FKt41aw7KbvXV4jXYgqr5bCjTpPz7kM0JM83zmzrswmWdtsivYL2w2wfVkvvfbcogFRHPjyL54svh5cRhLSYzISnrDM9blI1C/AdUtkKnZesZv/t6fVm9/iFHarwsUMpL0DPChgAWPz9zpWUnTjIjUfzM1TrnI7qIr2fXSAQ2ywe+CEFzTiKzOMMfxY20X6lXkmMyyd1phuEed2V+6dKcIoWzj3EpNyXSdCfIC8ViSAjujMRPdhLXNbAocXyktgUoe8i82ENeDBBCTjK8UVPWAX9vEJXUz2pDO+bXT9JSWc6fCHlMge3rx38b7DL3oS0HY2xuV5TT727WrnNxlVogbDGjZI1pez68e/i3d1zby/DKDu/MK2zfxR5PLYkUQbObtukT1lHTXA0B2ctlleWHtMYeYKkDIWtFjMOA/a4Tr3JKc8mR3nzUFf+5fcWIY+Egm1w8zEab8CR487EnbGq9FIBdKbMEFUizUSlS6M9sC2Eh6BLvPogFkHKpAcfELjZE9nfHaMQ3ImYgcxVkJFOsLGpKFOKdTuDCzL8dKd8q2f2dw1taGS8bbNQzCcUxpaulW5EBmAFEIQ5rnigUwpnSpgLQASANyFjRptKsIJ1wzNK0Vsym12MoiVDCVJ8cH0W0ExKXYYeHiBP6br3m7pGSyZYhH7VZySAt+ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96199735-7923-4814-00bf-08dcef40d60a X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2024 06:48:12.9526 (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: 0+GBaKT3B8hse/hOq0dD1Vee87uVwMw5hdbHXmJCB4cHq+Y1mL9Cml9uIoD1lyvjW85A2lKyrueKmRAvD45VAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9787 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add a HDMI connector to connect with i.MX8MP HDMI TX output. This is a preparation for making the i.MX8MP LCDIF driver use drm_bridge_connector which requires the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag. With that flag, the DW HDMI bridge core driver would try to attach the next bridge which is the HDMI connector. Signed-off-by: Liu Ying Reviewed-by: Alexander Stein --- .../imx8mp-kontron-smarc-eval-carrier.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dts b/arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dts index 2173a36ff691..815f313a2d33 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-kontron-smarc-eval-carrier.dts @@ -29,6 +29,17 @@ extcon_usbc: usbc { id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; }; + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_in: endpoint { + remote-endpoint = <&hdmi_tx_out>; + }; + }; + }; + sound { compatible = "simple-audio-card"; simple-audio-card,bitclock-master = <&codec_dai>; @@ -108,6 +119,14 @@ &hdmi_tx { pinctrl-0 = <&pinctrl_hdmi>; ddc-i2c-bus = <&i2c3>; status = "okay"; + + ports { + port@1 { + hdmi_tx_out: endpoint { + remote-endpoint = <&hdmi_in>; + }; + }; + }; }; &hdmi_tx_phy { From patchwork Fri Oct 18 06:48:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13841270 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 EF341D3C550 for ; Fri, 18 Oct 2024 06:48:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 72E4310E89E; Fri, 18 Oct 2024 06:48:24 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="Yals7A6q"; dkim-atps=neutral Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2076.outbound.protection.outlook.com [40.107.241.76]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2554110E89E for ; Fri, 18 Oct 2024 06:48:23 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Jm/cP8OlLeszRDKGkISguUHN70/QwZUwxNLJ+ykXHwmybWV3LAR2nAU70slCmX/EyMgyeQPrJ3cEETKhJhmR5fyKupKOGXe/pfd3GHkxjbiV7oUb6VRSNulNMGOLDYn1q2e64GVYi15qAmi/lRq3wcWcCGaecepRFeeKchUUZs9mFo4h5sGeNjZX1iKTfHzfCvlCfEdtgHL761iCPZomO4OwzKmsrYvkuy11/YxrPIeWOkzR8igrSPrje1xDbdQc9fOE2D1dBvV22dLHuKkbmP3TrZTqHEj6V9CqHOEIOP2BidcqLm9tqGY4nBmnzAUmBVbjwbwJhGn0tDnfuqv/Ig== 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=Bpbtb0VMf5WoGkQelwI9N+g0tNZACnnCkXDW8hyGLPI=; b=RRTkh3jvD7B1BK1UYaX7w6ZFvnzYHQB0AB2FP8/WzWQlJOMrrnlF1vb99B781s6a4eUK8jJG4zOMZNauLcsBOiWv+yn5JepC9b80kO9ZtN8yQdvy6wAs8TTmqGGPQv5BS4uy8yT9+g5Jr8EhavztP90JPUI0EPygFOV9e5WhTnLYcfIfAkZWy1X+L3PYFm2BCvyCvFJN++sRIrU6ZmvMod2t4pdZ5Z9Ii1wfIk0oUEsGlv9YvJayPYRnX3aA4XPjIj/md729iXS8jD3aUxGF8jtsF+YdjBbwbra4TgnSyt3SskpwEH8cNuC4r7Xnsc3vKUFLPCP68c+6DEGS80aBmw== 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=Bpbtb0VMf5WoGkQelwI9N+g0tNZACnnCkXDW8hyGLPI=; b=Yals7A6qUoVsXR/Y7C3XDXXS1SOvt+EwGPKtSpf5xMutJYVYD54uQzGEm2k7V4rjb8GkWK4j04M7wD1Mq497QJNU5v/pq6rv4FsyIqBTQImSCiwbvpCKTN632kpVDjCLjD0ute0krf/0A3UlH9NAbgKbjfmz7pO3SOUuZjlGwES1Tm0N9G177RVjXOIYOcGaavp3Yrn3T1cOUpJn5E9jh4kUNw8BEgvg0mR3a6IRUrKd5N9CxsNHQVDkw4HRftuiPwBbPxPpZHRgzgI5ijHeY9+eIvh1kbeeb+yA1XFzehz6/NcZjiMC4QiTr0w87/Dc9nixmNJQPSzZSAxlfzLaLg== 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 VI1PR04MB9787.eurprd04.prod.outlook.com (2603:10a6:800:1d8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Fri, 18 Oct 2024 06:48:20 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%4]) with mapi id 15.20.8069.020; Fri, 18 Oct 2024 06:48:20 +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, 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, simona@ffwll.ch, marex@denx.de, stefan@agner.ch, dmitry.baryshkov@linaro.org Subject: [PATCH 3/5] arm64: dts: imx8mp-msc-sm2s-ep1: Add HDMI connector Date: Fri, 18 Oct 2024 14:48:11 +0800 Message-Id: <20241018064813.2750016-4-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241018064813.2750016-1-victor.liu@nxp.com> References: <20241018064813.2750016-1-victor.liu@nxp.com> X-ClientProxiedBy: SG2PR04CA0204.apcprd04.prod.outlook.com (2603:1096:4:187::16) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|VI1PR04MB9787:EE_ X-MS-Office365-Filtering-Correlation-Id: 8c37aa7e-1595-40b3-6320-08dcef40da71 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|7416014|366016|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: DC+hjYyypfc8mn8WUcZ3YZ5H9A5uUTn5P0bK9dunaBFkaAWMogllYAUC305YxdV7eF+MG9DayCtdFtYDIMxv1Dh8kfO4qtF9R4Vw372yVPLk9cK6Iz6jIptTRbcmWo/B7qHrCzKzKUGnMDxs6SNs8uF54Mw0HRXKrdS6LmbBHv82SpiU1OwYq0B8vH+/Xl9hEsZ4T19cbZsOFx43yPOriH7EfBAZ2srpJevCkzd08Ilw/peZ2vgVMXUocP4B+Ok6xgJBUgJNvksr0l/KgtghtBraAahDFGkxY5R+3nrARdH4jXwsdF/ug1GJki93+0G5vMCWGNd+T44ziC3/cbo+9cJuB8/hKuQm9x8XLOYe6luiYKSxSr9WtQcpqON2ltIKWOhhm4gyKmU4gzzM+WynADxN0fuamTQiMIEFVxW/JsSr3wM/x+DBykPL5LU01x28WZWKMPlzufpAK1bIjyhSsgU1uCCryNj27pQK9Va8BNXVMZiyyt4Ud2/KeDijrREsFby+FfzlKNZ9cHsKVaBMNqAScX5A+zAZV7yPW///WNrCKg36DXxxRhbO7yDrbA9NPY8EuofMFjdkjkgsyRumgG2NEPM5Lp1SVoZKBT2BVIBRTNp5RuSJc/6LY5gfQ6ZgCrNJ0QsC4B709STPgEMOuXz/KBQL5WXhsCSx8hp7m3QYQkw+eR0Oz9G0AF1MytybhLRdmnWzLSRQKpVrAmyS9js9q7PoKlw88CH0KqEfeHSwah/1zOsUOY6huAZAeA2avtKzN/BEXnCFOOwnyL4ICAf9TQkmF6QdkaIQ5ACaUmfn20QFnYdKIAO3EwvLo4H/0J5+GYl5dOk6yF+AfGKW1VC5pizTqNlhwFtWPA12rHy+wb91/zhHDKIpH/C7L5W1aBmkeGBlXNx0GX5ZIV/KvPRqYHiLe1NR9VpoW2UekB/2Wryl9QsViwIPHL2G5OaCgvjkV/7Ik+2jRn9sQTnDBNxjLPEfAMt+moXBskVGlar6E2XuEbBr3lhI5mDX3GA70lSBZ3vOBy8JVfCgelwLnJKe3zt+y/0Pp3hAGX9GViCMz5iGSIPT0hGms0zFisYDuT+2oMQQ6gk5xrGlTY7R0t4Icm4IElxlBBXFSi3y29l3m8lB7/+uMZdn3b4avs8emV+W2SRVbFQFff4PiM6dupaxxr9iX+bCkbiLHHZmze/rI8m2QtVlCxp5R+O/WpgbK8TaN1/M6Ye8UZAlJct8j5e8SjNXuKVb4L7kQkSNn/kamwz22Y4USPg8AzCh5DxxMb3MMbMzgpwc3uZv0Vx6hE5DmYpMRyMWP8k/jqYIr/qWwIOIwUtypDAoMWpgAnfLPCm8wj6AHInvdlpN0KEgao2Rpg5Adtp5NHmF3cABqWk= 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)(7416014)(366016)(1800799024)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 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pawM3wfUNoef4qc0eseaV1MnbfXpegH6Q4FT+A1Zpc6sgIhyINnaNfbyA1lQJS0UgD7nkfcrHoG2lKQHq7g/gyQjSRa2G+UIg9lqr7rk5S3jHXuotCu8RySdSPw6OVlTBJ9aU6+Q9smEUXJzvFthYLfThcJyOFx3oamaRsTBY8WxVzkQ/uwU56vX3mh9aIOlZ15905EsrX1FbD03isr76Gu9vt8CLWP03emUsEarK0dVVuK1ti6GXimGlb8YdZXaHJwNt7GGYD27jksIjLTZehTyGVxK5j2Eh9LlMakLwyyHv31Boo2l1uw/wpVy92+wO9sF2Tu9rBkbUmZJeGZCagUgVkOHhqNwfXL/PrsCWfBWHkVkVoMyvpkT23eOviqA/nTrt6vD4ARIKz7KaMtcA8KNjJTdefekYUZaEtlW7NToVydXlJKXinTeKOsEDPCQ1C1B5ntYW3m88RUVC+z+pkU+upnFgeoMLksCdfpenXDibyXEOReTgQTelvVvZ4usiaglrbwvLEtX6jQZMqp0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c37aa7e-1595-40b3-6320-08dcef40da71 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2024 06:48:20.3437 (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: d0hwBtbOFm/rkGMtLORMyc3yqUpUPIH06ZGnok9LAi+otznTTeH+ece35yLTqmJCnfey0xeOVaKAeUQeb+zCkg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9787 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add a HDMI connector to connect with i.MX8MP HDMI TX output. This is a preparation for making the i.MX8MP LCDIF driver use drm_bridge_connector which requires the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag. With that flag, the DW HDMI bridge core driver would try to attach the next bridge which is the HDMI connector. Signed-off-by: Liu Ying Reviewed-by: Alexander Stein --- .../dts/freescale/imx8mp-msc-sm2s-ep1.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s-ep1.dts b/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s-ep1.dts index 83194ea7cb81..b776646a258a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s-ep1.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s-ep1.dts @@ -15,6 +15,17 @@ / { "avnet,sm2s-imx8mp-14N0600E", "avnet,sm2s-imx8mp", "fsl,imx8mp"; + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_in: endpoint { + remote-endpoint = <&hdmi_tx_out>; + }; + }; + }; + reg_vcc_3v3_audio: 3v3-audio-regulator { compatible = "regulator-fixed"; regulator-name = "VCC_3V3_AUD"; @@ -54,6 +65,14 @@ &hdmi_tx { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hdmi>; status = "okay"; + + ports { + port@1 { + hdmi_tx_out: endpoint { + remote-endpoint = <&hdmi_in>; + }; + }; + }; }; &hdmi_tx_phy { From patchwork Fri Oct 18 06:48:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13841271 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 6D8FDD3C54C for ; Fri, 18 Oct 2024 06:48:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ECEB310E8A1; Fri, 18 Oct 2024 06:48:30 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="FMMphAzP"; dkim-atps=neutral Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2089.outbound.protection.outlook.com [40.107.104.89]) by gabe.freedesktop.org (Postfix) with ESMTPS id 624D710E8A1 for ; Fri, 18 Oct 2024 06:48:30 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=h1cKfcrXmWW2Dc/IJGnQpoYG2xbDxhAMQJOCLBzIxwcpDXg2L2hvAkFORPfeoyBAhW3NWuz55bTTjjhOnLYH9L1IBXFQs3Hj3lRfhjyiSN/Q6fINCdRR2iv4skfuMnj7QGfm7lKDxvPtWZwDbj0ge6dXeLI0szct5Hfc/utYfciW7FwN2lreaHbLo5qKC78TEbeMQToEx5OTHKJBCbBfkXfTzjlTcJTQvqW4VPPDXySmP7CiyB28zkDoYi1TVM9jdqXuOasvuz9gIvI3YHIx431zib89qbewgUkyg9g4pzwFnl0+dVzf6p3MOEWYzv54ourNNBdeESL85xLdAhyo9Q== 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=xkig8Rz3Nj5INvfmz2K5a2hDp0CUsdprbyGqeST/rWk=; b=hqPgGTjciWm7mQyX9NwwLHeFf690bUnLWsKMSobSBFeUaqJqC0bOarVuXnwV3I0fbrAbNhwdREJKsW+BMwhJsE3cg7C72aHlKGdDiTVPBy0M9OlAQJwikny7yC0HMGkVIRHWZf4HXhMmqXsiKqk6tLeyo0ZAvBWIRc0DsAtF0RyAA2DzEds6H00gWhdPhFDgvO5hnFdfhJ7hE07Zs4SNPHXXxKD2I8tYLtw05+G8udIYJ/0moEPxF33nBpMZolJC5lHKnC4JbusdUSdGtiUTR3Z5rv8fzPSNu05O49Mxn+fO/s+1yJSOBuvIlIJutvPxeNV3G8Lymi+ckJkyF6Sp9Q== 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=xkig8Rz3Nj5INvfmz2K5a2hDp0CUsdprbyGqeST/rWk=; b=FMMphAzPu4Y4LS4BaKdS3aw3c3dq1tzmK4sTv+uu8wCb5hURRf2PnBuk3wZS/Tvxy08FZGq6lcV2zNW+XJ4X7szKmD8RjPUSK3pmMaqWJjEku4WNndRA/h+zO7/2b4uw2ITjMdDa6IJCavJUHkshCrD/LCrCQVyo0pKc77eF8h/SlcuUcWHL3vMKhO8tAqcJ6CxLbiwgoQX+T0qhR9YIp4sQlcQxticAFKJzksFGUKRVmyIgcLPlqMxiWH/TJmxx8FD3YDyryJOz3Rmbb0RnP0sx7SHGquoZufG7XTyFAT+ELFIsK2AhrQbV7KsH4Dz777XvRWLPNwIy/s8+DzKSIw== 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 VI1PR04MB9787.eurprd04.prod.outlook.com (2603:10a6:800:1d8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Fri, 18 Oct 2024 06:48:27 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%4]) with mapi id 15.20.8069.020; Fri, 18 Oct 2024 06:48:27 +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, 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, simona@ffwll.ch, marex@denx.de, stefan@agner.ch, dmitry.baryshkov@linaro.org Subject: [PATCH 4/5] drm/bridge: imx8mp-hdmi-tx: Set output_port to 1 Date: Fri, 18 Oct 2024 14:48:12 +0800 Message-Id: <20241018064813.2750016-5-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241018064813.2750016-1-victor.liu@nxp.com> References: <20241018064813.2750016-1-victor.liu@nxp.com> X-ClientProxiedBy: SG2PR04CA0204.apcprd04.prod.outlook.com (2603:1096:4:187::16) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|VI1PR04MB9787:EE_ X-MS-Office365-Filtering-Correlation-Id: 6dfaa45d-453b-4296-16bd-08dcef40dea6 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|7416014|366016|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: 7jjWwhyPIO5KUWb1EEU2sQn4mdbnSXJtF4Vmt3WkspumG77fm+RmYZkZbbuZ7Ro72BX9WrVzLGu+iCCV9YGrmhyleI9CK6HEn+MGqC1nimUQYZbLBjmDGN3ldTKQWWavgsUWK0jF/2XRxjmzl0sgytRk3VLJ/9q+2WkhQrDrVI0VYPZ0F9evU4qAxPniunXTcqudJFMKlY5ytMA1MCyrIESHeinj/ukMRoFX/TbyEV2ps6/dZMJTp5NCCdf3cr6c1mdfW+W61HFkGwVcIqfaa2CS3IEd79lkmYh/043lRhy4i8VdJmQ0r2tNyyrOiD04cxT0bO5Mm43kPpbXtNHmRMtE2N+intyfFa9VRd8Ghjz3qhFMr2qcXB0K1VR0wGTtdxsC3DPTeijpgqSwORmsgPiS3UHVrhiyrLfAsv6mgY0JfCgi31RXI5HD+SCwlKjlVfTjLqPKXHGlxd7OVeq3kVLi4XgK9/zdpcMtclAjBSNLCcQcTkgRlJ/Aq+BJ0gHVto++9Dw5K92z/GpEqARe2YtWaPfZO+B4Cvbha1HHB6aB0b2ksMJWNTDNSMSWt/risTRljthMddHvlbrIokZeCnb0nEPV17ADjR91FJ9RCqj8ZIYiDyyZMbf9wjNTfFtM8psWmXXVGbFBtoeV8GAVgCy9Vzh6pd4sMZOpRvfdZumF5dVTOByC6SZBtA/7GZhXdtgqO+ldmWiX6QBukVYV5BleA6v6Ej6+7dZIMuOyrN8goeevcmT09YQBZm+OkwboJKtxMreRQjYlwm1NMD/H6WLe7ga8ynWAlsuh9T1JricGZbSxFtSLypiziUZDD89WjmM0jfeDnlFPaGH+Kn4+VB5QfG7DGydLKwBRh5rHFXZbx2fqH6jvKAefswh2ScswGJymhpuC+K1J4VrPTRyrZgruRTH1I8Saftr7AAJXf8pBBzLy6fSLtWKg0UfS/G00oIbSm0v2mtHKVH1bPEIsGULoAJMHVUEJcCGEtAsF+tTRqQxNYw5pK3KJZiTbpKaynsT8Gy80lNJ6aNI/HwS3WRZbau7cCYhV5w4f08mODzAnXkq0x7yl+1Y1RqHULG8/unD41ZIYPV9dWD/U/Xxb9WuAGBxlgvoNB++fRHexN/ijUKsXb5GgYiev3tNYJsbJFR3S/McZJD13ajAc824EGwl3l+9vwTWBEdWBZ+ZykFf+SCFI3hTlarO8ekg+LiEI8sv2pU0pMBcUFrhl8mNOr2+UHDCwXiirbtGjRoSSnYSxZcy7zsD82ut6mxs55ZneMYdjHx+WbQqhdU+fOjEWYvxYDlqCL0D532vscBwfD0D8HkB23WRjm3KKGH9Y1SlxizdFJaLc/WSrnpcULJAlS6ZTRMTrscx63iVkDpz8txg= 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)(7416014)(366016)(1800799024)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +SjrrMSKpdf9ChZr88VQQhVINedeZ+IktaENGGfsMXuaklv5Wu/Eyst2HUKx8wTkLdDp0qE1KhCCXDUcekvNf1+8tREabIG7w47ZahOGHl05IwLTUIBkEV45PrLstz7iExUOYbf1yBGnF0JMnRkgnUweyoY1Mje8GbVBTzQld+yqtHGvJjeBfRbYn4Biuj0EPb0dNEnsGKSEz/qfTejYszSvUij8WrehPL9m0IRNCzklckM7Big4028kFIBpkqe2Z0uQrCDf2OYW+zCFOmDkARxweLhJEA6Hhxw8PTOjBGJqX8d/LzMAjH68nTG5qYs//75+ZxcIwo7VdbWy1/LonrAPCIvnjhyqmZUHt5v6Rv6gvxgKIHHD7+Z+Ytp+kQWr2jqEhlJnOlmb0zCC218Y80mbXbZ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ilBrhWlHHAqtos3j2kYIxpOidSq81WWPJof3CQqAC5YuLmOScc6YntdqgKSA/VgZRQ8OvShddgyCtFINIA0UC02nrNv6CkI9ynso1fF X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6dfaa45d-453b-4296-16bd-08dcef40dea6 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2024 06:48:27.5191 (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: rq3KFEI/+ikpifuJWqHL2vnwwfLshB6WgLLGRmfLeyDgAFoio/bQA/Jch4jtrdTC2XKA9cGY/tpWgfhW1fXMJg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9787 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Set DW HDMI platform data's output_port to 1 in imx8mp_dw_hdmi_probe() so that dw_hdmi_probe() called by imx8mp_dw_hdmi_probe() can tell the DW HDMI bridge core driver about the output port we are using, hence the next bridge can be found in dw_hdmi_parse_dt() according to the port index, and furthermore the next bridge can be attached to bridge chain in dw_hdmi_bridge_attach() when the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag is set. The output_port value aligns to the value used by devicetree. This is a preparation for making the i.MX8MP LCDIF driver use drm_bridge_connector which requires the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag. Signed-off-by: Liu Ying Reviewed-by: Alexander Stein --- drivers/gpu/drm/bridge/imx/imx8mp-hdmi-tx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-tx.c b/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-tx.c index 8fcc6d18f4ab..54a53f96929a 100644 --- a/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-tx.c +++ b/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-tx.c @@ -96,6 +96,7 @@ static int imx8mp_dw_hdmi_probe(struct platform_device *pdev) return dev_err_probe(dev, PTR_ERR(hdmi->pixclk), "Unable to get pixel clock\n"); + plat_data->output_port = 1; plat_data->mode_valid = imx8mp_hdmi_mode_valid; plat_data->phy_ops = &imx8mp_hdmi_phy_ops; plat_data->phy_name = "SAMSUNG HDMI TX PHY"; From patchwork Fri Oct 18 06:48:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13841272 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 3342AD3C550 for ; Fri, 18 Oct 2024 06:48:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9531B10E89F; Fri, 18 Oct 2024 06:48:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="UDcoUJNW"; dkim-atps=neutral Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2051.outbound.protection.outlook.com [40.107.247.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id EC64E10E89F for ; Fri, 18 Oct 2024 06:48:38 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nshbs9BsrYxm/CfvvaguOhLGeKtalJKKyHJobmyFfZU36VHFSMcsAJjM1Zq+88x7oTToGIqo4NgFpjVmRIVr35ESk7oYzkcLBnp80aiyDCkm8rf+sx/Qw4JqO8y4LRqZA3qG+L0BZvbyS9QDwjcHGKG4tTTq960JStWIbtAF4kLf11h8P/HnoVZKbUlrKTd4VGAs/BirQt6wYmlAh6WufEI7M2Da6ebYoBuLOs3w8//sAQMQQQ0bDBQh01ftJ0YQW2MQ3vR0fWVsQ4dVMfSw9wDvLZgcBhTqKa8aEqQG9In9kHpdlMRFg2Gd4eBy5SCmwGUbarfFMSx4w5haM7Vf3g== 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=zwSh//d1CaRqxOSZh6QlhILY+X1BgTdgaYR7pJsi57M=; b=glCAvg5uGR/KCUY5xC9viL9iGu5hNqu1C2kW+kEipHZPjM1k8O3QjIHbfPN+pd3tt8KSNWV98RWq8x76namhl1TG3p9sQ5ah+bURLeyirZANm+mq3j0/sM6JXya47jACa7I5cuBMDLfWHuZHposf1g3+r/IjZ1seHqkuuMIt7p/8d103nTjxQA8uA1BABb/wF0yxobHvOynS/LoyUC0YiUKfGE5UbQWe+VUub1dVhHXl0uPeADsRiU8YeOea0lymu/gDaozGUJ140bdOagv/twFouNYWf6uJoPLQ3FGmQOeim0BfRNiJWvivAc1Rg4Wj7jQlgH9tRSrYOC1dat2FRg== 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=zwSh//d1CaRqxOSZh6QlhILY+X1BgTdgaYR7pJsi57M=; b=UDcoUJNWbQ0NyXwyDB7tUYnEy89bUwDtoSPziXNrbGAxAeItFVI1GK+mXwQqbo7djYhMVCG7IJ/tXCchuQ0A54m3JBMVybnbPxoRaC7vkLnGfTum/L8B7ohuV0HNrND/rHmoPNx+E0VPPX0djXuW0NW3gU5YthtpIRRWsH17LRXJvoN8AWlTJi2KFLXyanpY8dVAqghwGE4txfF8Qic2sFUi3yl0l0oE2ZKtbxzoEgx2NbjenHTxsmTaAYnmUd4O9LCNWfPY4plcsT/iIcF70qaMfFMi5CgZb8RCtpH5xGt5Ni4bRf+WYF6VoClh+Z4G8Nl0CRh/geNFYmT/weKpDQ== 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 VI1PR04MB9787.eurprd04.prod.outlook.com (2603:10a6:800:1d8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Fri, 18 Oct 2024 06:48:35 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%4]) with mapi id 15.20.8069.020; Fri, 18 Oct 2024 06:48:35 +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, 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, simona@ffwll.ch, marex@denx.de, stefan@agner.ch, dmitry.baryshkov@linaro.org Subject: [PATCH 5/5] drm: lcdif: Use drm_bridge_connector Date: Fri, 18 Oct 2024 14:48:13 +0800 Message-Id: <20241018064813.2750016-6-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241018064813.2750016-1-victor.liu@nxp.com> References: <20241018064813.2750016-1-victor.liu@nxp.com> X-ClientProxiedBy: SG2PR04CA0204.apcprd04.prod.outlook.com (2603:1096:4:187::16) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|VI1PR04MB9787:EE_ X-MS-Office365-Filtering-Correlation-Id: 248c1190-f928-4c4e-addb-08dcef40e31d 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|7416014|366016|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: TQtdneAbOqSU9/IE47q8irRGA6D2M2py9mbdu7OaESwkQ42NpV4hgNpUAZgAaFAV1PuYBfi8T03MZd44JNOq+avtU/jUcw6vzuxe7bIT9aeZWTZc8Kun5atZrWlTpjcYVqaV4a5ArXac/GW6Grp0/e/ncyqh3XQTrGQ2Bf5g1uZyTyolXtJVa1+CImvf8KyZLQgxjUK4xI0UtV9uTwvK2R/Ae0C1xXTgOv2lOfLV/5DpuiIm9KFyfNcIdh2fEpOfg21qes5F/+bgvhQ3OYx4Y7d2W9CwkxzXOjSKZSOmDEXby5IsGyS4dW6iuGQPIO76lG1LECM5LpcEj1shIye0Dg3PnsLyJHD/U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CL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7046.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(7416014)(366016)(1800799024)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3EwSxJdXLDEu/JgcugezO0m9T7m2jbn4JFcmVLYGbkRWfme7TAaHDTJZ2cxrUN2Mc8ZCoNHZGX2woeftr++9JZ5lngJevtYft5IfTpPuAaT2sTvEltI1tNW8Ml8gOjP1A/ISP8ikF7l4tCfXn2x5o1tWS0sNkAiakB9qfCQQIjMkDOoHqEZrchH0Rq56rxJo2u4aWb9jLFOAlE/LfN6DLauZfvPvt8ls0e8wMG26B8bxKrpeYHiW5HwSGCzUSazYMzypEGOyx4oVPZGS7gvbvva0rfhWdOxzLtvqBEMH3AZ94awiouviIKwQ5TK1UF4q0bHTtVYVERIF+nkIbjuCVsCpGnu6zDWvbAKsyA7b/INF/3NieQXyiPLeh9+pQKIMoNth5MATFi7R48Rv2XBuUROyeM/zsEI0wS0AiUni9DHkdpdzdxACHJTaKNa1h5h+Z2f8QwEmjEEku0cBO+r6N77qhuteRWE+fNJ6Dl2oAj7hxCHLjnCYCCbE52+1IuMU01ASbJPNcjvXSujuRPCY1OYSZapWPMg5Lu1cucuIGdrcAT4YSCNRLaRgrlPEo3Z4p3tZAUW95YjY4jKflJYcYMxm4YjvdTST3zjMfIfxZ/5biR0JlElxHj/oDEVQ/cgtOCwpUqpJir6qSatYWSY5UZq+7nbBQugtz3opkgrZ5qSgPVp1ARYeJZpcuwAKDw7gbp0vC7c9ERc8BWCKx1Tac1ooG8UfrwLJuNHlfLrEsqxikKNZfFWFFY45TiwUOQ70uDJYa6abIR5AbFyb1tuQn2FsKbftpjsI3XT9wvfrhHa5kRlt3bUnGzbkd+xrS1+yb6SgCtmH/7ZliPAilMyePywttSuYMaaA4GzK/KgGlDNFP9tat086tfsvb7oyqNe9fe9+b/HJkK5mbOVPn7O18y28jLF67G0MCyue4w900m5uzrfZ9HXRE+sWzM2artDQYIZ4mgyDmbiFmNa5tzfc21vMasj2JNRKpvGj1GpQMRFPL8hzCL5HsFf4xWbWft5A6nFgy4I5b955B/nvrovbME/U2G7GtvALwMRcdgjlhX9DyjXHYEZW+5pxpJkw19yqgpyg0wkNA6NqOZeVx4B2Z0+kMWW29Bs6Aetha/GABoT7AL4cz11/QPBczzrWqfNlMp1ulVoRmAC4sRUaHKAOMGGR+rdwyh158lPjRB4yNiibeVBSg15omZ7cCBnumQPJWb3+svS3kVCkMwZkl8FSH+5PrmXlAommREdzkONz7OlqNDqVte74UO74tKdyYtKFUAAjpTLU2mb08MkYm43Zd45ywscqptdjYNArqK2sMICkp7xlfAC8FaXR1H9mHTDUa6UUCwn3qZg5rJcYVjm+9LGOu0p6oABxnPeKXX/ZyRC7W1WLFEf6m45u9k2hOe9obdOt4HneUdZPtCdyoDborPqsXmLp+dTz4ERBsIL6cAcrz39xvpKpNSJZaH4zkdbtQtYbQeZEPZtwEuCvlZhF9HAq2l3sFFyktywJ2dAxIEKLYZhs7bsshyR3TjuFY/En7i4rrlFo5ooGQgvtqxS8COGZcoYIIsc7cU28vjxxvTLdY9SvrgY6nXtFx3893t+7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 248c1190-f928-4c4e-addb-08dcef40e31d X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2024 06:48:34.9886 (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: S9Nv6ftxpUDn4c+dAE6w3tuyELWUYZhKmczAa1xakPFP1ZOn5yzGKzNkhv1u9IBBz/iTy4o9q7zq6/a9ApUwBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9787 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Initialize a connector by calling drm_bridge_connector_init() for each encoder so that down stream bridge drivers don't need to create connectors any more. Signed-off-by: Liu Ying Tested-by: Alexander Stein Reviewed-by: Biju Das --- drivers/gpu/drm/mxsfb/Kconfig | 1 + drivers/gpu/drm/mxsfb/lcdif_drv.c | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mxsfb/Kconfig b/drivers/gpu/drm/mxsfb/Kconfig index 264e74f45554..06c95e556380 100644 --- a/drivers/gpu/drm/mxsfb/Kconfig +++ b/drivers/gpu/drm/mxsfb/Kconfig @@ -27,6 +27,7 @@ config DRM_IMX_LCDIF depends on DRM && OF depends on COMMON_CLK depends on ARCH_MXC || COMPILE_TEST + select DRM_BRIDGE_CONNECTOR select DRM_CLIENT_SELECTION select DRM_MXS select DRM_KMS_HELPER diff --git a/drivers/gpu/drm/mxsfb/lcdif_drv.c b/drivers/gpu/drm/mxsfb/lcdif_drv.c index 58ccad9c425d..d4521da6675e 100644 --- a/drivers/gpu/drm/mxsfb/lcdif_drv.c +++ b/drivers/gpu/drm/mxsfb/lcdif_drv.c @@ -16,7 +16,9 @@ #include #include +#include #include +#include #include #include #include @@ -56,6 +58,7 @@ static int lcdif_attach_bridge(struct lcdif_drm_private *lcdif) struct device_node *remote; struct of_endpoint of_ep; struct drm_encoder *encoder; + struct drm_connector *connector; remote = of_graph_get_remote_port_parent(ep); if (!of_device_is_available(remote)) { @@ -97,13 +100,25 @@ static int lcdif_attach_bridge(struct lcdif_drm_private *lcdif) return ret; } - ret = drm_bridge_attach(encoder, bridge, NULL, 0); + ret = drm_bridge_attach(encoder, bridge, NULL, + DRM_BRIDGE_ATTACH_NO_CONNECTOR); if (ret) { of_node_put(ep); return dev_err_probe(dev, ret, "Failed to attach bridge for endpoint%u\n", of_ep.id); } + + connector = drm_bridge_connector_init(lcdif->drm, encoder); + if (IS_ERR(connector)) { + ret = PTR_ERR(connector); + dev_err(dev, "Failed to initialize bridge connector: %d\n", + ret); + of_node_put(ep); + return ret; + } + + drm_connector_attach_encoder(connector, encoder); } return 0;