From patchwork Tue Jul 14 07:36:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 494887 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 C09181401CB for ; Tue, 14 Jul 2015 17:40:42 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752466AbbGNHjz (ORCPT ); Tue, 14 Jul 2015 03:39:55 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:33334 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752474AbbGNHjx (ORCPT ); Tue, 14 Jul 2015 03:39:53 -0400 Received: by pdbqm3 with SMTP id qm3so1428317pdb.0 for ; Tue, 14 Jul 2015 00:39:53 -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=gdB9W7Glprhm1WtSVtT8gSxW2yVV9IbM+iZjMRyIAFio1REWDO2/eOFJyIsg6HY4eH yQZZ4iqA5bVeQjKf48zMAf6YsBtQRe1h+2gZPUJeeIcFpq3+d0zFczDYlYR9YuIsqiF6 LE5myHVQGw+v3wwss+MhA6qDmzBqpReIb7QWbefZ9mNhwJfRLeaLth2y7kpQCSRb3H86 Qc4JKdKeqa02OIHvxsrGI3JFuwi96PVmYBrr++WD2rrdrOtnnbodfPNETBWDb/Hp/l/d oJ0bFhXmAj5GF0zenwBH8PXYTc4YYuqgnPOA/5AJA9GFJTCvIE/0Fnvxi031isGIaCQc zhGA== X-Gm-Message-State: ALoCoQlBV5L7OfFQQfxsUxmXyITc1YE+6wkIPzi8LSiSKVcNQWPo5V58cj7Z2D8tY0C0F4hFZMUm X-Received: by 10.66.62.229 with SMTP id b5mr69225210pas.81.1436859593239; Tue, 14 Jul 2015 00:39:53 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by smtp.gmail.com with ESMTPSA id pe3sm275937pdb.55.2015.07.14.00.39.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jul 2015 00:39:52 -0700 (PDT) From: Vaibhav Hiremath To: linux-i2c@vger.kernel.org Cc: wsa@the-dreams.de, robh+dt@kernel.org, robert.jarzmik@free.fr, yizhang@marvell.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vaibhav Hiremath Subject: [PATCH-v4 11/11] Documentation: binding: add sclk adjustment properties to i2c-pxa Date: Tue, 14 Jul 2015 13:06:50 +0530 Message-Id: <1436859410-28878-12-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436859410-28878-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1436859410-28878-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 {