From patchwork Wed May 17 10:11:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13244566 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 285F4C77B7F for ; Wed, 17 May 2023 10:11:45 +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=Q+zI2S7U6bXRj5rJ7CK50r+Zpg7WsNnYiQQse9OPn6I=; b=Va0Kmn8TH9UHz8 e5U/6YIczdtMU+6pCrr+zjMPw6Z+/0ufBRMG3MQ6eT1/wRKnm6ABcz9CDEdHD7uSZS5LD5yUmkc33 EKwMh/Umha+DsllcbADOxiYZDPNHVMGI+yH7E/OpW5a8y/YUEVQ/rHnovWOR/QPkPZe7HSx+C2H8K /72EjOzGArMWLcgQJIlkQaGzIni/af/UkwwMzLzOp//7HAppylWcCx+NTpbzxfKrucdcOGXoAeYGu /ldjVJLawKfzApfTgWsd2zyJHAiyRwKXDZYDkMAZf16/ShOceV8VTDWD1F4iX+u0OPuBxUyPwqyg2 nRTkpaIBI8pc1EDiqQtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzE7u-009EZ6-1y; Wed, 17 May 2023 10:11:22 +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 1pzE7q-009EUr-2U for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2023 10:11:20 +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=1684318278; x=1715854278; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=vYpGVoqBurwiZdFF/2jilQZP7TtRncKvMxwvO6GnSiQ=; b=W+rNDUb5WeRj5v0/jncWBtGxG9z6yO+qD0KvN7+EpuOZ0Tkox88zT8SO VKVJC/zKOxMFBTmtLjV9eqkI0XactwEfqa4wo+5XLGUiTurFTYo70XJvk bR++CfdNgkeqI1crUBmfQo5Vf1ZK2sySaWRr2bGadpihBpFQ2Qga8y1v3 4UZ5tCIIaQ0z0uqcvS7GHLKKkEnpLpwuHJihRcGNx/ZqpG7PLOlBFCsmn 7IgHcTx7YWWItgQS7oKJ8ZKM9wvVKo9qeSqaV5GdWNWbn2TeDKpg3Konq heogrS+OMAyOTukD/im20jnoIAYutoConG4xXhlBbCADkeVkdS62vBkjq Q==; X-IronPort-AV: E=Sophos;i="5.99,281,1677538800"; d="scan'208";a="30957962" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 17 May 2023 12:11:11 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 17 May 2023 12:11:11 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 17 May 2023 12:11:11 +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=1684318271; x=1715854271; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=vYpGVoqBurwiZdFF/2jilQZP7TtRncKvMxwvO6GnSiQ=; b=KDqSmJPQUTApj8MOS8dAxPkYekKpYG4ZEH9Veu49hi6S4MiDRhs1nOJ5 +v9ww23W0OejZ83up/bywWR/ZsGNbrP8Qujf6iciFu4RksYGTJk5fdVgn j23aX5oAGGmGI1eosNiS/L3OLzgqr6y6lnXKHso08epcQsES6irNmLNZ/ o08mafCErCMrO+A52IjV6FenFUWVSGf0uh0+jYzdbUBeGxhJ/BLZvesOl pSnQM7G4nBPIDxR0Htefsq1Tuhy5JRkRsZd3Gub9BtxFsVzW2x0i/oLjJ JKPopAHdnkSC7xaSFzIwTJkArhd5Qyy852Ni7RjGAiefedubmSSjNVHSs A==; X-IronPort-AV: E=Sophos;i="5.99,281,1677538800"; d="scan'208";a="30957961" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 17 May 2023 12:11:10 +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 97871280087; Wed, 17 May 2023 12:11:10 +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 v2 1/1] ARM: dts: imx6qdl: Add HDMI to TQMa6x/MBa6 Date: Wed, 17 May 2023 12:11:07 +0200 Message-Id: <20230517101107.1682625-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-20230517_031119_216106_76E55BF3 X-CRM114-Status: GOOD ( 13.65 ) 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 --- Changes in v2: * Fix typo for pinctrl-* property 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..3be003c72de9 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-1 = <&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)*/