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: 13841290 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 7BFF1D3C551 for ; Fri, 18 Oct 2024 07:02:41 +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:References:In-Reply-To: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:List-Owner; bh=xkig8Rz3Nj5INvfmz2K5a2hDp0CUsdprbyGqeST/rWk=; b=SN1t2RqNnejSjyYjrVGMdGsvtl mhOq5XfG0P2mrzrzCmN4b/QCdhftNtRKUVsGs8jMJ/K66pRBzyfuXF2qe6vAEpewO0O5lyctpqhLz 3NKlqc4Qy2EZty2DvfUMciTmHTLQwyIILrz7ryuGcwmVkTiyyP9yLtvHVymv2BM6p5RAeM784kBMu jEY24wtIY+LCRKjpfOMtQg70Tw1uKJgVFgK00GvCFLrjoQqWUWabIDmaEv/CtwRprA58Qns2QeD5K wqTu7GTMm3S/uq7nTCD95eVPUPiE3T1mQO9Z8k+yEaq+OkvTC7TsTBVVkWYltTnpq4DwFw4k1JmuG rAYSM4aw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1h0H-0000000HFwk-3jG9; Fri, 18 Oct 2024 07:02:29 +0000 Received: from mail-vi1eur03on20615.outbound.protection.outlook.com ([2a01:111:f403:260c::615] helo=EUR03-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1gml-0000000HDSB-3tSC for linux-arm-kernel@lists.infradead.org; Fri, 18 Oct 2024 06:48:33 +0000 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+MGqC1nimU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BEdWBZ+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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241017_234831_983734_82902894 X-CRM114-Status: GOOD ( 11.91 ) 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 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";