From patchwork Mon Aug 24 05:59:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 52623 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 3A8132041A for ; Mon, 24 Aug 2015 06:02:37 +0000 (UTC) Received: by wicul11 with SMTP id ul11sf22928533wic.1 for ; Sun, 23 Aug 2015 23:02:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=yhowNa3TcJubkjWk/nFF7r8xv8ETBQqST5h/lvlUCxY=; b=AiMVLRLRCCiygEYfG1tHxkNYc3LKuI0ofFp78pYVKfpEwAzQPSVLKEKAkyRduijknU s6QJEpnxPa8+3MwlpE41yTy9WdI2YKCuCCw0aA14TIlhsMqya/Ugpx1ZBnqjGYsu4v4Y ep5osw/OUnV8eUPpSyS6PyFDYYAgFQCTQHR5rMenHZesJWd6QrGzEHpTsX5orxTRhHUw S+6+OxFFiKqSc0qXnum/KBsI3zxuLhbfPJzOMg3T+DfJgpTpT+m6CeK9WPNBoUlF+7Jz Y04MlO3vVaXzQ7Q6+tbqofLQV5sgWVJnMPrI0d41eUEm+QrXS8O/YvZHx5q2aDy6XEX0 dvyw== X-Gm-Message-State: ALoCoQmZpqM8hC9bFVS1T5mfLMujImZ/iyw7QpvO6LhPHvco6s9N1CqKOZwDCRI3aHNTbCDmOqqq X-Received: by 10.180.11.161 with SMTP id r1mr1386635wib.0.1440396156240; Sun, 23 Aug 2015 23:02:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.196 with SMTP id a4ls427032lak.27.gmail; Sun, 23 Aug 2015 23:02:36 -0700 (PDT) X-Received: by 10.152.181.203 with SMTP id dy11mr1216529lac.77.1440396156053; Sun, 23 Aug 2015 23:02:36 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id l10si12283324lah.173.2015.08.23.23.02.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Aug 2015 23:02:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbbpu9 with SMTP id pu9so73221693lbb.3 for ; Sun, 23 Aug 2015 23:02:36 -0700 (PDT) X-Received: by 10.152.5.228 with SMTP id v4mr18756662lav.36.1440396155965; Sun, 23 Aug 2015 23:02:35 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.162.200 with SMTP id yc8csp2247708lbb; Sun, 23 Aug 2015 23:02:34 -0700 (PDT) X-Received: by 10.68.65.77 with SMTP id v13mr42291931pbs.157.1440396154042; Sun, 23 Aug 2015 23:02:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4si25787235pdm.126.2015.08.23.23.02.32; Sun, 23 Aug 2015 23:02:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932263AbbHXGCT (ORCPT + 28 others); Mon, 24 Aug 2015 02:02:19 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35726 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754010AbbHXGCO (ORCPT ); Mon, 24 Aug 2015 02:02:14 -0400 Received: by pacdd16 with SMTP id dd16so88969821pac.2 for ; Sun, 23 Aug 2015 23:02:13 -0700 (PDT) X-Received: by 10.68.114.196 with SMTP id ji4mr42324620pbb.46.1440396133432; Sun, 23 Aug 2015 23:02:13 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by smtp.gmail.com with ESMTPSA id h16sm15925034pdk.4.2015.08.23.23.02.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 23 Aug 2015 23:02:12 -0700 (PDT) From: Vaibhav Hiremath To: linux-arm-kernel@lists.infradead.org Cc: wsa@the-dreams.de, robh+dt@kernel.org, robert.jarzmik@free.fr, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, Vaibhav Hiremath Subject: [PATCH-v5 RESEND 4/5] Documentation: binding: add sclk adjustment properties to i2c-pxa Date: Mon, 24 Aug 2015 11:29:37 +0530 Message-Id: <1440395978-9065-5-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440395978-9065-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1440395978-9065-1-git-send-email-vaibhav.hiremath@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vaibhav.hiremath@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , With addition of PXA910 family of devices, the TWSI module supports new feature which allows us to adjust SCLK. i2c-pxa driver takes input configuration in nsec and converts it to respective bit-fields, - i2c-sclk-low-time-ns : SCLK low time (tlow) This property is used along with mode selection. - i2c-sclk-high-time-ns : SCLK high time (thigh) - i2c-start-hold-time-ns : Used in case of high speed mode for start bit hold/setup wait counter. - i2c-stop-hold-time-ns : Used in case of high speed mode for stop bit hold/setup wait counter. - i2c-sda-hold-time-ns : Used to calculate hold/setup wait counter for standard and fast mode. Signed-off-by: Vaibhav Hiremath --- Documentation/devicetree/bindings/i2c/i2c-pxa.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-pxa.txt b/Documentation/devicetree/bindings/i2c/i2c-pxa.txt index 9657db5..bb4df60 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-pxa.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-pxa.txt @@ -23,12 +23,25 @@ Optional properties : - i2c-disable-after-xfer : If set, driver will disable I2C module after msg xfer and enable it again before xfer. + (Applicable to PXA910 family): + + - i2c-sclk-low-time-ns : SCLK low time (tlow), for standard/fast/high + speed mode. + This property is used along with mode selection. Driver uses this property + to set low/high time for standard and fast speed mode, as HW counter + bit-field is same for both. + - i2c-sclk-high-time-ns : SCLK high time (thigh), Used in case of high speed + mode only. + Examples: twsi1: i2c@d4011000 { compatible = "mrvl,mmp-twsi"; reg = <0xd4011000 0x1000>; interrupts = <7>; mrvl,i2c-fast-mode; + + i2c-sclk-low-time-ns = <988>; + i2c-sclk-high-time-ns = <988>; }; twsi2: i2c@d4025000 {