From patchwork Wed Sep 14 06:35:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanchayan X-Patchwork-Id: 9330459 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0591860231 for ; Wed, 14 Sep 2016 06:45:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E817F29554 for ; Wed, 14 Sep 2016 06:45:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC6F429A19; Wed, 14 Sep 2016 06:45:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8F5E329A41 for ; Wed, 14 Sep 2016 06:45:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bk3v0-0005WS-1i; Wed, 14 Sep 2016 06:43:38 +0000 Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bk3uv-0005Ps-QX for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2016 06:43:35 +0000 Received: by mail-pa0-x241.google.com with SMTP id oz2so286350pac.0 for ; Tue, 13 Sep 2016 23:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=FsurRY5VL7sNnVZ2+HNxULVxY3pgeOQkHQ9fnCc7BoY=; b=FIZaFc+sh+UBAqADl3rnvNs2wuol/9R6airoUZSxAbwKwKnrf08L0t2XVJE5caBQpJ pHkuGIltlKq7YlUMF2SIb+tXxO/o5AcjsOm2QOmZrAKbwOhkg6UfA3eEfqKJnyN8uHzK Z7g409iMkGEP46dWt76gxmbQdnbXogBdY3r0TSHf21EJfFwe9FQlbsiUaU4ngL2q3Txf kLN+lz1iIHzb/fwZ0D4GEX2OCqLotmTh3lP9Kk0YbiIKty0XKTBlnl2dNO+NdpMlBMKb UHYtudI3iB2OH8Z6ZlPh4ipITwOe8BXrr2k8o/tp8ydm6Xr/TbbOdxC74T+8XH3GfHVt H+6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FsurRY5VL7sNnVZ2+HNxULVxY3pgeOQkHQ9fnCc7BoY=; b=Hq9wx7bXUs7dRnaSrD1T3UxtF/og4z4LGws5K1E8PQlCVtHSBIov1XGDeWJbJQX5q2 S9BdFk63DJKcKmIrtp7Xd693j/Ngbho4QTpW5KC5n7afnWI4U40F79so/BOFdibN3aiq ppUdXRwGEafYjQ/f00VSL943kVDLPV+7pZHYtKF1b3UNU091bByY4PDaUPVA7+z0RZ7i qNtuab8z2lO8GbEk+1qmn8CxCGko9HEDHtAVJn3PRp/Got1+Nk3gOklwQQHqwo8lRLhJ 47WU0kr9P082wUdGxq373WjzF4octkoJp/JLghqYgCnI3L5lDDNhWfSrxZ0ggwcnO867 uvBA== X-Gm-Message-State: AE9vXwPa/LM3179tZfzp/eSdHxPLIC6BsSR6yCwnH12ciUcJlsK4YaKjUlvG9/XRkqSmmQ== X-Received: by 10.66.217.132 with SMTP id oy4mr1730467pac.46.1473835391058; Tue, 13 Sep 2016 23:43:11 -0700 (PDT) Received: from localhost ([115.115.243.34]) by smtp.gmail.com with ESMTPSA id b7sm35284141pfg.87.2016.09.13.23.43.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Sep 2016 23:43:10 -0700 (PDT) From: Sanchayan Maity To: shawnguo@kernel.org Subject: [PATCH v1 1/3] ARM: dts: imx6qdl-apalis: Do not rely on DDC I2C bus bitbang for HDMI Date: Wed, 14 Sep 2016 12:05:03 +0530 Message-Id: <9d2c17aa2e00e6ff4349a53de8247860d2382607.1473833908.git.maitysanchayan@gmail.com> X-Mailer: git-send-email 2.9.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160913_234334_001023_3144EC2D X-CRM114-Status: GOOD ( 12.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, marcel.ziswiler@toradex.com, linux-kernel@vger.kernel.org, stefan@agner.ch, Sanchayan Maity , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the use of DDC I2C bus bitbang to support reading of EDID and rely on support from internal HDMI I2C master controller instead. As a result remove the device tree property ddc-i2c-bus. Signed-off-by: Sanchayan Maity --- Hello, This patch is tested with the following patch applied https://patchwork.kernel.org/patch/9296883/ and is based on the suggestions from Vladimir https://lkml.org/lkml/2016/8/29/322 This and following two patches are based on top of shawn's for-next branch. Regards, Sanchayan. --- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 6 ------ arch/arm/boot/dts/imx6qdl-apalis.dtsi | 25 +++++++++---------------- 2 files changed, 9 insertions(+), 22 deletions(-) diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora.dts b/arch/arm/boot/dts/imx6q-apalis-ixora.dts index 207b85b..d99979e 100644 --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts @@ -55,7 +55,6 @@ "fsl,imx6q"; aliases { - i2c0 = &i2cddc; i2c1 = &i2c1; i2c2 = &i2c2; i2c3 = &i2c3; @@ -186,11 +185,6 @@ }; &hdmi { - ddc-i2c-bus = <&i2cddc>; - status = "okay"; -}; - -&i2cddc { status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index 99e323b..8c67dd8 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -53,18 +53,6 @@ status = "disabled"; }; - /* DDC_I2C: I2C2_SDA/SCL on MXM3 205/207 */ - i2cddc: i2c@0 { - compatible = "i2c-gpio"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c_ddc>; - gpios = <&gpio3 16 GPIO_ACTIVE_HIGH /* sda */ - &gpio2 30 GPIO_ACTIVE_HIGH /* scl */ - >; - i2c-gpio,delay-us = <2>; /* ~100 kHz */ - status = "disabled"; - }; - reg_1p8v: regulator-1p8v { compatible = "regulator-fixed"; regulator-name = "1P8V"; @@ -209,6 +197,12 @@ }; }; +&hdmi { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hdmi_ddc>; + status = "disabled"; +}; + /* * GEN1_I2C: I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier * board) @@ -633,11 +627,10 @@ >; }; - pinctrl_i2c_ddc: gpioi2cddcgrp { + pinctrl_hdmi_ddc: hdmiddcgrp { fsl,pins = < - /* DDC bitbang */ - MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x1b0b0 - MX6QDL_PAD_EIM_D16__GPIO3_IO16 0x1b0b0 + MX6QDL_PAD_EIM_EB2__HDMI_TX_DDC_SCL 0x4001b8b1 + MX6QDL_PAD_EIM_D16__HDMI_TX_DDC_SDA 0x4001b8b1 >; };