From patchwork Fri Oct 18 06:48:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13841273 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2062.outbound.protection.outlook.com [40.107.249.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 892D62905 for ; Fri, 18 Oct 2024 06:48:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729234085; cv=fail; b=j/ogeeTRChMljZ4xR18XCZ6dBHyGC5Nqp4H+XV5LHdsXb24VUFUozXbGzRewUe55k2lTsd6Jzu7Nmhd3gM7uScoqjYcS29OZImk5/05CcXOfjs4vp/mAU+aSL49pxqfAmw29SEivv4LZcrTDe1SSvrHLJo28Ayn9I3DU2vUWaYk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729234085; c=relaxed/simple; bh=dGOPWUOyPDrJ61FV9sVffAAwMHlBxzDudROrnI/izrA=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=soEKYGAu7ykK3aH7VFcz7b1Ol0ftu3WWpDGZY0YPs4kVSiPncer9RBcBFp2ldbcxrWy/7zfWznDcZSm8GnPswqS0+fpNE4pBfv99BtH9+uIhnCnsLMK2ZcBIrYBgr0oHK+Q+KH8H2o130t1x/cYtY88yXIYkmlBJTpPq32mc97I= 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=fQoK3UVf; arc=fail smtp.client-ip=40.107.249.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="fQoK3UVf" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=s2xWl13tcf6jsJqwQbKqzo9IS4foeE4r6iaTPcd0szx4Va1fn2WF04onL/yvm23+OiOpefp1QS+qi0LJMb0K49sxedP5NeDb9kwj5+iKOpqDWwC9cI9ehkJw4NO9OjyVluOnk9HFyF/J+cO990VkVp5uTRgu7EqWORv/gMU/n6wDf8F2Hbtl5UiUjZhb1+pxfuugN1x9IkWjeoZqqrQwSgYpsqVpELmAzgCSylkDVQYvv4HBvhbqSrZBaHODP4Uya0pWAcJLe4o2qCwUvWJ8oM7+F8POM4TcWShLpSeg7hItsmsP/V82f0KHbnqw6qqVb94hxwdvurIxJDf/uucIgg== 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=Ae6WsYwoEWAp7tiQJzLiju/EVhyX0deUjHBzWAv3ies=; b=COb9vq1RT/ZI2bm5C4VKEYSli6rR0yre4u9j/ufqeP1j/PMvrqd0uX1DpT7qkxPDumsU79fC9Int0ng9AUm53cy5S3o0d1f8Nbe/gvuh+bLo4lheOfQfDXVlvjfoL6NTub8QqCx/cL0XNrWRrCgWeA0A8vSykbZ/bLUFvWbSjdS9tlqKEcFkRJCUI7mNxufU5q6EfVdIVOb2iYMq0QPsASejS+ceYYx/+PwZouP4ApJ9VkUQheos9lW8apoXL6ZJi/TyNm8/NOxAVmqlruNLqzMxDuTTn8q7o+oR1JqMD2eyXJLw/K11zQ/+EnykTb0n5AJ8f1br5DYIy+c/cBFepw== 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=Ae6WsYwoEWAp7tiQJzLiju/EVhyX0deUjHBzWAv3ies=; b=fQoK3UVfU7pS06e8bbdg1kUfar1DVChf2UXUZXLudTKSwKYS36spHU9nbqJfwCpyDsX2e8upWxqW0BnRWOeZ2BnrM4ldE56kiBP7ygQQAAzHwiseJZkJhg8zqDGktPX6sbgX62hpMFOYm29hzowL3oq2VcYFgbGsLrMB+N/5gCE2cg5t5aytEgmrSM6ZSgOqTivOVcfccaDm2qATGrsnup8F6v3zvuwXzsNsAUv3ZmxrEUh7BI2bk7LiXr+XANrFM5f6SybY3NPrVBrpXlnZ1bIa1umlynHefw6bgvyht8/NlEGi8B3TwiJGZePwQCWusi+OtGByfFpDKmYSl0nJzw== 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:47:58 +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:47:58 +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 0/5] drm: lcdif: Use drm_bridge_connector Date: Fri, 18 Oct 2024 14:48:08 +0800 Message-Id: <20241018064813.2750016-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 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: 4e89dd10-96cd-4867-48b2-08dcef40ccd8 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: pWdAv3VDcjB2yMIYFhQ/Vqi0zbWQRJHlY2ghE4KDpp41iraP1xWOEIdI/yjNanURSp8P4ZDWv0ZMXpGC4p4wsMU+WmUnxH+3nkNOuBriUHeAgv9q1CO2xI5g0LHj2FxDM/X7xt56dCCC2Kegc+vb71b/mcAKMDx6Mu+X7zs87KrvG3haarnm6l8Lu8NQ/H1w0ardc8MiNJ8mN//vrF1YbPvr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ziTbMP+jXr46P0MxSQIkZ0aJtc6AVDLY2fLnUfzVw3Aev0a+8sLoCc4 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: B3i1dOdq/7O7njTvGoDWjGPPXF+ow010U54U7sC50hVZqyfD66PCuFAcKT80QwopwHkI9FOseT3vgXTyA+jxC/k3zaasQgqM3SXzjgiWYtSNNR9LDMqI/SSwBGZhSyRWeLRJ7Rd4G841c5TaLBpt7BE9//mW0pMtgl0b5bl08TNvtEwFIN84YinonhYIr24tIRz+sybpl3gJvyORbOvjxbmJ2BnIdlkw0J0u24z6iFVJdSSKu/svGxZLneKy0v1B7B2hcwtDoiEjsC2efI4UsIl0xhFkeAmFJlYm4uRzNnCdXroIfYX1jdsoB3a3tyglXc0dKI40Qx3bpbnEqk6LP5QkFjdX4DLOF90zv8yq/iwOaM+mur/mHLG7ErJdMpiJ6WOoAOAaTRcylHYMUXm+ecGCVJdA6D89oa3QI8+zHN19xVBOQDyb/wn8/cWlugVx9UxDOSlifGE2h1mIQqH2W+gGCbLlY5w8D5ykExO5y6LU+f79JMnV549TuSVAUoDJ3Yvtvv6pnku/SwZXWlaXsarzIpCvAHWmJK56zv/OCOoYigDhYhSFarbg0zVNUBmdAOf6UmaWT0+5EMmaiXj34J283XF6t+y5lyUayReknJ7CLxOzhld/NpW53ks3aFan2dkRzkHTUF6RekNoqWy2COTcIghk5yPOOoUGEWRrBqfMc3Jgppn/5BCafQi725BWAqzRHTfFMBA0yqzqxlRci/E6agbF1k6kGplJJiU1LtATK1EM1JCJffDgQAUCvLVf+8yCCeMdwPWyvRQzx7fPLqdq2gWGkRhOtuJVwwltqgsANuFiXzcTZXmotJmAbf9RPqrHoJLroJw4EFCFgFXj4GlJKpGhvKkxnJoSLuO2NKdcRojLyZZ1TE6ZX3HPEJhm4a/VhWTgFPrWIT/6yTE0qOFB9+Y9at1eyrBVFblfaN4EDHLL+Rt8/fYpSuFG1qPx55JNOfHhYzzLY56vKszONkSrwgGsFQUR4kwuxMzkce46WwJhS9rg7hzE77DN1wtzdsQl59DLVtNIJiTrL3nKULbS9ieAlvHq0RsTV3iBw4i9IfWKQ7Z/bySxzgzaFOAzUtosfr29tZr+qZ7r3zVFFsZeeR3ilBFTnBo9l6Aw/6M4AGqD5RdAvFhwglaGLhWiHDTQxfeUYvyJx5X6o+0ODnj2ApYtHbdM7ZAV6xRNJVoMDmqN7SpKO6XzErW7aAPzqQMY14vAtZnQKwwl/5BC5UEHtWbwqEvZtTpJaLZG9hrJ5xpqvXnmsGRrVaImt3xZ8Cn6wKBP+/i8Hqg7tbjjMsKuBS575HJcgGPeIBQtCG26nriKLl587dVCE/8dqWiQLnAL4VVsnECfPttiUD/8JSduZEIlyuSeo0xSrdZHvNPsw4/naNB9SgTLs1joY0TFEoD8Fpzl8fc56eV3zkDRUKr+lJVXqs0wE0IVsz1YJUFqzhZ/Xyqc66Aq4Jis+jg/CAW16cSylDaoE1AsuWUg0cG2oYjChY1EEiTF07ofrhgzEcnyTTG/kEOSnICQ5Ia83MXbB9s1Kc0K+uKikzoRl7Hc2Nau1g8bKKp8FR+QQLX4jptdM+X9A03CHzNNzLa0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e89dd10-96cd-4867-48b2-08dcef40ccd8 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:47:58.1754 (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: kIwZ8xq0V1f1t9Lu6eu2y5vQBKFJYhjWQO6/i+ka5Xe+lERbrsBEEOVAPoliLhm+cM6cT4LLTgR/1GvMWcjetw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB9787 Hi, This patch series aims to use drm_bridge_connector in the i.MX8MP LCDIF driver so that bridge drivers don't need to initialize DRM connectors. Patch 1-3 add HDMI connectors to some i.MX8MP platforms's DT as preparation work. The Synopsys DW HDMI bridge core driver would try to find the bridge of the HDMI connector after the LCDIF driver starts to use drm_bridge_connector. Patch 4 sets output_port to 1 in i.MX8MP HDMI TX driver, as a preparation work too. The Synopsys DW HDMI bridge core driver needs to know the output port index so that the driver can use the port index to find and attach the next bridge. The next bridge attachment is needed after the LCDIF driver starts to use drm_bridge_connector. Patch 5 makes the LCDIF driver use drm_bridge_connector. With this patch set, an in-flight ITE IT6263 bridge driver[1] doesn't need to initialize a DRM connector. [1] https://patchwork.freedesktop.org/patch/619465/?series=139266&rev=2 Liu Ying (5): arm64: dts: imx8mp-kontron-bl-osm-s: Add HDMI connector arm64: dts: imx8mp-kontron-smarc-eval-carrier: Add HDMI connector arm64: dts: imx8mp-msc-sm2s-ep1: Add HDMI connector drm/bridge: imx8mp-hdmi-tx: Set output_port to 1 drm: lcdif: Use drm_bridge_connector .../dts/freescale/imx8mp-kontron-bl-osm-s.dts | 19 +++++++++++++++++++ .../imx8mp-kontron-smarc-eval-carrier.dts | 19 +++++++++++++++++++ .../dts/freescale/imx8mp-msc-sm2s-ep1.dts | 19 +++++++++++++++++++ drivers/gpu/drm/bridge/imx/imx8mp-hdmi-tx.c | 1 + drivers/gpu/drm/mxsfb/Kconfig | 1 + drivers/gpu/drm/mxsfb/lcdif_drv.c | 17 ++++++++++++++++- 6 files changed, 75 insertions(+), 1 deletion(-)