From patchwork Fri Aug 23 02:12:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13774502 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 6984DC531DF for ; Fri, 23 Aug 2024 02:13:54 +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=XveH6RGgkCT5dO1If27/Sum0ki0bg4HOlP0GeEnXA8M=; b=g5ZrjLBuBleoDh4FZH5lyhR+IS vhyeh+piIlZWDvwOXy3dvVDGsfH86rnncR+2HhAqDkCWLPpTnFEOs1U/49mnQ5orxnNc1DSwmXhK8 zFBnxSbRW8EHVsY6WV7+6yk9OpxLPoxLk9E0Ma9Em4vcELpmaG8wM4YacM13A1n6SYmFzoXNB6gMs EdyYcFP/yEp32ldBWA0SAAjxvcgMGTUCCjTXhblUO4bAupt53BOM7tD9ZWo34Cun22a4PMdA8DsQz opE0RAkEtONeIqgHFz2l0g2HoJ3t+2XLJsPhSc07OV0eMfcJOEqP7c6S0dNXs+7JNEvAJxtkqVlhE 2lJzLYWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shJo4-0000000EtpW-1atp; Fri, 23 Aug 2024 02:13:40 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shJnI-0000000EtjO-3tpW for linux-arm-kernel@lists.infradead.org; Fri, 23 Aug 2024 02:12:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=todiJ6FSXR+du5lLU7QF7bIV2/urZdV+syK05j/3u49V4KB1tGSsVCVAVSIv2hWs2bE504x3tx8ffCADZaD6TB2rC14JuwPrX0m9q5cMOmurgNa4D144xwca1yH/Nf5D0TaPGnLVTl+GDbEi4BfuN++qjcU7rOI/wXA+hR/W1RyX36Ws2y2P7dpeaFLtO9gzCJ2qMUZYr6ka8sY5J/+uguFFENNOmVRMJbMFaOxUQe4circqHrEEyz7PtA/KTBhmTUFgPB1DVN+iCT7qhQxZm9r0ljmZ4jVJdQoDQ/K6+lqGSS0jZa0mBoUwcu/Ui0gMuN95lXFTtJ/hqoppOiwX6Q== 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=XveH6RGgkCT5dO1If27/Sum0ki0bg4HOlP0GeEnXA8M=; b=EQMfKzV/249sS1fiXb/ssWCjxbGLyHJmujLPb2uMwrpB63Gc7mAun4re1/7NuecCd02yaFzcXdEwVO5Ou6G9+Uhk5E5ooJXmJrfeHO0fUZKhGvyAbPBJVmHOur5+O2+EPrSBTbWc45A8evaNWLj9fbJKn6jgCcVGYcle02/VSRwmzzYnZkjPkZGeFiqABvlIg8o3QfnaiXdL3lxwsjWGGo/I2dpetVyb+x31QjCi4Ls2PT5R//3ht4TGaJz5upriWi8YsN6eDpEDjfHPD9n3Cb5sx7KtNgx9Ymxp/r0llGzGf3MBkKPGINBZmfmy7m79KZ5junM/jv1ydsf7+nfTdA== 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=XveH6RGgkCT5dO1If27/Sum0ki0bg4HOlP0GeEnXA8M=; b=jmZaJHdvSGTBEkymSFniOnH3CSjaeskMjFxhI5XqdSzJcsXNz/muZLDZtyQWASQoQp+ztnREm/4unIKy3IGKX1bONITGa5yNiRHUBg2rUuHfuU/H4xifqfTEHfb5Y7dY3QKzfLsba1xtkCZZRpWYgEi6bUsAOAjEFAOV6fymC26yEZa0y2sq6xzUwqbLnBbbBWvIPINbMaBAzWL7vSz2XVWirxp7xH+j8ITEkkxqNqoIkzOfSKYqwl6LDTVsnYHIO76EnLbrTgc3fNCo2V8HYg13tEIIfXNnwjSdY3jbo9rCxi5Hsyet4a5MnxXWbCVDmJCljeuqm7voDb0QBizHUg== 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 PA1PR04MB10962.eurprd04.prod.outlook.com (2603:10a6:102:488::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.18; Fri, 23 Aug 2024 02:12:45 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%2]) with mapi id 15.20.7897.014; Fri, 23 Aug 2024 02:12:45 +0000 From: Liu Ying To: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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, alexander.stein@ew.tq-group.com Subject: [PATCH v2] arm64: dts: imx8mp-evk: Add native HDMI output Date: Fri, 23 Aug 2024 10:12:57 +0800 Message-Id: <20240823021257.1067054-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR01CA0045.apcprd01.prod.exchangelabs.com (2603:1096:4:193::19) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|PA1PR04MB10962:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a052528-b431-4004-0280-08dcc31913ba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|7416014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: NkW7D0DEwF+qoOi8oU0SwKgPGTy7RRJDjsED1Mu13l5mFGc6mAZUvBMCWpnBqerA3Y6foPZ8nXnNg1VuZT0lPUIjdwSUKqcM5UyxaAyN8jRajdME9Pezu7PAtyVJ5lGe+kJyatK3mqM96zu3/vKiZ1jzZy/IW83Ob9hjq0ub9hYJURCe/yD4wHHI0PddfQUFhuzmma3SCpvGMnmijVy6Fwmp2EOnr9MpM6uOA1uLp46JiAaz0yIivD8TIIxYs2y7PzebwOpL0W/LcF3aKjcY7NanIBPFRljlR+JIxLCgh2Ztv2dPrlQiQRp3kL73t5/TmlVo//ztgEP9a8eJWs2DgPfQNFVwW+0mrE5OBE+PdSXGreu/rFXaqc3xlJOIepNordprw/yO8Rl8vhvqSLFJHJ0uLdapllN0JE/vKjyrtYkPV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SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(7416014)(366016)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lW0ee+DN1i56vvTO+zfl9sB7t9+ga+1+XvCnxwG4t9eK+n5nIZq/Cw6CqwzNPFop14LpaXSn74jJnmlKvI84FsXCgKKy4WC0ROt5+Nx+3pcNPUnt5svYDcWBcXf746LtuDe+ZHAvdZ8s2qsEq2kuZjRuhZ/Y9PryPmqdtvYWv61wl2Ual/gyG8kn7ANjP0rIgh2MTo6APKgSf/iYVTS1xmvzjtH8zsIKr/K56GXtvEBQnTvkBgV9qEXZ+V8z3KhnsfjeFOmhbMJyBvwer1GngDmCoCVuuRpMkNDMVxf/G9xAjg+ko3d9kGbPlTai0egGeHGm1RvdKVL6oIQ71av0aOvLwZi6G1bJPy+dnX56xUDYn4BWLglh6vBS89LbCbcK0mEuLBh5Ydb/Re1FNRoSGRVZgh/M7/tX+7vUXn6/oRM2Qx0cu+WYH3OFjfCpunopOjmQfTuhhAoXRlKTNTFIYDxMMja+urFI1oVlRKLoCZCpuW6VNuCuQueVpLu975Mz5HG8G6tfJOv67CUnb92iKUK222gESzM3ksuJl45BsA3vF2maIqyInGxOfYPHdwztBcEUjUHl4JyxD18XllxIs1XXYBMtKUezpy/6v69qRFrYFzGLDuYg8c7UCdjHzXTi+SINs+zVsNW/8xi1QV/glsit5Fm7R0P0G4SxkLGc+GILaXCUen0rVMhj0yK+TvmMEyI9L2Cw1CIuXdnaA5UBt3rticxVpx021A3bpPqDhwE9Y6r6mVBABsoMNQcQ/sUdulDrlOeAd92XfsWO1k/FgRHeR2dsresmCUjseDq81m1A2KoassHi3wKa2KZlxxmZWIJ3VqKu1d7sWhR40FrlLOhxu/3/M0yxPDxnu5S6xWS8Kd2Kmwh8oSy4lrKzPcE7sCF/4BvHbkw/2QdpFWFyilTTnnrQs16uXibJ7T09ac50/ZmDMVT0rf4e/R+duQbZX09I7MGuJIinsdHmAhYIt7SmCUnPTb3KP8cJaTrVnf4VjHOBQsub6VWgvciPuKB1j1WJqSv9pdSFRIuiymJyVUfHom4OdZ4O8JyJhs0nYdFODo2a1mqU1LL9nkJynspNw4mHK16/E4WH7pp/VMDonlIB9HDNQQp1toVuhO+rt6OSiA0e7Ezrw81Rtp1FoHILo/GSGPwqIDVgHn8zyB1xEfgG6KsMWP4DNXSrf6Lo6geEhZsAiB6Rv0YUbTYDzCTyHfPxg4Qoq8JXZIuiuxwU3bgV99EbKlX6B74PVWWeoFLG7OIjYhfvU5H0NNvXlx9SZJh6Tv1rI6y/elskCufQKCFgQ3qtfGmybUnZIBKfVA0Uxy7AQdD674UqtbiPwSTV52oZIKqxB7BSr1JpMv8YxEne1JgeO7LEfQuq0SKuHrJ/9gCntyQZLUQ2ucDb/Gbxxc2gvy0D3jZDloSyLU0MrzHOuffbHcFt2DJzqgTYMpSOxzEWPNgBsaKho5EuQcDrT2zGypXwuAmOnQNf7cbr7riJXhuonfjmaY8+QdC7dRoj0N6vt/lXcNDojL4bNl+VpyzU50bgQ5kKt9h7hT6IpZXadxSx4AVuKJvYu2ex79/1FXWRQxqfqJCU0JUypktS X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a052528-b431-4004-0280-08dcc31913ba X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2024 02:12:45.5266 (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: FVVcvpuFdtJy6gSOUBNa7kUdnyXQJKCFKpYyRLS1KAt6rYR98LnSnjiTTMpfYSJcBFxyzjTIAeUvdvfnciPN0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10962 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_191252_995965_0D388E12 X-CRM114-Status: GOOD ( 10.71 ) 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 J17 on i.MX8mp EVK base board is a HDMI type A connector. It connects with i.MX8mp HDMI PHY. Add support for it. Signed-off-by: Liu Ying Reviewed-by: Fabio Estevam Reviewed-by: Alexander Stein --- v2: * Change label hdmi_out to hdmi_in. (Alexander) arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index 938347704136..d26930f1a9e9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -56,6 +56,18 @@ memory@40000000 { <0x1 0x00000000 0 0xc0000000>; }; + native-hdmi-connector { + compatible = "hdmi-connector"; + label = "HDMI OUT"; + type = "a"; + + port { + hdmi_in: endpoint { + remote-endpoint = <&hdmi_tx_out>; + }; + }; + }; + pcie0_refclk: pcie0-refclk { compatible = "fixed-clock"; #clock-cells = <0>; @@ -408,6 +420,28 @@ &flexcan2 { status = "disabled";/* can2 pin conflict with pdm */ }; +&hdmi_pvi { + status = "okay"; +}; + +&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 { + status = "okay"; +}; + &i2c1 { clock-frequency = <400000>; pinctrl-names = "default"; @@ -604,6 +638,10 @@ &lcdif1 { status = "okay"; }; +&lcdif3 { + status = "okay"; +}; + &micfil { #sound-dai-cells = <0>; pinctrl-names = "default"; @@ -858,6 +896,14 @@ MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16 0x140 >; }; + pinctrl_hdmi: hdmigrp { + fsl,pins = < + MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL 0x1c2 + MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA 0x1c2 + MX8MP_IOMUXC_HDMI_CEC__HDMIMIX_HDMI_CEC 0x10 + >; + }; + pinctrl_hog: hoggrp { fsl,pins = < MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD 0x40000010