From patchwork Mon Apr 15 11:41:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Obbard X-Patchwork-Id: 13629844 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 9C5C4C4345F for ; Mon, 15 Apr 2024 11:42:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=toYnewKBI6e1z5Dq6sIR9VUco28y1gyLg8uDguDlC/Q=; b=E0AqDOuNvKEle2 yJemAzf1etqMDOVsZACKXMjQwo1QsVEILe4P/X4xHwupPlTIHLRIA82m7xIdG9MTbwADmN6zphvWN 15R6UbL58xYdBUOmH+mRi3F3wQ3lrpO5BWLO+RRYx0cK9TGGxhp2k9A6JxIcT+WAMKyD2k5LZ1zOd 8XE3qcNrYzGCKr1W0vTP7x6L07Z5oN9zHlhfxwAavB/JgdQyD2TyJLqWCYQmbIFvkEOuGiTgsGrw+ td4CaNk8BL/5LUEtt4p6aDR5iCnqej5prJlPkSkUdevLNajH5LGOGu/mfpEF2oVn/wkou8sX3Vc0C D3014DCTy/KUIlETJQXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwKik-0000000840u-0fMa; Mon, 15 Apr 2024 11:41:58 +0000 Received: from madrid.collaboradmins.com ([46.235.227.194]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwKie-000000083zH-0dyc for linux-arm-kernel@lists.infradead.org; Mon, 15 Apr 2024 11:41:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1713181309; bh=8ijqCKcYyYvTtDhSZWtqXztHlBsveRSY/hhsB8MOag0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I4ufWz8bIPkjqFBQ8XKs+iDetdz5u45YOXv7V13FggXorOQ92lK3Pyl4N+4xvAuji uvRTcJ6kczJNLGNFNVHoXx9ejaQbLvwlnkZCNDQw8ctTjSLyOqf4TBfVjIcFCM6UI+ mEG6+vfJmewkqL6TTXRLWuGR03q02fzMs5jpNhs/AIP8jtMKJ1sxBn7ASMi1RZW113 Sp00FIXt4Ts48GSKSljfYB9YhbaVAd3X4QUXVJLla6PuyCEwOW2qfnqjCrlweLQKtt ICq892QbTlGIf9zHlqMeYEDmJTnt+5j8K/rxft/8EZhg7uWDfBmehWxk3743igw2cN l51Jr5SpCwOSw== Received: from obbardc-t14.home (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: obbardc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 3EC6F378201A; Mon, 15 Apr 2024 11:41:48 +0000 (UTC) From: Christopher Obbard To: linux-kernel@vger.kernel.org Cc: Daniel Scally , Laurent Pinchart , kernel@collabora.com, Christopher Obbard , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 1/1] arm64: dts: imx8mp-debix-model-a: Add HDMI output support Date: Mon, 15 Apr 2024 12:41:27 +0100 Message-ID: <20240415114135.25473-2-chris.obbard@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240415114135.25473-1-chris.obbard@collabora.com> References: <20240415114135.25473-1-chris.obbard@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240415_044152_391327_2BBF3DC0 X-CRM114-Status: GOOD ( 11.00 ) 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 Enable the HDMI output on the Debix Model A SBC, using the HDMI encoder present in the i.MX8MP SoC. Signed-off-by: Christopher Obbard --- .../dts/freescale/imx8mp-debix-model-a.dts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-debix-model-a.dts b/arch/arm64/boot/dts/freescale/imx8mp-debix-model-a.dts index 2c19766ebf09..29529c2ecac9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-debix-model-a.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-debix-model-a.dts @@ -20,6 +20,18 @@ chosen { stdout-path = &uart2; }; + hdmi-connector { + compatible = "hdmi-connector"; + label = "hdmi"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&hdmi_tx_out>; + }; + }; + }; + leds { compatible = "gpio-leds"; pinctrl-names = "default"; @@ -94,6 +106,28 @@ ethphy0: ethernet-phy@0 { /* RTL8211E */ }; }; +&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_connector_in>; + }; + }; + }; +}; + +&hdmi_tx_phy { + status = "okay"; +}; + &i2c1 { clock-frequency = <400000>; pinctrl-names = "default"; @@ -241,6 +275,10 @@ &i2c6 { status = "okay"; }; +&lcdif3 { + status = "okay"; +}; + &snvs_pwrkey { status = "okay"; }; @@ -358,6 +396,15 @@ MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16 0x19 >; }; + pinctrl_hdmi: hdmigrp { + fsl,pins = < + MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL 0x400001c3 + MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA 0x400001c3 + MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD 0x40000019 + MX8MP_IOMUXC_HDMI_CEC__HDMIMIX_HDMI_CEC 0x40000019 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL 0x400001c2