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: 4565631 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A5BFAC0514 for ; Wed, 16 Jul 2014 08:50:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E2965201B9 for ; Wed, 16 Jul 2014 08:50:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 088212018E for ; Wed, 16 Jul 2014 08:50:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757005AbaGPIuR (ORCPT ); Wed, 16 Jul 2014 04:50:17 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:62756 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757881AbaGPIuQ (ORCPT ); Wed, 16 Jul 2014 04:50:16 -0400 Received: by mail-wg0-f48.google.com with SMTP id x13so558482wgg.7 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=kMSYYtSauYsfcGVABdf97uTZ6rsBYYMXL8mXDsZpSE4SSSlPhGrBzBrZ429Y54YtX6 p2UyAbqWfbYyEmAxRkEaQlxQ0+/huDOHOZseFwnilGdeLD6Wm/gD+NSrn13r4/oX0ret SWpqOYqJevWSf4j/MUdeV/TCoIXg/FI6GRLU/Wdyj0SzOt/OMY/cIq8prerI/2tJeGcF gEdYaA6JG37KnLyMbBxM6hLB0AMMDj2znt/TZ8ZPSyOWD9LDl/bwUVQ5iizBgUbIFyRU QSMUNVM1SCn7/LlD8JIO1nGXUc1hngtSdHmrB5znkpvKfm+1NJEnq6Cc8cSbysxErICp MjJw== X-Gm-Message-State: ALoCoQkY+uaG6NCk+Uzjxzannbzd0g1znXX5dzTjaAG/IrrczFBtZNCFv6KylRS1kVwMmd3iLoFc 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 Cc: linux-samsung-soc@vger.kernel.org, liquid.acid@gmx.net, m.szyprowski@samsung.com, linux-arm-kernel@lists.infradead.org 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> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 {