From patchwork Wed Sep 10 15:09:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 4878561 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 9AC8EC0338 for ; Wed, 10 Sep 2014 15:13:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C784A201C7 for ; Wed, 10 Sep 2014 15:12:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 604B820172 for ; Wed, 10 Sep 2014 15:12:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751717AbaIJPJ4 (ORCPT ); Wed, 10 Sep 2014 11:09:56 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:38663 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535AbaIJPJy (ORCPT ); Wed, 10 Sep 2014 11:09:54 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NBO00NYMY4G2WC0@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 11 Sep 2014 00:09:52 +0900 (KST) X-AuditID: cbfee61b-f79f86d00000144c-e0-541069c09f6f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id A7.44.05196.0C960145; Thu, 11 Sep 2014 00:09:52 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NBO0031GY46MI10@mmp1.samsung.com>; Thu, 11 Sep 2014 00:09:52 +0900 (KST) From: Sylwester Nawrocki To: kgene.kim@samsung.com Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, m.szyprowski@samsung.com, Sylwester Nawrocki Subject: [PATCH v2] ARM: dts: Specify Odroid X2/U3 audio clock parents and rates Date: Wed, 10 Sep 2014 17:09:39 +0200 Message-id: <1410361779-28017-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGJMWRmVeSWpSXmKPExsVy+t9jAd0DmQIhBut/CVv0LrjKZrHp8TVW ixnn9zFZrD1yl93i8Jt2VgdWj81L6j36tqxi9Pi8SS6AOYrLJiU1J7MstUjfLoEr4/q/tSwF U3gqGpadZGtgbObqYuTkkBAwkXh5dS8LhC0mceHeejYQW0hgEaNE4+GgLkYuILuDSWLixmfs IAk2AUOJ3qN9jCC2iICkRFPDH2aQImaBKYwSz46eBSsSFgiQ+DCzC8xmEVCV2PNtBtgGXgE3 icnfbgJt4ADapiAxZ5LNBEbuBYwMqxhFUwuSC4qT0nON9IoTc4tL89L1kvNzNzGCff9Megfj qgaLQ4wCHIxKPLwCtfwhQqyJZcWVuYcYJTiYlUR4mxwEQoR4UxIrq1KL8uOLSnNSiw8xSnOw KInzHmy1DhQSSE8sSc1OTS1ILYLJMnFwSjUwch3/FRaytL5f5dndb++cTH+7lupIbBef5DrR YzXj4pPnnI3j1dtTOBjLGJoWbVeb89AsrGzx3YeLzrzn2SnK9F9+b/mxPVvKrj9J5wjJibZT LTk7WYPXzNXv8KtU5awYuf0HFL6vXV1q/X5GhFpH6Y8tRRP9M38Lq6w84fCcb6pX3m/XoOsW SizFGYmGWsxFxYkABi7xr/kBAAA= 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=-9.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 ensures the core and the audio subsystem clocks are configured properly, as expected by the sound machine driver. These bits are missing to obtain proper audio sample rates in kernel v3.17, where audio support for Odroid X2/U3 was first added. Signed-off-by: Sylwester Nawrocki --- It would be good to have it applied as a fix for v3.17. First version of this patch was missing settings for EPLL, now it all should be complete. arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 1.7.9.5 -- 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/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi index adadaf9..4fd7e0e 100644 --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi @@ -41,10 +41,25 @@ clock-names = "iis", "i2s_opclk0"; }; + clock-controller@10030000 { + assigned-clocks = <&clock CLK_FOUT_EPLL>; + assigned-clock-rates = <192000000>; + }; + sound: sound { compatible = "samsung,odroidx2-audio"; samsung,i2s-controller = <&i2s0>; samsung,audio-codec = <&max98090>; + 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>; }; mmc@12550000 {