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: 682689 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54495C7EE2A for ; Tue, 16 May 2023 15:13:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232607AbjEPPN0 (ORCPT ); Tue, 16 May 2023 11:13:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233170AbjEPPNZ (ORCPT ); Tue, 16 May 2023 11:13:25 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E3DB3AA7 for ; Tue, 16 May 2023 08:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1684250003; x=1715786003; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GeFhTLZY5KNWvsRJdSTarh02LMRrJu4z+4sRCnNWGOM=; b=E7toHakW3fh1dZrahYEoZdq10UQ5yJPNkEwo1BlTt29+7Cu7/GOHYG91 wIC7/38p3w5C6CEs6TCgUBFDk2+indu1Koq4giTasyl917uRIZeO1n0Eq VS9ySiAjXuYKMXH54M4lZQ7gJ0MtEYD9BaZcrnbUgN7514Q02lYW+v0Hz aCxMGqXI6i920mEKoRtITyCbjL6uEpUk0CyWpgJWMVwRNq0hemCYdnQyh RRKhFuKczVscR0iHwTWgh+O31Cn8xbXS5Ol+j0vEcRFPVEB8EGsKIm9Oj wxSoBn3V2D74AB7wMlsSjcm0ISpxHMpcV85D7LVwb6iNZzceFpmE84Bvz 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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)*/