From patchwork Tue Jul 14 07:36:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 51093 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 28ED8202B9 for ; Tue, 14 Jul 2015 07:40:16 +0000 (UTC) Received: by wgfk9 with SMTP id k9sf551086wgf.1 for ; Tue, 14 Jul 2015 00:40: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: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=DLG5Z5oFKedS3xUdxgpQDL64uwoElmm24ZQBbCeBzj0+2wkBd/7E+wjQFFFeNZkHRn m3+DJRWucx2RmXL1AHoFEVeaZkCazuYDrO8yEqzOyIizjAxt41eN/mjwj5t+KquXc2ep UkVlK6tIOFYg1ifXKF6ocUTcJ4RrjfvxZeM/Tj5fO72qfyfNrz9WYS9/njo0ktqzQrF3 gKB9m6FHwMwZdllsvTBniucI21eE5MRXVcj6omvm3xU4wjT8H9ZE19wITJVHwooYRsTP DF2PUHaJJzT2a9HzJMo9E9wvvQmB5fY48vBNjW8pe/OZpv4JPgUAGToNqfOTZ2aelPz1 om/g== X-Gm-Message-State: ALoCoQkKmUURjLtd0C+s4nPhPzsV0V1Vvy3ImJHdUgfNUMHFnRDDlNJxNqhehmEwj7VB4YHT8kZc X-Received: by 10.152.179.136 with SMTP id dg8mr20650688lac.4.1436859615382; Tue, 14 Jul 2015 00:40:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.8.171 with SMTP id dl11ls7152lad.28.gmail; Tue, 14 Jul 2015 00:40:15 -0700 (PDT) X-Received: by 10.112.199.133 with SMTP id jk5mr37012863lbc.32.1436859615177; Tue, 14 Jul 2015 00:40:15 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id w9si161412laj.54.2015.07.14.00.40.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jul 2015 00:40:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbzr7 with SMTP id zr7so1108746lbb.1 for ; Tue, 14 Jul 2015 00:40:15 -0700 (PDT) X-Received: by 10.152.88.77 with SMTP id be13mr35768304lab.112.1436859615061; Tue, 14 Jul 2015 00:40:15 -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.108.230 with SMTP id hn6csp2195362lbb; Tue, 14 Jul 2015 00:40:14 -0700 (PDT) X-Received: by 10.66.65.228 with SMTP id a4mr77270421pat.65.1436859601378; Tue, 14 Jul 2015 00:40:01 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iw6si274272pbd.183.2015.07.14.00.40.00; Tue, 14 Jul 2015 00:40:01 -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 S1753448AbbGNHj4 (ORCPT + 26 others); Tue, 14 Jul 2015 03:39:56 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:34412 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426AbbGNHjx (ORCPT ); Tue, 14 Jul 2015 03:39:53 -0400 Received: by pacan13 with SMTP id an13so1358718pac.1 for ; Tue, 14 Jul 2015 00:39:53 -0700 (PDT) X-Received: by 10.66.62.229 with SMTP id b5mr69225210pas.81.1436859593239; Tue, 14 Jul 2015 00:39:53 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by smtp.gmail.com with ESMTPSA id pe3sm275937pdb.55.2015.07.14.00.39.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jul 2015 00:39:52 -0700 (PDT) From: Vaibhav Hiremath To: linux-i2c@vger.kernel.org Cc: wsa@the-dreams.de, robh+dt@kernel.org, robert.jarzmik@free.fr, yizhang@marvell.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vaibhav Hiremath Subject: [PATCH-v4 11/11] Documentation: binding: add sclk adjustment properties to i2c-pxa Date: Tue, 14 Jul 2015 13:06:50 +0530 Message-Id: <1436859410-28878-12-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436859410-28878-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1436859410-28878-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.172 as permitted sender) smtp.mail=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 {