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: 13692581 Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 5680A152516 for ; Mon, 10 Jun 2024 23:43:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718062996; cv=none; b=P6ogJjOxK3IG6S1qrrwRn960wV08dEtnEi7r44kAUFFRM8VB2X/DEWgJXb+yvCwxpHxmfE5u/iRjGdZW4jqnhPlsfgimC7yYK0LG0KanO9C0zHZN0p7yhkcdcCTsoKUBVWYaHRvepzLyVue2DupENxKoNIu7PfyLNpZ2v+pNhTY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718062996; c=relaxed/simple; bh=F/dtIUCdOUNRKmF2bXQiMpR51m7pA3X1q5z5OPUpR/4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lR9M8s+1FEvqzIybTG6qDiQESGUwzd5fo/srqzmvUPhBNT5q+vzospvolkagdAI3d9KLyU1fF1P+XiiDU5XrQsnRfeAoTjDmd0bAWj2dZuMiobL3bWpq/GxrNpvvYuwWZ0svatqq/zxVf0g4lQnXH8gchmDQn4bYXH9gRrBSpcM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=P0L5OI6U; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="P0L5OI6U" 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> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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