From patchwork Fri Dec 5 11:00:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5443221 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 7B4719F30B for ; Fri, 5 Dec 2014 11:01:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DC6082035C for ; Fri, 5 Dec 2014 11:01:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0BF5D20253 for ; Fri, 5 Dec 2014 11:01:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751761AbaLELBY (ORCPT ); Fri, 5 Dec 2014 06:01:24 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:12086 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751053AbaLELBT (ORCPT ); Fri, 5 Dec 2014 06:01:19 -0500 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 <0NG3002JGW2UOX60@mailout3.w1.samsung.com>; Fri, 05 Dec 2014 11:04:06 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-1a-5481907a5c57 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id CF.8E.26295.A7091845; Fri, 05 Dec 2014 11:01:14 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NG3007TRVXWMB40@eusync1.samsung.com>; Fri, 05 Dec 2014 11:01:13 +0000 (GMT) From: Krzysztof Kozlowski To: Mike Turquette , Sylwester Nawrocki , Tomasz Figa , Kukjin Kim , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Javier Martinez Canillas , Linus Walleij , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, Vivek Gautam , Kevin Hilman Cc: Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski Subject: [PATCH v4 3/3] ARM: dts: exynos5420: Add clock for audss pinctrl (fixing GPIO setup failure) Date: Fri, 05 Dec 2014 12:00:54 +0100 Message-id: <1417777254-26579-4-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1417777254-26579-1-git-send-email-k.kozlowski@samsung.com> References: <1417777254-26579-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPLMWRmVeSWpSXmKPExsVy+t/xy7pVExpDDFZ3slhsnLGe1WL+kXOs Fm1XDrJbHP1dYPH6haFF/+PXzBZPNz9msjjb9IbdYsqf5UwWmx5fY7XYPP8Po8XlXXPYLGac 38dksfbIXXaLpxMuslkcftPOarFq1x9GB0GPv8+vs3jsnHWX3WPTqk42jzvX9rB5bF5S79G3 ZRWjx+dNcgHsUVw2Kak5mWWpRfp2CVwZn78cYSw4wFHxYzp/A2MHexcjJ4eEgInEpH3v2SBs MYkL99YD2VwcQgJLGSWaHq9kh3D6mCQuL+hnBKliEzCW2Lx8CViViMAfZon7E78ygzjMAkcZ Jab3vmUCqRIWSJd4tfUeWAeLgKrEpMYOZhCbV8BdYsOzx1D75CROHpvM2sXIwcEp4CHx/roA SFgIqKSrrZl5AiPvAkaGVYyiqaXJBcVJ6blGesWJucWleel6yfm5mxghgfx1B+PSY1aHGAU4 GJV4eH/ENYYIsSaWFVfmHmKU4GBWEuHl7wQK8aYkVlalFuXHF5XmpBYfYmTi4JRqYDzS+ftm r1Xxc2/7DwF6lWnWCUCHpVpyHfv68Vp+Vtfr1F6nUoYDAhc0FYzZMgV8uv9qZK769LrM5nvm epvzZ+59fHbr8HLvH1oNR04WaD+xzX+o9kPh4i3lp/dSC1T+fuJUuCL0Wvqf98PI0q3slovW zlzr+27qqTPn2y7/CmCI4XH/xNU1U4mlOCPRUIu5qDgRADQb6BlCAgAA 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 The pinctrl for audio subsystem needs 'mau_epll' clock to be enabled in order to properly access memory during GPIO setup. After introducing runtime PM to pl330 DMA driver the 'mau_epll' was gated, because the "amba" clock was disabled and there were no more users of mau_epll. This lead to system hang just before probing i2s0 because samsung_pinmux_setup() tried to access memory from audss block which was gated. Signed-off-by: Krzysztof Kozlowski Tested-by: Javier Martinez Canillas --- arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi index ba686e40eac7..c0ca0da36ade 100644 --- a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi @@ -696,6 +696,9 @@ }; pinctrl@03860000 { + clocks = <&clock CLK_MAU_EPLL>; + clock-names = "block"; + gpz: gpz { gpio-controller; #gpio-cells = <2>;