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: 13841277 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062.outbound.protection.outlook.com [40.107.21.62]) (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 CB518187FE8 for ; Fri, 18 Oct 2024 06:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729234113; cv=fail; b=sayeJ68NKnhrkL2wCFVg+xO55Bl11CFUSAO33Y2ohFjYj91wefXAMj6lWX0djqyWF9QKlj9mqp0Q12gB+zoCrV/5HtsJG1pZ3/COXVqJNjs47eDdCJWpL2zeACKpDJg7niV6m7GzakKczdFna3DM2lqeYFSWxXjJVH/XZSdPoQw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729234113; c=relaxed/simple; bh=pUk85RTO8g9tJAQvi47xnht/yYf8wQd/Tcx8NgQwzFk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=oqte9yTOJyq1Wjqo7a20GIIS1g8HsliQhtB2ye2ONHOrRwjSvQcnkGFXqFSluNZR/MS2tu2BMpohVNsDzqAIaL2gk8RlSlKO8P6dimOGDnU/pr3BHecU2Tg+236/SOq8LPVGKa5laMi3bZWNF2+t6bq2Y66+DuQRuYpVJhg0ueU= 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=FMMphAzP; arc=fail smtp.client-ip=40.107.21.62 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="FMMphAzP" 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) 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_|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+MGqC1nimUQYZbLBjm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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+kQWr2jqEhlJnOlmb0zCC218Y80mbXbZ7E7dnww0xNwuXwqL1zuSdcUiy2ZChdv86GPvaaobtabWtX+rDIZZRy7V0Fps37uGR8QWCqUsy39DXZyW02i5fh0EYJmoklztnSxFtn12gOSdKaNj2PEQevYJqdxWnFRa/5YB/FMnvjNZMWKVmCdBNiH6gpi5tU7g8AT/pKlzvBrXmi77ZamyWuhxFynmjWV43CCx3u32v4bfO9ZN3xt7s5IQE31DON/6e13YQn3HRnzjXwwU/E9UWek0eDMLYQwHQOXhpofyqLkeLSlmpbj8X2IzvS5EQVcjFWhr7ewGwSoKyWoK7mz9tRG/MNbxK1McF50vvOUh/ILfBUPvaVOFqXuPByIYZX69ah14HLJpjKKmwIr4dDZe7p0I1Rlegycjp6kU3o5aLlMmfW7RCEgf8B2J0orm+/2Z2Q6bwS4xha8tJta9zNQfFnbR9tIgzyX+poxDdIGzr4fXOIURT6JlnyP/NtutYX3Gwe3gbRa9Q+nvbhWIFWNCVKfKFq6QmavB/axF+EkYC1INobDy5IBY516y+6UAC9TPennHjjg7w5Vcw31nzmx6A9+zEiD4JOXPUCAr+ZZoVSXk6hKQuICWJiEMFdl2+AABI5PxZ+x7bnoJZT91uIYqZ9UJEDVYNAAXp6n7EXftVwAIsKYxVj8XonTkCffVJLBO83svkBOdeD+6O8pzGZTWiosZdw2yk/US/4H9aFdODF8lBvqL4Qc1Ca8+XYxd3TrG3YGgReaphrDImz5ctrF7u8Hmlur102d8eryKAG/aYW+84X8TilXN9uJfO+88N4kgIbKdImr+pgYeIYWOiGe+okXnJLbX/eLY6yd9BdefVXodX/FG1h8dKUw/p5pLtXd0pVSKcCyjZClfK3Q853kwDTalZj/BGLjenxoP+zb0qA7vFXU3eP8xCm0iXafOCiyCVy0TWKGh5uTegbNc1+ixuRjwxVlYY2/THiFJgTU1/4Crd+j4kgmWoBFmhcFT10dxQBydYQXu5+rz7Pd0W67kc5IUpe5E1UOU9b/1Zk8PH5zr6FGJDvzV3n6xDQbD5uxmOOn0wsQfZSdxXlKXRD6IGul7Hr/e1dilBrhWlHHAqtos3j2kYIxpOidSq81WWPJof3CQqAC5YuLmOScc6YntdqgKSA/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 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";