From patchwork Fri Nov 3 16:43:13 2017 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: 10040709 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F1D80602D8 for ; Fri, 3 Nov 2017 16:44:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1E412973B for ; Fri, 3 Nov 2017 16:44:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D65EA297B8; Fri, 3 Nov 2017 16:44:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 57A632973B for ; Fri, 3 Nov 2017 16:44:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Lj4KG8G95UDGIUzrg7zSUyrndkrymtKOSDIfcPqtbF4=; b=tO4HETBLSt6+JN6DpwMhSq37kY CUa+0mEu/F0UswSzIYUGKE5qUfWenY5JrlJ+pCNhaFf3a2M+VjcoBbllHXnLR7QznMK0IUu5G+vR9 tgHacCbI5Nqjnf1/cAsC6i8qWu1XtX4aHG7kZwFyNxH0g5eW8QkVJa8jaUmVS2oCLm1/KaabaUmDD 2k5dTZXWUIVH7h93cXzd2NPoksu5FGo3fPvl+LYJL8X0V09z5/cVdkQi3sMEgjSPJactnEWMHScrh 5SVr2S3ZKKoa5y1P4p9YSakH0Vq8zTvLZDSqDbHkB8l55WhGExLmjjce8f5nD/9RvStZSw+zYY+l0 Swt4xw9Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eAf5U-0004HJ-FF; Fri, 03 Nov 2017 16:44:56 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAf5I-00041K-SC for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 16:44:50 +0000 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20171103164422epoutp011fa9e0863b0e4c7e54141916eb0e6024~zoSDTSo5D0517805178epoutp01U; Fri, 3 Nov 2017 16:44:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20171103164422epoutp011fa9e0863b0e4c7e54141916eb0e6024~zoSDTSo5D0517805178epoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1509727462; bh=P9XRxXGXcV4A4BFvX3gxzh8HXqoMRxANJBCl9TjwjUg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=EWvwDXhx5LBKR+cwsDazrAE6MNY/1PJ6usvDx3tYDmIbPWYyQSsxdrr2FAeQRfOct qGzjT2v+S6im+MvtVzxOex6eSjytagHYz3i+jbXKzRyaydcxCr9qOMHhQQVDAVnOoh CZQStqTcsKjzLQSKTpaZkYVZxmSrdblpn9tfbsl8= Received: from epsmges2p1.samsung.com (unknown [182.195.42.69]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20171103164421epcas2p19e27b6a903bae06481e3c8158d475826~zoSC3j6WK0662806628epcas2p1m; Fri, 3 Nov 2017 16:44:21 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 94.31.04393.5EC9CF95; Sat, 4 Nov 2017 01:44:21 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20171103164421epcas2p349b51fda04251253c1f789ad1d298424~zoSCRYn1g1831518315epcas2p36; Fri, 3 Nov 2017 16:44:21 +0000 (GMT) X-AuditID: b6c32a45-34bff70000001129-7e-59fc9ce52dcd Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 91.95.03859.5EC9CF95; Sat, 4 Nov 2017 01:44:21 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OYU00G6FP447J60@mmp1.samsung.com>; Sat, 04 Nov 2017 01:44:21 +0900 (KST) From: Sylwester Nawrocki To: krzk@kernel.org Subject: [PATCH 1/2] ARM: dts: exynos: Switch to dedicated Odroid-XU3 sound card binding Date: Fri, 03 Nov 2017 17:43:13 +0100 Message-id: <20171103164314.14919-2-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20171103164314.14919-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsWy7bCmhe7TOX8iDZavN7XYOGM9q8X8I+dY Lfofv2a2OH9+A7vFp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L0aJtUeaWUCq2AQMJXqP9jGC2CICwhL3li5nByliFpjG JHFr8jWwhLBAlMTUbfvAbBYBVYm2u3+Yuhg5OHgFrCXO3oTaJi/xfsF9sBJOARuJb9+2sYHY QkAlxxbPZJ7AyLOAkWEVo2RqQXFuem6xUYFRXmq5XnFibnFpXrpecn7uJkZggG07rNW/g/Hx kvhDjAIcjEo8vByTf0cKsSaWFVfmHmKU4GBWEuF9WfQnUog3JbGyKrUoP76oNCe1+BCjNAeL kjgvf/6xSCGB9MSS1OzU1ILUIpgsEwenVAOj20ebVWWGcQZtxy9nb9UuZ9+/aHN2m6Hx6n9W /ieMitl6Vmxe/uqR+hnBEwvel18+6Ca9W2fRi/1pjo+fHZ70z0/OUmfvuoMPZvLcMbRSuyWh 8ay/WKY08OKyh52NnZbrC/Tm+xT/9bXedKDrocVLzw27+vy6bpdy9N1ZoviaJXj9b72ch+Z/ lViKMxINtZiLihMBBpVyliwCAAA= X-CMS-MailID: 20171103164421epcas2p349b51fda04251253c1f789ad1d298424 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20171103164421epcas2p349b51fda04251253c1f789ad1d298424 X-RootMTR: 20171103164421epcas2p349b51fda04251253c1f789ad1d298424 References: <20171103164314.14919-1-s.nawrocki@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171103_094445_409674_94DB9965 X-CRM114-Status: GOOD ( 13.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, linux-kernel@vger.kernel.org, kgene@kernel.org, Sylwester Nawrocki , mihailescu2m@gmail.com, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The new sound card DT binding is used for Odroid XU3 in order to properly support the HDMI audio path. Clocks configuration is changed so the I2S controller is now the bit and the frame clock master with EPLL as the root clock source. Signed-off-by: Sylwester Nawrocki --- arch/arm/boot/dts/exynos4.dtsi | 1 + arch/arm/boot/dts/exynos5420.dtsi | 1 + arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi | 64 +++++++++++++++-------- 3 files changed, 43 insertions(+), 23 deletions(-) diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index 5739389f5bb8..f82647c0adb1 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -755,6 +755,7 @@ phy = <&hdmi_i2c_phy>; power-domains = <&pd_tv>; samsung,syscon-phandle = <&pmu_system_controller>; + #sound-dai-cells = <0>; status = "disabled"; }; diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 88e5d6d3f901..6f0414cce854 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -618,6 +618,7 @@ samsung,syscon-phandle = <&pmu_system_controller>; status = "disabled"; power-domains = <&disp_pd>; + #sound-dai-cells = <0>; }; hdmiphy: hdmiphy@145D0000 { diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi index da3141a307d5..f0cfb0796923 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi @@ -1,5 +1,5 @@ /* - * Hardkernel Odroid XU3 Audio Codec device tree source + * Hardkernel Odroid XU3 audio subsystem device tree source * * Copyright (c) 2015 Krzysztof Kozlowski * Copyright (c) 2014 Collabora Ltd. @@ -15,13 +15,13 @@ / { sound: sound { - compatible = "simple-audio-card"; + compatible = "samsung,odroid-xu3-audio"; + model = "Odroid-XU3"; - simple-audio-card,name = "Odroid-XU3"; - simple-audio-card,widgets = + samsung,audio-widgets = "Headphone", "Headphone Jack", "Speakers", "Speakers"; - simple-audio-card,routing = + samsung,audio-routing = "Headphone Jack", "HPL", "Headphone Jack", "HPR", "Headphone Jack", "MICBIAS", @@ -29,31 +29,20 @@ "Speakers", "SPKL", "Speakers", "SPKR"; - simple-audio-card,format = "i2s"; - simple-audio-card,bitclock-master = <&link0_codec>; - simple-audio-card,frame-master = <&link0_codec>; - - simple-audio-card,cpu { + cpu { sound-dai = <&i2s0 0>; - system-clock-frequency = <19200000>; }; - - link0_codec: simple-audio-card,codec { - sound-dai = <&max98090>; - clocks = <&i2s0 CLK_I2S_CDCLK>; + codec { + sound-dai = <&hdmi>, <&max98090>; }; }; }; &clock_audss { - assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>, - <&clock_audss EXYNOS_MOUT_I2S>, - <&clock_audss EXYNOS_DOUT_AUD_BUS>; - assigned-clock-parents = <&clock CLK_FIN_PLL>, - <&clock_audss EXYNOS_MOUT_AUDSS>; - assigned-clock-rates = <0>, - <0>, - <19200000>; + assigned-clocks = <&clock_audss EXYNOS_DOUT_SRP>, + <&clock CLK_FOUT_EPLL>; + assigned-clock-rates = <(196608000 / 256)>, + <196608000>; }; &hsi2c_5 { @@ -72,3 +61,32 @@ &i2s0 { status = "okay"; }; + +&sound { + assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>, + <&clock CLK_MOUT_EPLL>, + <&clock CLK_MOUT_MAU_EPLL>, + <&clock CLK_MOUT_USER_MAU_EPLL>, + <&clock_audss EXYNOS_MOUT_AUDSS>, + <&clock_audss EXYNOS_MOUT_I2S>, + <&clock_audss EXYNOS_DOUT_SRP>, + <&clock_audss EXYNOS_DOUT_AUD_BUS>, + <&clock_audss EXYNOS_DOUT_I2S>; + + assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>, + <&clock CLK_FOUT_EPLL>, + <&clock CLK_MOUT_EPLL>, + <&clock CLK_MOUT_MAU_EPLL>, + <&clock CLK_MAU_EPLL>, + <&clock_audss EXYNOS_MOUT_AUDSS>; + + assigned-clock-rates = <0>, + <0>, + <0>, + <0>, + <0>, + <0>, + <196608001>, + <(196608002 / 2)>, + <196608000>; +};