From patchwork Tue Aug 26 14:10:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 4782141 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 BE618C0338 for ; Tue, 26 Aug 2014 14:13:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BD3F2015E for ; Tue, 26 Aug 2014 14:13:16 +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 768E22012D for ; Tue, 26 Aug 2014 14:13:15 +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 1XMHTE-0005p2-SL; Tue, 26 Aug 2014 14:11:36 +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 1XMHSm-0005J6-MN for linux-arm-kernel@lists.infradead.org; Tue, 26 Aug 2014 14:11: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 <0NAX0036J3IOC670@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 26 Aug 2014 15:13:36 +0100 (BST) X-AuditID: cbfec7f5-b7f776d000003e54-82-53fc956462aa Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id AB.CA.15956.4659CF35; Tue, 26 Aug 2014 15:10:44 +0100 (BST) 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 <0NAX00I7I3DQO020@eusync3.samsung.com>; Tue, 26 Aug 2014 15:10:44 +0100 (BST) From: Tomasz Figa To: linux-samsung-soc@vger.kernel.org Subject: [PATCH v3 4/5] ARM: dts: exynos4x12: Add utility macro to define pin sleep states Date: Tue, 26 Aug 2014 16:10:27 +0200 Message-id: <1409062228-14690-5-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 2.0.4 In-reply-to: <1409062228-14690-1-git-send-email-t.figa@samsung.com> References: <1409062228-14690-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHLMWRmVeSWpSXmKPExsVy+t/xq7opU/8EG3xrtLb4/vAUq8XfScfY LR7Nf8xs0bvgKpvFpsfXWC0u75rDZjHj/D4mi9uXeS3WHrnLbnHq+mc2ixvTW1gt1s94zWKx atcfRovLjWYOfB4tzT1sHr9/TWL0WPQ9y2PnrLvsHpuX1HtcOdHE6tHb/I7No2/LKkaPo3/Z PD5vkgvgiuKySUnNySxLLdK3S+DK6Nl9ga3gCGdF47wFLA2MD9i7GDk5JARMJJpObGKBsMUk Ltxbz9bFyMUhJLCUUeLrl0lMEE4fk8TD+4vZQKrYBNQkPjc8ArNFBFQlPrctYAcpYhbYyCzx 4+8EsLHCAjESGw+fZgKxWYCKju48xApi8wo4SbRPvw+1Tk5i1cZ9YDWcAs4SP59sBasRAqrZ +3A16wRG3gWMDKsYRVNLkwuKk9JzjfSKE3OLS/PS9ZLzczcxQsL46w7GpcesDjEKcDAq8fA+ SPsdLMSaWFZcmXuIUYKDWUmE90fSn2Ah3pTEyqrUovz4otKc1OJDjEwcnFINjDEH3Xa0rHnt Gu+XtjDI783L1qzA2wfXnhG03+8+zSAybvGdsqchSfJniz+8q+JJFBLeapm80P6p2Em+q99P 9b+1tDTiemNlGn2M3fnU388rudY0PTmskPQipCN80s+Sku6MAKMlAtcMdwZ3SsZ4XRRyzON8 GjB3S1SL36QA9iqvDKeTjosuK7EUZyQaajEXFScCAM25zvtBAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140826_071108_914588_C65995F6 X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Kukjin Kim , Russell King - ARM Linux , Arnd Bergmann , Tomasz Figa , linux-kernel@vger.kernel.org, Tomasz Figa , acourbot@nvidia.com, tomeu@tomeuvizoso.net, Olof Johansson , swarren@nvidia.com, drake@endlessm.com, linux-arm-kernel@lists.infradead.org, Marek Szyprowski 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, RCVD_IN_DNSWL_NONE, 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 adds a convenient macro which constructs an Exynos pinctrl pinconf node containing properties needed to configure sleep state of given pin with given parameters. It will be used by further patch which adds a large number of sleep states for pins that need such configuration on certain boards. Signed-off-by: Tomasz Figa --- arch/arm/boot/dts/exynos4x12-pinctrl.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/exynos4x12-pinctrl.dtsi b/arch/arm/boot/dts/exynos4x12-pinctrl.dtsi index 99b26df..927fec6 100644 --- a/arch/arm/boot/dts/exynos4x12-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos4x12-pinctrl.dtsi @@ -12,6 +12,22 @@ * published by the Free Software Foundation. */ +#define PIN_PULL_NONE 0 +#define PIN_PULL_DOWN 1 +#define PIN_PULL_UP 3 + +#define PIN_PDN_OUT0 0 +#define PIN_PDN_OUT1 1 +#define PIN_PDN_INPUT 2 +#define PIN_PDN_PREV 3 + +#define PIN_SLP(_pin, _mode, _pull) \ + _pin { \ + samsung,pins = #_pin; \ + samsung,pin-con-pdn = ; \ + samsung,pin-pud-pdn = ; \ + } + / { pinctrl@11400000 { gpa0: gpa0 {