From patchwork Tue May 16 15:13:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13243256 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 835F7C77B7F for ; Tue, 16 May 2023 15:13:51 +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: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=B9KQTDd6idx2DrwhYyYJn4dvvT8dsVLtbaZKTFXqakc=; b=10XQykMHYHfcxB XZSafOSpOMWuOq1nF0MfdYnM2xtoIiCm95eDzvhjKNNdF9z6boSXEJsP960pnIXvRIkPqBhORelyT HpbD0+DqekOn05Qisu0if9FKX42DaMNXL9hIX+WjOvoH2rSGoXP245C8S53Wo8FcuJGD8S0cmXBCb 6H/oxfQ9tQuH9nerXOxwwy5tAWpZMIrZ5T0tBaFIRxepvOlf4VWKPAbuQP9UlSUWffYqU5Q8q4AiX GdweJZJs5XiFySm5wVSltr41YddfXRUt0rSdX1WH7sqGtPHkNJMaYni0r3BjZXTf4FVbxlhSH8dH8 EpQ6BmfQKOyBF/tkwlyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pywMh-006CtL-1A; Tue, 16 May 2023 15:13:27 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pywMd-006CsH-30 for linux-arm-kernel@lists.infradead.org; Tue, 16 May 2023 15:13:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1684250004; x=1715786004; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GeFhTLZY5KNWvsRJdSTarh02LMRrJu4z+4sRCnNWGOM=; b=hY5GgK5oU7Vz8bbW+R/2X2ueRMPyj3pjbH+Y2kU3xFSJz8Ad3KPxrI8Y luK7ta5mdUS4tQtBUUk0iiw7Cm9DJ1uBoXoQwGKS1llaz+lUwLB63bWjE XF0y6eDb0MIuB6tPnFJJtZkSuFbXHpqiijZ5l4XaOIGO3Ggcb+Sy+lENe L49ykXgkkO+dxMITko5nGY1FA43KLQE5PSNS/yyxXgvhHWmzKuYei/07P E5+ToO4yDg96C+PKcFQ78YV984DeJaJICnsC+wktAndKl2sv9c/uO/O+O Lzc9QzoaWHEkV/uiH/TOFpo1piefLMV9oybnSGwbkrLSytR9h4JX8JFjy Q==; X-IronPort-AV: E=Sophos;i="5.99,278,1677538800"; d="scan'208";a="30940570" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 16 May 2023 17:13:21 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 16 May 2023 17:13:21 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 16 May 2023 17:13:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1684250001; x=1715786001; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GeFhTLZY5KNWvsRJdSTarh02LMRrJu4z+4sRCnNWGOM=; b=aYasRwfSAzFK9Hz2bUwn962i4CGHz7j+bkiFpy6gux4kvT1FqXJFnQny MPvMBYD1ad3aPKwgWH46+wuScxla924VSU0f+BMQby2l7err2PE0c3GgY MwPEtADsD6iIRt0AYsEgFMD4FSx99b/LvHji6CQZvtGear7pA4tOOOIlr C6HUH8dJ3gyVSL0hI8Wb/+1xsYB/yhwPpsmBeVVAWutCJCrbz9V7eFVEy LC0blWiA8O78Qeo80DkoEMKumJV27dITpECQrPJwgEZkIfLxROhNtFrZy YhoYm+XDdBY4Shv2Z9q4dPJf1A2lEN1uDR7nxzbPxCbqVAzMIm+kqcZQO A==; X-IronPort-AV: E=Sophos;i="5.99,278,1677538800"; d="scan'208";a="30940569" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 16 May 2023 17:13:21 +0200 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 11F78280085; Tue, 16 May 2023 17:13:21 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , linux@ew.tq-group.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] ARM: dts: imx6qdl: Add HDMI to TQMa6x/MBa6 Date: Tue, 16 May 2023 17:13:19 +0200 Message-Id: <20230516151319.991608-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230516_081324_349639_854EDA6E X-CRM114-Status: GOOD ( 14.30 ) 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 This adds support for a COTS monitor connected to X17. 4k monitors can be used, but are limited to 1080p. Signed-off-by: Alexander Stein --- arch/arm/boot/dts/imx6qdl-mba6.dtsi | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-mba6.dtsi b/arch/arm/boot/dts/imx6qdl-mba6.dtsi index 7b7e6c2ad190..f6573d2c25b6 100644 --- a/arch/arm/boot/dts/imx6qdl-mba6.dtsi +++ b/arch/arm/boot/dts/imx6qdl-mba6.dtsi @@ -192,6 +192,13 @@ ethphy: ethernet-phy@3 { }; }; +&hdmi { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hdmi>; + ddc-i2c-bus = <&i2c2>; + status = "okay"; +}; + &i2c1 { tlv320aic32x4: audio-codec@18 { compatible = "ti,tlv320aic32x4"; @@ -205,6 +212,17 @@ tlv320aic32x4: audio-codec@18 { }; }; +/* DDC */ +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&pinctrl_i2c2>; + pinctrl-0 = <&pinctrl_i2c2_recovery>; + scl-gpios = <&gpio4 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&gpio4 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + status = "okay"; +}; + &pcie { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pcie>; @@ -396,6 +414,15 @@ MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0xb099 /* LED V16 */ >; }; + pinctrl_hdmi: hdmigrp { + /* NOTE: DDC is done via I2C2, so DON'T + * configure DDC pins for HDMI! + */ + fsl,pins = < + MX6QDL_PAD_EIM_A25__HDMI_TX_CEC_LINE 0x1f8b0 + >; + }; + pinctrl_hog: hoggrp { fsl,pins = < MX6QDL_PAD_DI0_PIN4__GPIO4_IO20 0x0001b099 @@ -432,6 +459,20 @@ MX6QDL_PAD_NANDF_CS1__GPIO6_IO14 0x0001b099 >; }; + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b899 + MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b899 + >; + }; + + pinctrl_i2c2_recovery: i2c2recoverygrp { + fsl,pins = < + MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x4001b899 + MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x4001b899 + >; + }; + pinctrl_pcie: pciegrp { fsl,pins = < /* HYS = 1, DSE = 110, 100k up, SPEED = HIGH (11)*/