From patchwork Sat Feb 10 01:36:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 10210153 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 EE52C6032D for ; Sat, 10 Feb 2018 01:37:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFBD328EB3 for ; Sat, 10 Feb 2018 01:37:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D28FF28EB8; Sat, 10 Feb 2018 01:37:55 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 333D828A30 for ; Sat, 10 Feb 2018 01:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Q9T5AFuVctuDbJVOAqiioVCueNg8b79sPwFHh5eG5xI=; b=VyIyY5j9A9eXxafIhMiC84AQ+T N+ocikDz0OM12iHYLSylrui7tgETY/npu/YbN/xJ8MgQA54ozA2LjvBh5wf2sS9TuC+aZ7a3jhrj9 q971zJ3gr0gvmPcLxKkKGud10MR0GdgdNMpFBLcDSEOXhERMsN5r1wwBxr5DGKT0fu5IPxac55xst tIyiHmvyIQo6Dd6qwN6q+5dYtl/aQFXl65YYv6upfXGDj4vSM/v/ZKVRCAfXum5mjNwEgo6YuqYBZ 6MSSV/ZAdcJyD/I5hD4iLyOlpH4wepL0gQgVotIRJzjY2N2SX5NUaYceV7c7MbZWOa5g6BQiH1hsS jDZrk70A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ekK6v-00068P-H1; Sat, 10 Feb 2018 01:37:49 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ekK6N-0005MN-UN for linux-arm-kernel@lists.infradead.org; Sat, 10 Feb 2018 01:37:20 +0000 Received: from localhost.localdomain.ziswiler.net ([178.38.65.171]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPA (Nemesis) id 0Lc9rP-1fA43X1ymT-00jZia; Sat, 10 Feb 2018 02:36:46 +0100 From: Marcel Ziswiler To: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/3] apalis_t30/tk1, colibri_t20/t30: fix i2c bus frequencies Date: Sat, 10 Feb 2018 02:36:36 +0100 Message-Id: <20180210013638.28164-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180210013638.28164-1-marcel@ziswiler.com> References: <20180210013638.28164-1-marcel@ziswiler.com> X-Provags-ID: V03:K0:bGwqYmaKXCUw3VsNqeg6aR98RaLL3pz05Cp5vSA/MdvB4JK/Y5R IaaYVvM4NYSHUhs9I6xRGGRJgQp031kUPGINb126+3OWz2PP+IXa7bRC4xhtY8kNB24icjb 2bSZ9cT2oRT8hASl/QPQS7Hs0V7r00cecQlJKQbBB1FUQDHArTCQZEQJN7WatGvy2G6oQtu /7fuBw3TboRneDMGj0Xvw== X-UI-Out-Filterresults: notjunk:1; V01:K0:oE8fNeIclfk=:6wrrDxDFlCB73gQw08coVn NZHzLuHpgYZXjaw+0nlySQbC1hILCA1euoGIeB1noifrHq888hFVUdIIYI9XckeeuYc+o85sV IvS7o2TM8yHEkBGMJ3JuglIuCNN7KgTqM7U2GVy8/8yRFUs8beDrtjTvnHMaxj/uT4xSqgxDS 7lfz1nJE4LFNvdv3DIz1bXdMvpXaMkeV5pKJakYRf/uQ9pYVtzN1pbOvs5TAqumAQ7yp3iWA6 7230puD8LwPuOa3RAsoapUKL1X1BITv4aXIUnFlLNusMLkjIymWnxSN/sKSqNyrwwk/W1YbIj 7SpwyWnfRFPL+2+bq7sLFGi26nABwdIrkmHaj7OY33wmjbdBaWgbqHyaHNx8kIfGxXOxBhSKh P0zDHW0PRmwNC22ZDKhRXzmza6Mg+BSMAuTvjzFE5bW1CVa2Ec/6JqzK8w/MUl0jEFNkFetig GwCGjMecEMnl69Bc6kCjKaaeSQWPGUhoGfBMbcmACJ4OhwEcZna4Q3MYY+xy+bq50dT7PxcLV Bg5osjgQwsOIzEl434SCEooiCdzmLwJmSsq1Gup5Iy6s4XX7RFgbnCVsgJU9Al0VkGpixkzt0 8kbIAZeXUXRqhK9hsylwQjILuotmmNT59vieQDVjX3eUcZByizhFAnA74sYVvZCvkYB4xcpCL 0QqZDYbmfz4V1hpVO02+MDXRC+mXCclms3Nzk+AghWkdetAo0I7I2lyIl+MVaAoZQV/ShGQKQ jZ9athiq8B6VXRSB270xG6pDElsHdoeV8W04Dg== X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Marcel Ziswiler , linux-kernel@vger.kernel.org, Rob Herring , Jonathan Hunter , Thierry Reding , Russell King , 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 From: Marcel Ziswiler Use a faster speed of 400 kbit/s for regular I2C busses. Use a slower speed of 10 kbit/s for DDC/EDID to improve reliability. Use a slower speed of 100 kbit/s for power I2C to be within specs of the LM95245 temperature sensor. While at it further annotate I2C pin usage. Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/tegra124-apalis-eval.dts | 5 ++--- arch/arm/boot/dts/tegra124-apalis.dtsi | 2 +- arch/arm/boot/dts/tegra20-colibri-512.dtsi | 16 +++++++++++----- arch/arm/boot/dts/tegra30-apalis-eval.dts | 2 +- arch/arm/boot/dts/tegra30-apalis.dtsi | 2 +- arch/arm/boot/dts/tegra30-colibri-eval-v3.dts | 2 +- arch/arm/boot/dts/tegra30-colibri.dtsi | 2 +- 7 files changed, 18 insertions(+), 13 deletions(-) diff --git a/arch/arm/boot/dts/tegra124-apalis-eval.dts b/arch/arm/boot/dts/tegra124-apalis-eval.dts index ecffcd115fa7..66b6c45ee865 100644 --- a/arch/arm/boot/dts/tegra124-apalis-eval.dts +++ b/arch/arm/boot/dts/tegra124-apalis-eval.dts @@ -105,7 +105,7 @@ */ i2c@7000c000 { status = "okay"; - clock-frequency = <100000>; + clock-frequency = <400000>; pcie-switch@58 { compatible = "plx,pex8605"; @@ -124,7 +124,6 @@ */ hdmi_ddc: i2c@7000c400 { status = "okay"; - clock-frequency = <100000>; }; /* @@ -133,7 +132,7 @@ */ i2c@7000c500 { status = "okay"; - clock-frequency = <100000>; + clock-frequency = <400000>; }; /* I2C4 (DDC): unused */ diff --git a/arch/arm/boot/dts/tegra124-apalis.dtsi b/arch/arm/boot/dts/tegra124-apalis.dtsi index 5d9b18ef5af6..7aef8928e115 100644 --- a/arch/arm/boot/dts/tegra124-apalis.dtsi +++ b/arch/arm/boot/dts/tegra124-apalis.dtsi @@ -1579,7 +1579,7 @@ }; hdmi_ddc: i2c@7000c400 { - clock-frequency = <100000>; + clock-frequency = <10000>; }; /* PWR_I2C: power I2C to audio codec, PMIC and temperature sensor */ diff --git a/arch/arm/boot/dts/tegra20-colibri-512.dtsi b/arch/arm/boot/dts/tegra20-colibri-512.dtsi index 813ae34edd6a..5c202b3e3bb1 100644 --- a/arch/arm/boot/dts/tegra20-colibri-512.dtsi +++ b/arch/arm/boot/dts/tegra20-colibri-512.dtsi @@ -213,21 +213,27 @@ GPIO_ACTIVE_HIGH>; }; + /* + * GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier + * board) + */ i2c@7000c000 { clock-frequency = <400000>; }; + /* DDC_SCL/SDA on X3 pin 15/16 (e.g. display EDID) */ i2c_ddc: i2c@7000c400 { - clock-frequency = <100000>; + clock-frequency = <10000>; }; - i2c@7000c500 { - clock-frequency = <400000>; - }; + /* GEN2_I2C: unused */ + /* CAM/GEN3_I2C: used as EXT_IO1/2 GPIOs on SODIMM pin 133/127 */ + + /* PWR_I2C: power I2C to PMIC and temperature sensor (On-module) */ i2c@7000d000 { status = "okay"; - clock-frequency = <400000>; + clock-frequency = <100000>; pmic: tps6586x@34 { compatible = "ti,tps6586x"; diff --git a/arch/arm/boot/dts/tegra30-apalis-eval.dts b/arch/arm/boot/dts/tegra30-apalis-eval.dts index 07b945b0391a..fdca527a2248 100644 --- a/arch/arm/boot/dts/tegra30-apalis-eval.dts +++ b/arch/arm/boot/dts/tegra30-apalis-eval.dts @@ -79,7 +79,7 @@ */ i2c@7000c000 { status = "okay"; - clock-frequency = <100000>; + clock-frequency = <400000>; pcie-switch@58 { compatible = "plx,pex8605"; diff --git a/arch/arm/boot/dts/tegra30-apalis.dtsi b/arch/arm/boot/dts/tegra30-apalis.dtsi index bfb7913c0657..676a4c4b1512 100644 --- a/arch/arm/boot/dts/tegra30-apalis.dtsi +++ b/arch/arm/boot/dts/tegra30-apalis.dtsi @@ -437,7 +437,7 @@ }; hdmiddc: i2c@7000c700 { - clock-frequency = <100000>; + clock-frequency = <10000>; }; /* diff --git a/arch/arm/boot/dts/tegra30-colibri-eval-v3.dts b/arch/arm/boot/dts/tegra30-colibri-eval-v3.dts index b307feb7c330..8c62833197e5 100644 --- a/arch/arm/boot/dts/tegra30-colibri-eval-v3.dts +++ b/arch/arm/boot/dts/tegra30-colibri-eval-v3.dts @@ -56,7 +56,7 @@ */ i2c@7000c000 { status = "okay"; - clock-frequency = <100000>; + clock-frequency = <400000>; /* M41T0M6 real time clock on carrier board */ rtc@68 { diff --git a/arch/arm/boot/dts/tegra30-colibri.dtsi b/arch/arm/boot/dts/tegra30-colibri.dtsi index 139bfa028b04..1f77273521bf 100644 --- a/arch/arm/boot/dts/tegra30-colibri.dtsi +++ b/arch/arm/boot/dts/tegra30-colibri.dtsi @@ -215,7 +215,7 @@ }; hdmiddc: i2c@7000c700 { - clock-frequency = <100000>; + clock-frequency = <10000>; }; /*