From patchwork Fri Dec 23 12:24:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 88939 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp3296175qgi; Fri, 23 Dec 2016 04:25:26 -0800 (PST) X-Received: by 10.99.45.134 with SMTP id t128mr25483447pgt.86.1482495925963; Fri, 23 Dec 2016 04:25:25 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y67si34013481pfb.71.2016.12.23.04.25.25; Fri, 23 Dec 2016 04:25:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932271AbcLWMZY (ORCPT + 4 others); Fri, 23 Dec 2016 07:25:24 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:51553 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761190AbcLWMZW (ORCPT ); Fri, 23 Dec 2016 07:25:22 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OIN028DD168COA0@mailout2.samsung.com>; Fri, 23 Dec 2016 21:25:20 +0900 (KST) Received: from epsmges1p1.samsung.com (unknown [182.195.42.53]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20161223122520epcas1p2e900fd1f30984ba32bcd462f693f4633~S4i9uGlM_3012130121epcas1p2p; Fri, 23 Dec 2016 12:25:20 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 98.03.05883.0B71D585; Fri, 23 Dec 2016 21:25:20 +0900 (KST) Received: from epcpsbgm1new.samsung.com (u26.gpu120.samsung.co.kr [203.254.230.26]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20161223122520epcas1p443154371ae2f94b89e738051780a8e6b~S4i9evQTF1538015380epcas1p4E; Fri, 23 Dec 2016 12:25:20 +0000 (GMT) X-AuditID: b6c32a35-f799b6d0000016fb-00-585d17b0fe6c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 41.21.28252.0B71D585; Fri, 23 Dec 2016 21:25:20 +0900 (KST) Received: from AMDC2765.digital.local ([106.116.147.25]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OIN00JTK15R7DD0@mmp2.samsung.com>; Fri, 23 Dec 2016 21:25:20 +0900 (KST) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Ulf Hansson , Bartlomiej Zolnierkiewicz Subject: [PATCH 2/9] ARM: dts: exynos: Add pinctrl sleep state for 542x i2s module Date: Fri, 23 Dec 2016 13:24:42 +0100 Message-id: <1482495889-6201-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1482495889-6201-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEIsWRmVeSWpSXmKPExsWy7bCmge4G8dgIg7lbNCw2zljPanH+/AZ2 iyl/ljNZbHp8jdVi8/w/jBafe48wWsw4v4/JYu2Ru+wWh9+0s1qs2gWUOL423IHbY+esu+we m1Z1snncubaHzWPzknqPvi2rGD0+b5ILYIvisklJ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nRoYuRC8j+xSjRsec8WBGbgKFE19suNpCEiEAzo0TD kl4wh1lgB5PE5LNrmEGqhAVCJL79OAc2ikVAVWL93yOMIDavgLtE19V2Roh1chInj01mBbE5 BTwktm54xQ6x2l3iwvaH7BMYeRcwMqxilEgtSC4oTkrPNcxLLdcrTswtLs1L10vOz93ECI6C Z1I7GA/ucj/EKMDBqMTDe+JsTIQQa2JZcWXuIUYJDmYlEd4pwrERQrwpiZVVqUX58UWlOanF hxhNgQ6byCwlmpwPjNC8knhDE3MTc2MDC3NLSxMjJXHextnPwoUE0hNLUrNTUwtSi2D6mDg4 pRoYZ3zt1l+XGVIZ0z/B26mb+4+Y8SqOfQoO9fuemKio17/p7/Weqad+5evMutuqnyts2lsn 3irN5w2SW7i47cdF3bwpc7x3+EtYybBOs/4tUh977nW0aNh8uyOsLNZbZqy4FTgrzbN2iuvv FL8S47xUcz3lw0fnvJj0oeCA3aGcsid17Ixua1OVWIozEg21mIuKEwF8B9ydmAIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161223122520epcas1p443154371ae2f94b89e738051780a8e6b X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRs=?= =?UTF-8?B?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRtT?= =?UTF-8?B?YW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 101P X-HopCount: 7 X-CMS-RootMailID: 20161223122520epcas1p443154371ae2f94b89e738051780a8e6b X-RootMTR: 20161223122520epcas1p443154371ae2f94b89e738051780a8e6b References: <1482495889-6201-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Add a special "sleep" state for Exynos I2S module. This state will be used to let I2S driver to notify pin controller that it is ready for turning power off, so the pin controller can also change its runtime state to suspended and in the result let power domain to turn off. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 11 +++++++++++ arch/arm/boot/dts/exynos5420.dtsi | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi index 3924b4fafe72..52983b6a6859 100644 --- a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi @@ -720,4 +720,15 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + i2s0_bus_slp: i2s0-bus-slp { + samsung,pins = "gpz-0", "gpz-1", "gpz-2", "gpz-3", + "gpz-4", "gpz-5", "gpz-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + samsung,pin-con-pdn = ; + samsung,pin-pud-pdn = ; + samsung,off-state; + }; }; diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 832cb56c514e..0a7ecdd4c5de 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -444,8 +444,9 @@ clock-output-names = "i2s_cdclk0"; #sound-dai-cells = <1>; samsung,idma-addr = <0x03000000>; - pinctrl-names = "default"; + pinctrl-names = "default", "sleep"; pinctrl-0 = <&i2s0_bus>; + pinctrl-1 = <&i2s0_bus_slp>; status = "disabled"; };