From patchwork Wed Jul 16 08:50:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 4565641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D8F609F37F for ; Wed, 16 Jul 2014 08:52:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F23392018E for ; Wed, 16 Jul 2014 08:52:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2D896201BA for ; Wed, 16 Jul 2014 08:52:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X7KvI-0002TT-Cl; Wed, 16 Jul 2014 08:50:48 +0000 Received: from mail-wi0-f175.google.com ([209.85.212.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X7KvB-0002Ja-Ld for linux-arm-kernel@lists.infradead.org; Wed, 16 Jul 2014 08:50:42 +0000 Received: by mail-wi0-f175.google.com with SMTP id ho1so5701527wib.2 for ; Wed, 16 Jul 2014 01:50:15 -0700 (PDT) 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:in-reply-to :references; bh=s3XixJGpFgn6GNROyhEtOd5gmv5/Kx6M397TpJhfgiU=; b=ktZlU5ZQwHcWRKEaRbq1ALIQ1mGq/lpuDoWfjBYb/lEwLXF/9CgH2ZUfRKE+3oMzTO vMIrri9q3xVFiaa9IFOPhAkwULQyCyY4PBcouN5/ieiayuw537YTE6/Eoi+p0ik4JRrI tXPk5elcnAKRIfq4pNaqmH4OBEzg0Bmt5T65TjbT4WqIRVr3BOiIDieiuF3e33CXQTFT AfJ1t4VbBkP8h1fcqVbX23shbxdcNE5j4q2TVR579oSWT2UG7mqm14i7IDVmSsN/Oo08 3k3XCaTsZiInT3aGpotxyiDKdce8LY1/ZunEdXwr/QjDYZp1kYKjbkndL/hO3OCAzBcZ MDlQ== X-Gm-Message-State: ALoCoQl42JPPjyKU/3KJfjX34JgVmmWn/4w/rxRK7nOCxHpzU9ZAI6pLPvxvFBPbM+g/LnPQjXCT X-Received: by 10.180.208.35 with SMTP id mb3mr12079260wic.48.1405500612294; Wed, 16 Jul 2014 01:50:12 -0700 (PDT) Received: from dsd-ubuntu.endlessm-sf.com (host-89-241-152-157.as13285.net. [89.241.152.157]) by mx.google.com with ESMTPSA id fs17sm38334206wjc.6.2014.07.16.01.50.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 16 Jul 2014 01:50:11 -0700 (PDT) From: Daniel Drake To: kgene.kim@samsung.com Subject: [PATCH 2/2] ARM: dts: ODROID i2c improvements Date: Wed, 16 Jul 2014 09:50:06 +0100 Message-Id: <1405500606-5752-2-git-send-email-drake@endlessm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405500606-5752-1-git-send-email-drake@endlessm.com> References: <1405500606-5752-1-git-send-email-drake@endlessm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140716_015041_852914_52CA5FE2 X-CRM114-Status: GOOD ( 10.84 ) X-Spam-Score: -0.7 (/) Cc: liquid.acid@gmx.net, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Increase max i2c bus frequency beyond the default for faster data transfers. According to the manual, these faster speeds are only available when the board is wired up the right way. In this case, the vendor kernel has run at this speed for a long time. sda-delay is needed for talking to RTC on PMIC, otherwise the i2c controller never sees an ACK. Strangely the other PMIC i2c slave (the main one) works fine even without this delay. I Chose value 100 to match the vendor kernel. Signed-off-by: Daniel Drake Reviewed-by: Tomasz Figa Tested-by: Tomeu Vizoso --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi index cb6f55f..adadaf9 100644 --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi @@ -134,6 +134,8 @@ i2c@13860000 { pinctrl-0 = <&i2c0_bus>; pinctrl-names = "default"; + samsung,i2c-sda-delay = <100>; + samsung,i2c-max-bus-freq = <400000>; status = "okay"; usb3503: usb3503@08 {