From patchwork Tue Nov 19 17:15:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 3203411 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 20C899F26C for ; Tue, 19 Nov 2013 17:17:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF4BD201E7 for ; Tue, 19 Nov 2013 17:17:19 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A6F2420336 for ; Tue, 19 Nov 2013 17:17:18 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Viouw-00026N-7b; Tue, 19 Nov 2013 17:16:50 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vioup-00054a-KP; Tue, 19 Nov 2013 17:16:43 +0000 Received: from mailout4.w1.samsung.com ([210.118.77.14]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vioue-00051E-Ok for linux-arm-kernel@lists.infradead.org; Tue, 19 Nov 2013 17:16:34 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MWI00HGJTASPMC0@mailout4.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 19 Nov 2013 17:16:08 +0000 (GMT) X-AuditID: cbfec7f5-b7fe66d00000432e-a9-528b9cd89205 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id E5.27.17198.8DC9B825; Tue, 19 Nov 2013 17:16:08 +0000 (GMT) Received: from amdc1227.digital.local ([106.116.147.199]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MWI000H3TATKG90@eusync3.samsung.com>; Tue, 19 Nov 2013 17:16:08 +0000 (GMT) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] pinctrl: samsung: Allow pin value to be initialized using pinfunc. Date: Tue, 19 Nov 2013 18:15:51 +0100 Message-id: <1384881351-10782-1-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.8.4.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphluLIzCtJLcpLzFFi42I5/e/4Vd0bc7qDDNYuFreYf+Qcq8XZZQfZ LP4/es1q0bvgKpvF2aY37BZT/ixnstj0+BqrxeVdc9gsZpzfx2Sx9shddotXB9tYLNbPeM1i cWzGEkYHXo/ZDRdZPO5c28PmsXlJvUffllWMHtuvzWP2+LxJzmPj3NAA9igum5TUnMyy1CJ9 uwSujJmz17MX/OKp6Gxewd7A+Jeri5GDQ0LARGLh37guRk4gU0ziwr31bF2MXBxCAksZJZ6f 3AXl9DFJdO25yghSxSagJvG54REbiC0ioCExpesxO0gRs8ATZom1G14xgySEBUIlPj16xg5i swioSvxb384EYvMKOEnM/trLArFOQWLzpEvMExi5FzAyrGIUTS1NLihOSs810itOzC0uzUvX S87P3cQICbmvOxiXHrM6xCjAwajEwzvRvStIiDWxrLgy9xCjBAezkghvTX13kBBvSmJlVWpR fnxRaU5q8SFGJg5OqQbGswHHQxbtVV2x3cpv65//a3Q7ZkiyevhdPLb8+uXi+wbVXavKRd3S jqzlebFVPjdK2fmFgbvMP9WNJT1BmVEdUcGi6RfeMfusWt2S/+ZS8wq3+nJFHUH5bN1r9sfT 921ZJG65dE/nhf9sb2qbdLnfruR/tcq9rt+P79lsprKegk2KC04cndCvxFKckWioxVxUnAgA vhizFBcCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131119_121632_951114_0F8B42FB X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.4 (-------) Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, =?UTF-8?q?Heiko=20St=C3=BCbner?= , Stephen Warren , Linus Walleij , Doug Anderson , linux-kernel@vger.kernel.org, Kyungmin Park , Kukjin Kim , Thomas Abraham , Tomasz Figa , Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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. 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 fe34cbb..ed4cc9c 100644 --- a/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt @@ -74,6 +74,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 c752de4..6b2194a 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) */