From patchwork Thu Dec 8 11:01:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 87227 Delivered-To: patch@linaro.org Received: by 10.182.112.6 with SMTP id im6csp806185obb; Thu, 8 Dec 2016 03:04:24 -0800 (PST) X-Received: by 10.84.143.1 with SMTP id 1mr155831825ply.86.1481195064080; Thu, 08 Dec 2016 03:04:24 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k72si28275265pga.230.2016.12.08.03.04.23; Thu, 08 Dec 2016 03:04:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464AbcLHLEW (ORCPT + 4 others); Thu, 8 Dec 2016 06:04:22 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:55383 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827AbcLHLEW (ORCPT ); Thu, 8 Dec 2016 06:04:22 -0500 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OHV01VHH5CDUN50@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 08 Dec 2016 20:02:37 +0900 (KST) X-AuditID: cbfee61a-f79916d0000062de-7c-58493dcdc777 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 0C.80.25310.DCD39485; Thu, 8 Dec 2016 20:02:37 +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 <0OHV001325BNOH80@mmp2.samsung.com>; Thu, 08 Dec 2016 20:02:37 +0900 (KST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Chanwoo Choi Subject: [PATCH 2/2] ARM: dts: exynos: Fix initial clocks configuration on Odroid X/X2/U3 boards Date: Thu, 08 Dec 2016 12:01:54 +0100 Message-id: <1481194914-20490-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1481194914-20490-1-git-send-email-m.szyprowski@samsung.com> References: <1481194914-20490-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHLMWRmVeSWpSXmKPExsVy+t9jQd2ztp4RBhPfKVhsnLGe1eL6l+es FufPb2C3mHF+H5PF2iN32S0Ov2lndWDz2LSqk82jb8sqRo/Pm+QCmKPcbDJSE1NSixRS85Lz UzLz0m2VQkPcdC2UFPISc1NtlSJ0fUOClBTKEnNKgTwjAzTg4BzgHqykb5fglrGiezp7wUq+ iu+bfjA2MP7l7mLk5JAQMJF4vHslG4QtJnHh3nogm4tDSGAWo8SJ53tZQBJCAr8YJa7ecwOx 2QQMJbredoE1iAioSnxuW8AO0sAs8JxR4v3ufrAGYYEkidfzWhhBbBagoq+PW5hBbF4BD4mO 12/ZIbbJSZw8NpkVxOYU8JT4sm0d1DIPiWXTlzBNYORdwMiwilEitSC5oDgpPdcwL7Vcrzgx t7g0L10vOT93EyM4bJ9J7WA8uMv9EKMAB6MSD69At0eEEGtiWXFl7iFGCQ5mJRHeHdaeEUK8 KYmVValF+fFFpTmpxYcYTYEOm8gsJZqcD4ypvJJ4QxNzE3NjAwtzS0sTIyVx3sbZz8KFBNIT S1KzU1MLUotg+pg4OKUaGNd+TlDwZp/2hSXkeLyc5vbFdk7TOm3/twQ+m3H3hVD66cV+7u9k 9jic3PArLeizsbLs96MWTDIB7Pai25Y9LPry9sePqa0uLF4POhI+Ve105o+ZZ/9o1tmHl9/f maq2Om3h4SWZXG8eNh04tVPPycDlzU6zNdUxWpeuFH0Saby1NW5Kwu69XuZKLMUZiYZazEXF iQCD70COcQIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Move assigned clocks properties from sound node to audio subsystem clock controller node. This way clocks topology and rates are set just after probing audio clocks controller. Leaving those properties under sound node doesn't guarantee to configure them before they are being used (for example i2s hardware module can be probed in parallel and it also require proper audio clocks configuration). Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) -- 1.9.1 -- 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 Reviewed-by: Krzysztof Kozlowski diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi index 7815efd..b6b0f50 100644 --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi @@ -43,16 +43,6 @@ sound: sound { compatible = "simple-audio-card"; - assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>, - <&clock_audss EXYNOS_MOUT_I2S>, - <&clock_audss EXYNOS_DOUT_SRP>, - <&clock_audss EXYNOS_DOUT_AUD_BUS>; - assigned-clock-parents = <&clock CLK_FOUT_EPLL>, - <&clock_audss EXYNOS_MOUT_AUDSS>; - assigned-clock-rates = <0>, - <0>, - <192000000>, - <19200000>; simple-audio-card,format = "i2s"; simple-audio-card,bitclock-master = <&link0_codec>; @@ -157,6 +147,16 @@ status = "okay"; }; +&clock_audss { + assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>, + <&clock_audss EXYNOS_MOUT_I2S>, + <&clock_audss EXYNOS_DOUT_SRP>, + <&clock_audss EXYNOS_DOUT_AUD_BUS>; + assigned-clock-parents = <&clock CLK_FOUT_EPLL>, + <&clock_audss EXYNOS_MOUT_AUDSS>; + assigned-clock-rates = <0>, <0>, <192000000>, <19200000>; +}; + &cpu0 { cpu0-supply = <&buck2_reg>; };