From patchwork Mon Jun 15 15:49:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 6610351 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 23E93C0020 for ; Mon, 15 Jun 2015 16:03:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EA28C20138 for ; Mon, 15 Jun 2015 16:03:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B83A420737 for ; Mon, 15 Jun 2015 16:03:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z4WoV-0006ih-5n; Mon, 15 Jun 2015 16:00:43 +0000 Received: from mail-pa0-f44.google.com ([209.85.220.44]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z4WiJ-0000CU-AV for linux-arm-kernel@lists.infradead.org; Mon, 15 Jun 2015 15:54:20 +0000 Received: by pacyx8 with SMTP id yx8so68117673pac.2 for ; Mon, 15 Jun 2015 08:53:58 -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=yepx7y9Sj102ST56uzBxVSawoVQPhN3AcL3R2Dq15ys=; b=MGn8Ur1iGMQ3Kh4Y8tp0ZmC/UmX2z0wlSXI6mmoVYt1Jo4XYO0PmLR2iUC55f+zdbD HB25ZCXjpd3gJEjyyOIJfr6HdwrlZUuCfrkXAy8tT/dLdXvjx/uieaPRTP6tn2TFRekA 0+m9NGP+vOUuIN1qt1COkuAbzBiE6jCoGuPbAHoPyZDGXzXjvMubFHn04enHJ9cQlsJM l37nWu4C6MlVfxi/Fl8BWw1coOFvaKwCFkIed05fWr7MixNAYoxWZkhqxDMh/fmxoZsd I9SoL5ydes4Ub0hrh4vCr19o+tPrLG4Rzi2gCDT2F2YEcj3eFGn/MQGthn6Qy7HIVVQx TJgw== X-Gm-Message-State: ALoCoQkiIz++5JJx8+/J8x7qJZ2pKm9JrabDcS13MvwSc05vLWBK4V4W67GwOJhyvblocdrmiUxj X-Received: by 10.68.135.73 with SMTP id pq9mr49680575pbb.46.1434383638017; Mon, 15 Jun 2015 08:53:58 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by mx.google.com with ESMTPSA id fs16sm12662484pdb.12.2015.06.15.08.53.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Jun 2015 08:53:56 -0700 (PDT) From: Vaibhav Hiremath To: linux-i2c@vger.kernel.org Subject: [PATCH-V2 12/12] Documentation: binding: add sclk adjustment properties to i2c-pxa Date: Mon, 15 Jun 2015 21:19:59 +0530 Message-Id: <1434383399-2370-13-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434383399-2370-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1434383399-2370-1-git-send-email-vaibhav.hiremath@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150615_085419_447014_757EB400 X-CRM114-Status: GOOD ( 10.00 ) X-Spam-Score: -0.7 (/) Cc: robert.jarzmik@free.fr, Vaibhav Hiremath , linux-arm-kernel@lists.infradead.org, wsa@the-dreams.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 With addition of PXA910 family of devices, the TWSI module supports new feature which allows us to adjust SCLK. With DT properties 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) 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..0fafd91 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 counter bit-field + is same for both. + - i2c-sclk-high-time-ns : SCLK high time (thigh), Used in case of high speed + mode. + 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 {