From patchwork Mon Sep 30 05:28:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13815398 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 3BF12CF6497 for ; Mon, 30 Sep 2024 05:33:37 +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=GW8IlsCZBHX4E/aNs96ZxCcnocJoNyvqPyUxKws1czY=; b=RJEqlGk7IjBShI7Sl0ZVTX3LcL KKMsvUw7aCCsRNPukyJNi0+kDEe8WIxxJ7g0fTiAtT8Gx7aa3pl1LoalybxnSoOwlirYGCtEys2T9 Xb2hBna3oAEPPnSsEkF/+ajYxznsS0EgplfF9wQWhPAZK3UKoDWLxtbd3oHhAtr3zVETeFhEqCk7a mY03da5kzyHuPRW1SC/BWYNE0Q/tXydPu+qiVbNVsQxr7VCDWrKq5GuZHEOrCBOXumMcOSogXQO9Q Zls88ZfV/R3dr8FUx7jWZFgg3599eaIF4FOSjQhwaoTq5sIgCVdbh2jdhUNS7YpRQRqcM8md/apY9 o3UUvmYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sv92F-0000000FyvW-3JSd; Mon, 30 Sep 2024 05:33:27 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sv8y0-0000000Fxuq-1l3d for linux-arm-kernel@lists.infradead.org; Mon, 30 Sep 2024 05:29:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yBOtSTcLoFDt7uN9T7GI//YOXq47DRcEfFyTJH+OKKFnHn1/WOY99NcMVHn/Y8VA6g35/mgdG8baqbEFJBVNt4GMgS/1gv4nWxrv9VIAT2pNJ/JJ/QbiH1rmAX5KbUrRz1mIT2RRmTSQ+c08RhAgSsmS612lMDs7C6tSze9E0rhtc1md0QhUBJegZpQF12lqnibMCiiwcCpYTpC/YD75eCDBHoge0p5HuPLxJqOZ7FMqqLTdDvHH9Xh2T3+ymEo3xkeLwWhhotmPqfQPPVGD35lxjlrDoLwC20op5ZHWIQMkYqc+fDSjC8b2hWvIzuxckW084K3iL18BAo95IwxcnA== 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=GW8IlsCZBHX4E/aNs96ZxCcnocJoNyvqPyUxKws1czY=; b=NEQe3CFxyUHgKvBxiHMFU6x5NFGeVe44E6hNgOeb0LkStbmPaBtHqClhPRqxpF0iBWgeAsXvGRdGIY5ORcFCXF/jRvmwKXg4Rm2eAI1wMXUFA3YnM9ux7oaalI9/l82ysQlb89n8vhm6AtqkNMo1p35S3T92LbWiqt8FX6UtmJmfIu4FFqVy2AW0MGkE4lecA6nxieMiIMb55OQlK6E015bMFeEAIG7sR0fX8NK1wOSPHdpRr3KXgLvkcq4sa91Ep0ZQbpndrzfW8Zazp0OTiZnSSDIJ4mFiyoy5900MpgTc0RwvTrft8jGATnDEtIhrup3O3I9Cs3QJkmrBj1802A== 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=GW8IlsCZBHX4E/aNs96ZxCcnocJoNyvqPyUxKws1czY=; b=IaMFFIaZzY/+LKBVa4J5Ozqd7Zznw+HGDo5tWlUkSCScz4ETgcKFF23Ae/36KNDqTHDgmfcCZx1j0CfVJsT6BpSXBiIS2LP4NdvEcanR2R2w6FjXBObmaaMYISDXLPevTmfOAIHlJEV0BwNaJpYTfFrkjn75+unvb0l9yBwKv+OwR3AQ1iYQScZHqdCsy63QUfpnlLD8RCTjEp/k5D98KpO1nn/ZYC85Lk3pgdATRf5+ZdPoC8U9BbS7wE4st0njgLlVhEYzEe7GLYxk+R8t0B86wnOhege8mpNZoTu0ZFz9a4bJVVq9sq7u1CQ863XYsO8bm61vgX2Bsa7v6PUfhg== 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 GV1PR04MB10536.eurprd04.prod.outlook.com (2603:10a6:150:208::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 05:28:53 +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.8005.024; Mon, 30 Sep 2024 05:28:53 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: 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, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, catalin.marinas@arm.com, will@kernel.org, quic_bjorande@quicinc.com, geert+renesas@glider.be, dmitry.baryshkov@linaro.org, arnd@arndb.de, nfraprado@collabora.com, o.rempel@pengutronix.de, y.moog@phytec.de Subject: [PATCH 0/8] Add ITE IT6263 LVDS to HDMI converter support Date: Mon, 30 Sep 2024 13:28:55 +0800 Message-Id: <20240930052903.168881-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR06CA0015.apcprd06.prod.outlook.com (2603:1096:4:186::7) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|GV1PR04MB10536:EE_ X-MS-Office365-Filtering-Correlation-Id: df498e5f-ef88-493e-8e26-08dce110c5d7 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|366016|1800799024|52116014|7416014|376014|38350700014; X-Microsoft-Antispam-Message-Info: /Ha/Vx0tRKZnt/3b2va9ljPx3AzIe6ZkN6m99NOXbrE/1zKSMa+zBjrndvZxncGnnrsnOsCWo1PDWBaift29RG+6hhuw7uc+bJWVx18mhuM7a3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d1So0ddWRuLe0RRQDPcZAOg6Ap1sBA/R7eENQ1YiRGXmNm98U+C+J4DPz+i7RFN6HefRcnlJK59nNoiv6AaWf66Rj+mZMbkc6TRZRv6Gfe+ZvyYZ9NT34HmBVlGwpZCRRf1/DOmS2Ni3S59VSH7frXN7p9CggSgyOGNMdeKmq0Uwz2GONROJ7LGQKJs8mzVOwIjO6cCBge0L9w/eYboJuEG6KEmaFa41P/2m/QA== 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)(366016)(1800799024)(52116014)(7416014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: B3KOpYve96osTXcxEwRfQy0R71PPJpQ22h7ydWpMAXirE35EiwVsVkUT5fmEoCXt6td5E7MidjvBKL+u7+JIVeq/DeWidS7YkfLN+gnKZslVUvp5rjMt65q8lviFZ96lLXfpe1xMDzkCluiL0OyhPgMwq3yVK+pPN3BowonfDIdIR+FbiPzq/YCWDBL7gtUtvc+EUoWob75XwGIqHEnQP8bLgBg73OygEq432Lkx3dfiEljPywSc1z/EVoJNJTivguh72Y01ZVJm8adpq8SHqD0sXkj1KC21lT3gWv2kGo2m0QPh9GXJkQX0KY6pyfN8iIC6p5xsiqA9y9eslxM1daxua4sVHFt2pqdRJ7bfOK1eZukpNShX6wMLX12Zd0AoBloXsmO0BUFbMdOGcKe+TrXyslAzdrYXrA4St9GbaxcF3WY87nxVehoZzL+XHYIyf2Ch+pbyizIfQZ6GV3fnn2vLYLeyu64U4FFg40vOF8IoXjK+hqYzI8JZNQ+NF2ycdkYuU79i9jZ49SQ6Tjvy+IJX16Ckv/RMKUkn99ObUv3cZnDzYp9xs5AmK9av5+HiMiGQYf0YjJhj3MLbAdtzrOlGqrvrLC+f7y6nwLHr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ource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 05:28:53.6691 (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: 3LtmMKMp0im3aPrUbAv8WT1ZSDc0qYqGfRkCyLxabOfo9Fwv6n4IHdegT6oZnvArbllUi/R9L1n8jq70qq14Pw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10536 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240929_222904_479919_6351E479 X-CRM114-Status: GOOD ( 13.36 ) 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 series aims to add ITE IT6263 LVDS to HDMI converter on i.MX8MP EVK. Combined with LVDS receiver and HDMI 1.4a transmitter, the IT6263 supports LVDS input and HDMI 1.4 output by conversion function. IT6263 product link can be found at [1]. Patch 1&2 are preparation patches to allow display modes of two existing panels to pass the added mode validation logic in patch 4. Patch 3 allows i.MX8MP LVDS Display Bridge(LDB) bridge driver to find the next non-panel bridge, that is the IT6263 in this case. Patch 4 adds mode validation logic to i.MX8MP LDB bridge driver against "ldb" clock so that it can filter out unsupported display modes read from EDID. Patch 5 adds DT binding for IT6263. Patch 6 adds IT6263 bridge driver. Only video output is supported. Patch 7 adds DT overlays to support NXP adapter cards[2][3] with IT6263 populated. Patch 8 enables the IT6263 bridge driver in defconfig. [1] https://www.ite.com.tw/en/product/cate1/IT6263 [2] https://www.nxp.com/part/IMX-LVDS-HDMI [3] https://www.nxp.com/part/IMX-DLVDS-HDMI Liu Ying (8): arm64: dts: imx8mp-skov-revb-mi1010ait-1cp1: Add panel-timing node to panel node arm64: dts: imx8mp-phyboard-pollux-rdk: Add panel-timing node to panel-lvds node drm/bridge: fsl-ldb: Get the next non-panel bridge drm/bridge: fsl-ldb: Use clk_round_rate() to validate "ldb" clock rate dt-bindings: display: bridge: Add ITE IT6263 LVDS to HDMI converter drm/bridge: Add ITE IT6263 LVDS to HDMI converter arm64: dts: imx8mp-evk: Add NXP LVDS to HDMI adapter cards arm64: defconfig: Enable ITE IT6263 driver .../bindings/display/bridge/ite,it6263.yaml | 310 +++++++ arch/arm64/boot/dts/freescale/Makefile | 8 + .../imx8mp-evk-imx-lvds-hdmi-common.dtsi | 29 + ...8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtso | 44 + ...imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi | 42 + .../imx8mp-evk-lvds0-imx-lvds-hdmi.dtso | 28 + ...8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtso | 44 + ...imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi | 42 + .../imx8mp-evk-lvds1-imx-lvds-hdmi.dtso | 28 + arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 6 + .../freescale/imx8mp-phyboard-pollux-rdk.dts | 15 + .../imx8mp-skov-revb-mi1010ait-1cp1.dts | 15 + arch/arm64/configs/defconfig | 1 + drivers/gpu/drm/bridge/Kconfig | 8 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/fsl-ldb.c | 53 +- drivers/gpu/drm/bridge/ite-it6263.c | 829 ++++++++++++++++++ 17 files changed, 1483 insertions(+), 20 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/bridge/ite,it6263.yaml create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-imx-lvds-hdmi-common.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi.dtso create mode 100644 drivers/gpu/drm/bridge/ite-it6263.c