From patchwork Mon Jul 6 19:24:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 50788 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E6AB7229FC for ; Mon, 6 Jul 2015 19:28:51 +0000 (UTC) Received: by laer2 with SMTP id r2sf50288558lae.3 for ; Mon, 06 Jul 2015 12:28:50 -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=Pv55wOGsfgS/L/oJSYuqzityU7PKHXp1+4CmKhB2utk=; b=GjTji5YPcYwd7NpAc3ek9ZPP8Xyssyjk3rEK212be53mIfqLJOXpZzrOBHNcCQdhWL XjT7JwCPocnxjU19LHjoAx+jEND5eT9wsxzZok18K7Gc9Jpkb8+oF2dLnRX1+U+47kGp SxZfrUmww25wY3WCxmJT2bEMpwQlv7dHGUBqoTekO2+nf5pRdTC3Cb2ycBj6s54SME7w w+fSlDDj8OcaZYTGBVkfz7yjDXPUvfqobXAwK2EGZuRl95exOjSP87DGbnLS5PPtCs0v OaTDLdqF4ew0kkHt3LZUBTaJ/pmfi+PrKQCyOzrxyJcNw8+jgjbFRRXx5bTU+jZ0qe6x 5tDw== X-Gm-Message-State: ALoCoQmewg/NnDuWf0EdHMopSCM9uCOCuOLeW4h4hfs88byNbNoTh1tvpq+ktJef4SH8RU0otH1W X-Received: by 10.112.255.66 with SMTP id ao2mr202868lbd.15.1436210930832; Mon, 06 Jul 2015 12:28:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.180.135 with SMTP id do7ls106898lac.109.gmail; Mon, 06 Jul 2015 12:28:50 -0700 (PDT) X-Received: by 10.112.30.176 with SMTP id t16mr424517lbh.30.1436210930637; Mon, 06 Jul 2015 12:28:50 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id p1si16019980laj.140.2015.07.06.12.28.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jul 2015 12:28:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lagc2 with SMTP id c2so166996209lag.3 for ; Mon, 06 Jul 2015 12:28:50 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr401529lbc.41.1436210930381; Mon, 06 Jul 2015 12:28:50 -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 hn6csp1921504lbb; Mon, 6 Jul 2015 12:28:49 -0700 (PDT) X-Received: by 10.68.139.193 with SMTP id ra1mr750030pbb.121.1436210921139; Mon, 06 Jul 2015 12:28:41 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16si30478462pdm.244.2015.07.06.12.28.39; Mon, 06 Jul 2015 12:28:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 S1755342AbbGFT2f (ORCPT + 8 others); Mon, 6 Jul 2015 15:28:35 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:35925 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755414AbbGFT23 (ORCPT ); Mon, 6 Jul 2015 15:28:29 -0400 Received: by pddu5 with SMTP id u5so23479938pdd.3 for ; Mon, 06 Jul 2015 12:28:28 -0700 (PDT) X-Received: by 10.69.19.202 with SMTP id gw10mr901226pbd.72.1436210907986; Mon, 06 Jul 2015 12:28:27 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by mx.google.com with ESMTPSA id x7sm19293964pas.28.2015.07.06.12.28.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jul 2015 12:28:27 -0700 (PDT) From: Vaibhav Hiremath To: linux-i2c@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, wsa@the-dreams.de, robert.jarzmik@free.fr, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, Vaibhav Hiremath Subject: [PATCH-v3 11/11] Documentation: binding: add sclk adjustment properties to i2c-pxa Date: Tue, 7 Jul 2015 00:54:55 +0530 Message-Id: <1436210695-19159-12-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436210695-19159-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1436210695-19159-1-git-send-email-vaibhav.hiremath@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.41 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 {