From patchwork Wed Nov 29 11:35:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 119965 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2933411qgn; Wed, 29 Nov 2017 03:35:31 -0800 (PST) X-Google-Smtp-Source: AGs4zMb3aJ3b4R7u4DiwYmO+GKUbkPThX+as/h3jhnMLMPaHAhidD4t5FDkoIjf1csN3BPjA/oLC X-Received: by 10.99.107.7 with SMTP id g7mr2416007pgc.387.1511955331639; Wed, 29 Nov 2017 03:35:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511955331; cv=none; d=google.com; s=arc-20160816; b=JwtEkUtXmad59hRtqm/W92pbA3EXZXmIhvE+WoRyzLU6UWjftH3hKHGPf449L7a1PI cam7+5TMt0R9w+2MRU435d35WQkPafZ3gZ/303LICo1/PGjNhstpVbkYbtQ+k4+9sxSt Xk+NCeYpnHUPHaiGU4hUjjY2BgLOnQtnhcUeMRjgel+MTXc2A4e0tyqys1dQqFkUVdkc p2GngsBaKASDe685aiQntcu0NgSDOyAmgplu81pUX8m7450ylFHxvFBwo9eiQMKeG3xZ M4W8LfioOkp9FX0JO+HBbCuvPrCKYEA4oG62hIp1zb8ed2vUJvUeAsqpGt9Qj8vVnsSs 6R0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=liEHDBnD6GxC6V3zqXDMMcURzhxfKqq9yytGYwe83ww=; b=EAuUvEZJyzsGC+ldwuFiRKHojfNPV6JG7pjE3YhUFfQHK5CI1itewRF9AEvsPwxzad /AqKDE3gK64WYlBjExXhUcsnjNct6SKMGdXjOwYssW+rfYLNTxL7apT3ert/wFxLA01c XfdkOS+l1YKcwC+jOPqmbBA3iszcN0h0dTJae0IiyTSEayvlCl/RrY2sEegdVtczEbDd 3Ngn3t93I1hq9B1flSZ+mFZHEYaBMUTRTh82cB2454maLnO42gB9HAhmRelAqVsMRhWf McyQnEcxtN8Tgfhgpitb71IkwWIdhkvxqmBKtwjQJ1Gh1kU2dNlbiKR6hKGbqurbbJTQ lY7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=YLB8Wyi/; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 71si1147934plf.612.2017.11.29.03.35.31; Wed, 29 Nov 2017 03:35:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=YLB8Wyi/; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752137AbdK2Lfa (ORCPT + 3 others); Wed, 29 Nov 2017 06:35:30 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:59313 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752530AbdK2Lf3 (ORCPT ); Wed, 29 Nov 2017 06:35:29 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20171129113527euoutp02027218ca892f0dd9c6ed7ca81e8c26b2~7i1weN-8u2415924159euoutp02a; Wed, 29 Nov 2017 11:35:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20171129113527euoutp02027218ca892f0dd9c6ed7ca81e8c26b2~7i1weN-8u2415924159euoutp02a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1511955327; bh=qzgZiLqgPFXKXDazfLJybphkiKTQs8r0LVt6PPAFXuQ=; h=From:To:Cc:Subject:Date:References:From; b=YLB8Wyi/JA6lGY6N+Ij+R/tV53axX5aImeHRXX/I3a4ZVBEYXs8N1Y5tUBAtx22jP IbEMopktbgeUXgL7irWQ8O5TyEOi943YT7SEsfri9Z9IdgDy1fl+l8so10Yt0i2dvZ /jzBzhVF5bzSaj+xZJ9cQdwyGQnACpEJjC5tAtGc= Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171129113526eucas1p2c26769ad6f9657337c8653c724c655ba~7i1v1WCkF0205802058eucas1p24; Wed, 29 Nov 2017 11:35:26 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3.samsung.com (EUCPMTA) with SMTP id CF.D3.12867.E7B9E1A5; Wed, 29 Nov 2017 11:35:26 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171129113526eucas1p11045cbb1dcdd42a68c2f5ba81a635213~7i1vCxEmG1279612796eucas1p1W; Wed, 29 Nov 2017 11:35:26 +0000 (GMT) X-AuditID: cbfec7f2-f793b6d000003243-c4-5a1e9b7ee7e8 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 05.D2.20118.E7B9E1A5; Wed, 29 Nov 2017 11:35:26 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P0600H7SG6YMK80@eusync1.samsung.com>; Wed, 29 Nov 2017 11:35:26 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v2] ARM: dts: exynos: Add audio power domain support to Exynos542x SoCs Date: Wed, 29 Nov 2017 12:35:14 +0100 Message-id: <20171129113514.15988-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.15.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsWy7djPc7p1s+WiDBZd0rbYOGM9q8X58xvY LWac38dksfbIXXaLw2/aWR1YPTat6mTz6NuyitHj8ya5AOYoLpuU1JzMstQifbsEroyOr/+Y C34IVjyZ2MTcwDiDr4uRg0NCwETiwoaULkZOIFNM4sK99WxdjFwcQgJLGSVePdwM5XxmlNgw 4SQbRJWJxL8Ny9lBbCGBZYwS/ycnQhQ1MEm86t7OApJgEzCU6HrbBdYgIqAq8bltATtIEbPA XkaJQ9MawRLCApESR59OYQSxWYCK7nUcYAY5iVfAVmJyswnEMnmJxd93gl0hIXCVVaLt3g8m iLNdJJb9Y4WoEZZ4dXwLO4QtI3F5cjcLhN3PKNHUqg1hz2CUOPeWF8K2ljh8/CJYL7MAn8Sk bdOZIUbySnS0CUGUeEg8f97JBGE7Srye+oQNpERIIFbi4EXXCYxSCxgZVjGKpJYW56anFhvr FSfmFpfmpesl5+duYgRG2Ol/xz/tYPx6wuoQowAHoxIP74UVslFCrIllxZW5hxglOJiVRHg3 eMlFCfGmJFZWpRblxxeV5qQWH2KU5mBREue1jWqLFBJITyxJzU5NLUgtgskycXBKNTCyGJV+ 2ijJ/ceElXnLAu+9ybX6Fzie823+FSTxY8/VuXtuqKwLcjz6SD1nZZD0n9B701j8LVvyJBa/ KAzpW+AZUs0l6CWQF/1N4aOd7bIdS15XPjMUvDfprujG6OIlHDtWKsW/S7yt3eG9QUqYxZ7p S47j3bSN6foyRi9/nTxbLZr9wfW75DIlluKMREMt5qLiRACYyTCwrAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKJMWRmVeSWpSXmKPExsVy+t/xy7p1s+WiDPZPY7fYOGM9q8X58xvY LWac38dksfbIXXaLw2/aWR1YPTat6mTz6NuyitHj8ya5AOYoLpuU1JzMstQifbsEroyOr/+Y C34IVjyZ2MTcwDiDr4uRk0NCwETi34bl7BC2mMSFe+vZQGwhgSWMEj9PKUHYTUwS57bHgdhs AoYSXW+7wGpEBFQlPrctAOrl4mAW2M8ocX7rM2aQhLBApMTRp1MYQWwWoKJ7HQeA4hwcvAK2 EpObTSB2yUss/r6TbQIj9wJGhlWMIqmlxbnpucVGesWJucWleel6yfm5mxiBnt927OeWHYxd 74IPMQpwMCrx8F5YIRslxJpYVlyZe4hRgoNZSYR3g5dclBBvSmJlVWpRfnxRaU5q8SFGaQ4W JXHe3j2rI4UE0hNLUrNTUwtSi2CyTBycUg2MXlf6/aff9j/m/uP15Ly2Ox933HPZkMR0unwK n2T2w9efRY7YXcyeaHFr4dSw0+flVnmbXKzTnmkrafrqctbl6Vfcdv6b55xxSKR2b4yupsuq yQZnfDK2dxrGKM9Of7/0ooaVi+Ws3W+eiWqelWXg/PRpR3Je6s8LH/S7+ETfWxlMOZeZ/sJY SImlOCPRUIu5qDgRALPfmhv4AQAA X-CMS-MailID: 20171129113526eucas1p11045cbb1dcdd42a68c2f5ba81a635213 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171129113526eucas1p11045cbb1dcdd42a68c2f5ba81a635213 X-RootMTR: 20171129113526eucas1p11045cbb1dcdd42a68c2f5ba81a635213 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Audio power domain includes following hardware modules: Pin controller for GPZ bank, AudioSS clock controller, PL330 ADMA device and Exynos I2S controller. Signed-off-by: Marek Szyprowski --- Currently this domain will not be turned off, because pinctrl driver don't support runtime PM and PL330 ADMA requires irq-safe runtime PM. This will be fixed in the future. Issues pointed in the discussion of v1 has been resolved by commit 07731019c59c ("pinctrl: samsung: Move retention control from mach-exynos to the pinctrl driver"). Best regards Marek Szyprowski Samsung R&D Institute Poland Changelog: v2: - added domain label v1: https://patchwork.kernel.org/patch/9485083/ - initial version --- arch/arm/boot/dts/exynos5420.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.15.0 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" 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.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 8aa2cc7aa125..933075bfce2a 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -188,6 +188,7 @@ clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MAU_EPLL>, <&clock CLK_SCLK_MAUDIO0>, <&clock CLK_SCLK_MAUPCM0>; clock-names = "pll_ref", "pll_in", "sclk_audio", "sclk_pcm_in"; + power-domains = <&mau_pd>; }; mfc: codec@11000000 { @@ -322,6 +323,13 @@ clock-names = "oscclk", "clk0", "clk1", "clk2", "asb0", "asb1"; }; + mau_pd: power-domain@100440E0 { + compatible = "samsung,exynos4210-pd"; + reg = <0x100440E0 0x20>; + #power-domain-cells = <0>; + label = "MAU"; + }; + pinctrl_0: pinctrl@13400000 { compatible = "samsung,exynos5420-pinctrl"; reg = <0x13400000 0x1000>; @@ -356,6 +364,7 @@ compatible = "samsung,exynos5420-pinctrl"; reg = <0x03860000 0x1000>; interrupts = ; + power-domains = <&mau_pd>; }; amba { @@ -374,6 +383,7 @@ #dma-cells = <1>; #dma-channels = <6>; #dma-requests = <16>; + power-domains = <&mau_pd>; }; pdma0: pdma@121A0000 { @@ -446,6 +456,7 @@ samsung,idma-addr = <0x03000000>; pinctrl-names = "default"; pinctrl-0 = <&i2s0_bus>; + power-domains = <&mau_pd>; status = "disabled"; };