From patchwork Sun Aug 24 03:12:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Roszko X-Patchwork-Id: 4770081 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 981CEC033A for ; Sun, 24 Aug 2014 03:18:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C2F262012B for ; Sun, 24 Aug 2014 03:18:09 +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 EE92220158 for ; Sun, 24 Aug 2014 03:18:08 +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 1XLOFj-0003Om-2b; Sun, 24 Aug 2014 03:13:59 +0000 Received: from mail-qg0-x233.google.com ([2607:f8b0:400d:c04::233]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XLOFc-0003LA-7z for linux-arm-kernel@lists.infradead.org; Sun, 24 Aug 2014 03:13:53 +0000 Received: by mail-qg0-f51.google.com with SMTP id a108so11767574qge.24 for ; Sat, 23 Aug 2014 20:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pOHRAd6yklE+Mxh7vCGd1o5DXu9MdIA4qdg0EHk52yQ=; b=bGu270Eko+o2o7aqxDplyqngvBXdvY6Z91Gav+cMvz9AP4HErc6N8Eo8QJhxcA0Y32 libDC4qQDmtHClrofSid+Jl4EkTEwNK6bDvzLZziFeCkb/gJQDbUhr5IU4Q50PZqTtbB Fs+/aRF2pCZZm0d1kXx4vDB/+qoxgMRE/ERgrjZawl5wDUX5rZVmPMKgZieApqdniT4C VrBsKn/AT6bGHz32SJu37XPBhooePYprzUFYuNIAka6xMsSHOmWFZbIxPDTC5YtFFF6Q usfh9hfuq70Q4Y6eD4nxK8ghcovI2rIS89Fdn2j5RB6gC6b7bp3PPHz3dGcOz8tdbEFb ubgg== X-Received: by 10.224.4.73 with SMTP id 9mr23176412qaq.18.1408850006302; Sat, 23 Aug 2014 20:13:26 -0700 (PDT) Received: from localhost.localdomain (ool-2f142fe1.dyn.optonline.net. [47.20.47.225]) by mx.google.com with ESMTPSA id u5sm4207522qar.7.2014.08.23.20.13.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Aug 2014 20:13:25 -0700 (PDT) From: Marek Roszko To: plagnioj@jcrosoft.com Subject: [PATCH v2 3/3] pinctrl: at91: update documentation for drive strength options and tweaks Date: Sat, 23 Aug 2014 23:12:06 -0400 Message-Id: <1408849926-9603-3-git-send-email-mark.roszko@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408849926-9603-1-git-send-email-mark.roszko@gmail.com> References: <1408849926-9603-1-git-send-email-mark.roszko@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140823_201352_369153_0A4F452D X-CRM114-Status: GOOD ( 11.58 ) X-Spam-Score: -0.1 (/) Cc: Marek Roszko , linus.walleij@linaro.org, nicolas.ferre@atmel.com, linux-arm-kernel@lists.infradead.org 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=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 The drive strength patched introduced the atmel,sama5d-pinctrl compatible string. Drive strength is now an option for the CONFIG bits per pin. Also added note about MULTIDRIVE being equivalent to open-drain output and added missing "s" at the end of need everywhere in the bits descriptions. Signed-off-by: Marek Roszko --- .../bindings/pinctrl/atmel,at91-pinctrl.txt | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt index 02ab5ab..b7a93e8 100644 --- a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt @@ -19,6 +19,7 @@ such as pull-up, multi drive, etc. Required properties for iomux controller: - compatible: "atmel,at91rm9200-pinctrl" or "atmel,at91sam9x5-pinctrl" + or "atmel,sama5d3-pinctrl" - atmel,mux-mask: array of mask (periph per bank) to describe if a pin can be configured in this periph mode. All the periph and bank need to be describe. @@ -85,13 +86,20 @@ Required properties for pin configuration node: PIN_BANK 0 is pioA, PIN_BANK 1 is pioB... Bits used for CONFIG: -PULL_UP (1 << 0): indicate this pin need a pull up. -MULTIDRIVE (1 << 1): indicate this pin need to be configured as multidrive. -DEGLITCH (1 << 2): indicate this pin need deglitch. -PULL_DOWN (1 << 3): indicate this pin need a pull down. -DIS_SCHMIT (1 << 4): indicate this pin need to disable schmit trigger. -DEBOUNCE (1 << 16): indicate this pin need debounce. -DEBOUNCE_VAL (0x3fff << 17): debounce val. +PULL_UP (1 << 0): indicate this pin needs a pull up. +MULTIDRIVE (1 << 1): indicate this pin needs to be configured as multi-drive. + Multi-drive is equivalent to open-drain type output. +DEGLITCH (1 << 2): indicate this pin needs deglitch. +PULL_DOWN (1 << 3): indicate this pin needs a pull down. +DIS_SCHMIT (1 << 4): indicate this pin needs to the disable schmitt trigger. +DRIVE_STRENGTH (3 << 5): indicate the drive strength of the pin using the + following values: + 00 - No change (reset state value kept) + 01 - Low + 10 - Medium + 11 - High +DEBOUNCE (1 << 16): indicate this pin needs debounce. +DEBOUNCE_VAL (0x3fff << 17): debounce value. NOTE: Some requirements for using atmel,at91rm9200-pinctrl binding: