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: 4466451 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 15A779F390 for ; Wed, 2 Jul 2014 15:41:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31CE62038E for ; Wed, 2 Jul 2014 15:41:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D69AE203AA for ; Wed, 2 Jul 2014 15:41:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755251AbaGBPln (ORCPT ); Wed, 2 Jul 2014 11:41:43 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:62987 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249AbaGBPlm (ORCPT ); Wed, 2 Jul 2014 11:41:42 -0400 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-samsung-soc@vger.kernel.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 Cc: linux-arm-kernel@lists.infradead.org, Kukjin Kim , Linus Walleij , Doug Anderson , Tomasz Figa 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== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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) */