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: 491797 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7971C140311 for ; Tue, 7 Jul 2015 05:29:03 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755342AbbGFT2f (ORCPT ); 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-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=4dqLwVfNU9oozn0gep3IODXnLLAe3DN566IZxWbAZfE=; b=XDmHidu/yKI2SJuRrN6CDQu8nerre9yiCQFEphBd5N0mF2RvB5Sv6Zh/x4GlPkeoyv Tao/7Zz6W4TEgmr9U18gcsm0O0nkpzFDYm4UdNL1IL+/oi3YRPL0JQkvsm+OS1XlBFfq 7tbHHdvivEH3/0DDVwpExIgei7qUWaOZckbGzYg6IICqWNQLHQy65nsh6bSQXglOCdjR o+9EtLHKrfWsUMLHyx8aC0/0vB0Nm7pGouM6ooy7a6+yfOzG55kLhJEgehPNn+azvA3h zV3+RewPyqZXmN0Wjf8NmsX0bui79eBhc6LAcrNjtr0COMbT8klHq8rlHhuHmkeJ6Ktw vLBg== X-Gm-Message-State: ALoCoQkYeJS5MuROSSbNdUX538ylulehCLqe6RgsyCTXgZOeST8faY8zDgDsN+mCpiVfuoOQLeSq 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: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 {