From patchwork Wed Jul 2 15:41:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 4466501 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8BCCF9F390 for ; Wed, 2 Jul 2014 15:44:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A3470203B8 for ; Wed, 2 Jul 2014 15:44:56 +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 B8A622038E for ; Wed, 2 Jul 2014 15:44:54 +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 1X2MgX-0007Mr-8C; Wed, 02 Jul 2014 15:43:01 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X2Mfg-0006ki-T4 for linux-arm-kernel@lists.infradead.org; Wed, 02 Jul 2014 15:42:09 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N830062RCXDQ750@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 02 Jul 2014 16:41:37 +0100 (BST) X-AuditID: cbfec7f5-b7f626d000004b39-a0-53b428322cb7 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 99.B8.19257.23824B35; Wed, 02 Jul 2014 16:41:38 +0100 (BST) Received: from AMDC1227.digital.local ([106.116.147.199]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N8300DO3CX9L0B0@eusync1.samsung.com>; Wed, 02 Jul 2014 16:41:38 +0100 (BST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Subject: [PATCH 6/6] pinctrl: samsung: Allow pin value to be initialized using pinfunc Date: Wed, 02 Jul 2014 17:41:04 +0200 Message-id: <1404315664-3174-7-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.9.3 In-reply-to: <1404315664-3174-1-git-send-email-t.figa@samsung.com> References: <1404315664-3174-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrAJMWRmVeSWpSXmKPExsVy+t/xy7pGGluCDTqm8VmcXXaQzaJ3wVU2 iyl/ljNZbHp8jdVixvl9TBbrZ7xmcWDzmN1wkcXjzrU9bB6bl9R79G1ZxejxeZNcAGsUl01K ak5mWWqRvl0CV8aXxYvYCr7yVpxo+s3UwPiIu4uRk0NCwETizIdTTBC2mMSFe+vZuhi5OIQE ljJKrL76lAXC6WOS+PSshQ2kik1ATeJzwyMwW0RAVeJz2wJ2kCJmgcOMEocWHmABSQgLREi0 /77BDGKzABW9eNbICmLzCjhKzH66kRlinZxE77Y3QDYHB6eAk8SzF94gYSGgkofvFjFNYORd wMiwilE0tTS5oDgpPddIrzgxt7g0L10vOT93EyMklL7uYFx6zOoQowAHoxIP7wv9TcFCrIll xZW5hxglOJiVRHhPCGwJFuJNSaysSi3Kjy8qzUktPsTIxMEp1cAY73cjqTz+eLro1Sapb19r 3dnuJDn9LSp4I5DxX/3nbf8bTFZ9B+5/1sjyVjI3DXeXazxdpj/h9Y8j5RN3F9sb8LTW36pz 3v667V7KV8d1aXEvXiUfjtqY8HDhNI6v/F6JX3sOHW5fcvWOXNPfFOuwWxwxChk9zhLl5Xkf lzi4/so+/3+rarwSS3FGoqEWc1FxIgD3iTDAAwIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140702_084209_148320_0CB338B3 X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Tomasz Figa , Linus Walleij , Kukjin Kim , Doug Anderson , 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=-1.9 required=5.0 tests=BAYES_00, T_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 This patch extends the range of settings configurable via pinfunc API to cover pin value as well. This allows configuration of default values of pins, which is useful for pins that are not supposed to be used by any dedicated driver, but need certain board-specific setting. Signed-off-by: Tomasz Figa Acked-by: Kyungmin Park --- Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt | 1 + drivers/pinctrl/pinctrl-samsung.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt index 464b2bb..e82aaf4 100644 --- a/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt @@ -75,6 +75,7 @@ Required Properties: "samsung,pins" property of the child node. The following pin configuration properties are supported. + - samsung,pin-val: Initial value of pin output buffer. - samsung,pin-pud: Pull up/down configuration. - samsung,pin-drv: Drive strength configuration. - samsung,pin-pud-pdn: Pull up/down configuration in power down mode. diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c index caa6dbe..76de677 100644 --- a/drivers/pinctrl/pinctrl-samsung.c +++ b/drivers/pinctrl/pinctrl-samsung.c @@ -47,6 +47,7 @@ static struct pin_config { { "samsung,pin-drv", PINCFG_TYPE_DRV }, { "samsung,pin-con-pdn", PINCFG_TYPE_CON_PDN }, { "samsung,pin-pud-pdn", PINCFG_TYPE_PUD_PDN }, + { "samsung,pin-val", PINCFG_TYPE_DAT }, }; /* Global list of devices (struct samsung_pinctrl_drv_data) */