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: 49883 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7E2D9205DE for ; Mon, 15 Jun 2015 15:54:02 +0000 (UTC) Received: by wgla2 with SMTP id a2sf26085033wgl.1 for ; Mon, 15 Jun 2015 08:54:01 -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=uhcfnoBgHeGpiHoOuC6fGpQK3lNPhgM1YHU2EXHFZRU=; b=WVtUrxDzs1XtMK6Ii7NB2NSRwiTgZrdOH0APe7LoD/DLOIJc/AC+v+VXMMhAiWZPUc vJ2mIUxbDqmM1KSx8rFWGKpcNxLnU8qD7YEP7bwtKgVoRow7XXiKH3lXt8LM6jUxQJoT Enq86g5FZBCuhGfhkyIZ4hpxf5wtU0g71H2PNn/lrz9Rm4T7TWMATEDoj1eBm5xWV3HR u3PdSiHhFL43cKahMpu0DYBIWlT9irPPzYwXBMYcu1Fu2LvPWPVuAXujRHKpor54g9S6 NwofvoXnR/IDU+i/aUSPouOmM10JaWr5LGijHwbf2tF6ZM4WpxO0BEyrYuiTZdVNifp5 UsYw== X-Gm-Message-State: ALoCoQl2wMgHfw/THHQllUcii7KD6ZP11iqXH9F0/ytrvJBgjPUKTB1FglmlpxPgYjNYmgGZ9DzJ X-Received: by 10.152.9.3 with SMTP id v3mr30386046laa.6.1434383641693; Mon, 15 Jun 2015 08:54:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.27.65 with SMTP id r1ls912887lag.61.gmail; Mon, 15 Jun 2015 08:54:01 -0700 (PDT) X-Received: by 10.152.3.199 with SMTP id e7mr28586834lae.78.1434383641518; Mon, 15 Jun 2015 08:54:01 -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 jx2si10793364lbc.124.2015.06.15.08.54.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jun 2015 08:54:01 -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 lbbwc1 with SMTP id wc1so4439295lbb.2 for ; Mon, 15 Jun 2015 08:54:01 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr883796lbb.29.1434383641383; Mon, 15 Jun 2015 08:54:01 -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 hn6csp1509069lbb; Mon, 15 Jun 2015 08:54:00 -0700 (PDT) X-Received: by 10.68.252.38 with SMTP id zp6mr50118458pbc.159.1434383640345; Mon, 15 Jun 2015 08:54:00 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si18495084pdr.64.2015.06.15.08.53.59; Mon, 15 Jun 2015 08:54:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-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 S1754052AbbFOPx6 (ORCPT + 1 other); Mon, 15 Jun 2015 11:53:58 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:35094 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755826AbbFOPx6 (ORCPT ); Mon, 15 Jun 2015 11:53:58 -0400 Received: by pdbnf5 with SMTP id nf5so75893599pdb.2 for ; Mon, 15 Jun 2015 08:53:58 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, wsa@the-dreams.de, robert.jarzmik@free.fr, Vaibhav Hiremath 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> Sender: linux-i2c-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-i2c@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. 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 {