From patchwork Tue Jul 21 12:41:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 51307 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id BDC2222AA3 for ; Tue, 21 Jul 2015 12:46:32 +0000 (UTC) Received: by lbcjj5 with SMTP id jj5sf13296425lbc.1 for ; Tue, 21 Jul 2015 05:46:31 -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=L7vlrjOoluoM7b4IOhNoX4eToc94M8ZKRGVN20G0xlKLuTIuW1Xwq1f0lnIVd09uql vKNBxFn7eB60UnNTF7JUIpEcTiSO9yfuh9VRENrT+1U7LdRNlxQ1jDrGsh0WENevcNHZ mxqUilfSm11wV+67OvOmecS/naYnaLvQPNtMPtYALsFlHaEr9JEi5NUAidEx+90HxA3z 3aLU1hAYyt2jxFEuJVwHkIoamDbhR3Doh94qyFGAg3lezWSUZ5QZPZdDxadoMqzz6KfS mFT/iAv1xyL7SyXNyvzsPJol1rNGRpN+NyVvJ2/DMQHVMaE0q2JHR3tWAlRLZ0QkE81z lkDA== X-Gm-Message-State: ALoCoQlAfNHZhqwVFvMyXWQ5xMDfXcOSsos3QKqaxzOKIHfd6a0K1RtO3O2qCkHZz7ktmHhngkbR X-Received: by 10.112.253.135 with SMTP id aa7mr17337116lbd.11.1437482791514; Tue, 21 Jul 2015 05:46:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.196 with SMTP id a4ls766896lak.27.gmail; Tue, 21 Jul 2015 05:46:31 -0700 (PDT) X-Received: by 10.152.37.37 with SMTP id v5mr32285762laj.11.1437482791337; Tue, 21 Jul 2015 05:46:31 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id t12si20682343lby.128.2015.07.21.05.46.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Jul 2015 05:46:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by laem6 with SMTP id m6so116913260lae.0 for ; Tue, 21 Jul 2015 05:46:31 -0700 (PDT) X-Received: by 10.112.55.207 with SMTP id u15mr32561016lbp.88.1437482791223; Tue, 21 Jul 2015 05:46:31 -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.7.198 with SMTP id l6csp1424303lba; Tue, 21 Jul 2015 05:46:30 -0700 (PDT) X-Received: by 10.60.96.35 with SMTP id dp3mr32153722oeb.47.1437482787860; Tue, 21 Jul 2015 05:46:27 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id an7si9225740pad.131.2015.07.21.05.46.26; Tue, 21 Jul 2015 05:46:27 -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 S932830AbbGUMqW (ORCPT + 28 others); Tue, 21 Jul 2015 08:46:22 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:34877 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932785AbbGUMqU (ORCPT ); Tue, 21 Jul 2015 08:46:20 -0400 Received: by pdrg1 with SMTP id g1so120233546pdr.2 for ; Tue, 21 Jul 2015 05:46:19 -0700 (PDT) X-Received: by 10.66.55.66 with SMTP id q2mr72440413pap.94.1437482779733; Tue, 21 Jul 2015 05:46:19 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by smtp.gmail.com with ESMTPSA id f4sm27378854pdc.95.2015.07.21.05.46.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Jul 2015 05:46:18 -0700 (PDT) From: Vaibhav Hiremath To: linux-arm-kernel@lists.infradead.org Cc: robert.jarzmik@free.fr, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, wsa@the-dreams.de, Vaibhav Hiremath Subject: [PATCH-v5 4/5] Documentation: binding: add sclk adjustment properties to i2c-pxa Date: Tue, 21 Jul 2015 18:11:05 +0530 Message-Id: <1437482466-16126-5-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437482466-16126-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1437482466-16126-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.215.48 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 {