From patchwork Mon Jun 10 23:42:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Obbard X-Patchwork-Id: 13692583 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 76C35C27C5F for ; Mon, 10 Jun 2024 23:43:31 +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=RzwiKZ+kyrg23g8pZVa9EyIOIthYc3148dnn0R6iGkM=; b=FGT3biVQN8uyJv FnrRW9zuw8OfyqjIQaRbt6IILhX4zdqOoIrA/+rxtXi59c1zbMq6AMdnC0/RjK7r3Kd6V6FFCBNQw 9mJ/A+9j+w5ZfzTtO5HhBGooCm5TSiTKDcUlkAr+UotesV+viKRn4EfjHXNKGi4c+NJSeplfv+cRk A+wVYbEI03pJG93uxXHO98cuivSqpAcn/0MHNw2Q0/9Hz5FMxoXUXmsqLDpfMcIPEk+fMZ56oTviY aQpiccs5bKoM5UvRNPVokZyB6o0O0lJba0Oz6CzJCYZb7co712mk6i8n4VKAUxQUkUAmmAVpZsLuM eyInFTpcJ3uEF9tg45Rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGofV-00000006qbk-0H05; Mon, 10 Jun 2024 23:43:17 +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 1sGofS-00000006qay-0ccd for linux-arm-kernel@lists.infradead.org; Mon, 10 Jun 2024 23:43:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1718062992; bh=F/dtIUCdOUNRKmF2bXQiMpR51m7pA3X1q5z5OPUpR/4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P0L5OI6UvwvGcMo12a3s5S9KgHNOtr0MlaQhurOnE0UmLNApidGfr2CZXJuXYhVGz 2yeibDRPZLI8Ihpky/EYMDHpk0koeYJoWwsxLYQWmeQ/m+ODmwXxNlk3hOUy0sQYpj V3vP4/+a9e6676aO7mcSJcPD6TmL2/UPdcFgbYqhswrRdSJ5YI6bBI2psd0qyfvu7q 9HEpNrnG8wEQ0104UVb8usfTeMUihh/YJzjhc8oxGaHBs1cGO9ZHN9A2+SB6jsZUAc OhFN7L9Q8cy42k5xEHWnw2liOMFFYQjWYB8bdfnsKskzz1Yr7U7nEiipnVCtMwHkgC CAM4H+vYtv5rA== 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 EA34E3781FE6; Mon, 10 Jun 2024 23:43:11 +0000 (UTC) From: Christopher Obbard To: linux-kernel@vger.kernel.org Cc: kernel@collabora.com, Laurent Pinchart , Daniel Scally , Kieran Bingham , 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 v2 1/1] arm64: dts: imx8mp-debix-model-a: Enable HDMI output Date: Tue, 11 Jun 2024 00:42:38 +0100 Message-ID: <20240610234307.96766-2-chris.obbard@collabora.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240610234307.96766-1-chris.obbard@collabora.com> References: <20240610234307.96766-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-20240610_164314_746411_F9F18A58 X-CRM114-Status: GOOD ( 11.96 ) 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. This has been tested with a generic 1080p HDMI display, along with a smaller 1280x800 HDMI display. Signed-off-by: Christopher Obbard Reviewed-by: Laurent Pinchart Tested-by: Laurent Pinchart --- Changes in v2: - Do not set SION (Software Input ON) bit in pinmux pin config register. - Small changes to commit log/cover letter. - v1: https://lore.kernel.org/linux-arm-kernel/20240415114135.25473-1-chris.obbard@collabora.com/ .../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 9b8f97a84e61..af02af9e5334 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"; @@ -239,6 +273,10 @@ &i2c6 { status = "okay"; }; +&lcdif3 { + status = "okay"; +}; + &snvs_pwrkey { status = "okay"; }; @@ -356,6 +394,15 @@ MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16 0x19 >; }; + pinctrl_hdmi: hdmigrp { + fsl,pins = < + MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL 0x1c3 + MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA 0x1c3 + MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD 0x19 + MX8MP_IOMUXC_HDMI_CEC__HDMIMIX_HDMI_CEC 0x19 + >; + }; + pinctrl_i2c1: i2c1grp { fsl,pins = < MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL 0x400001c2