From patchwork Fri Nov 3 16:54:45 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: 10040745 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 5604D6032D for ; Fri, 3 Nov 2017 16:56:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44AD629628 for ; Fri, 3 Nov 2017 16:56:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3987329723; Fri, 3 Nov 2017 16:56:06 +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 B182729628 for ; Fri, 3 Nov 2017 16:56:05 +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=Kwv65YWlDv4sS7IdXWXfApS+Tc4eZpOw/MQrSWbx6tk=; b=lEmFUcr88ucjzp4SsYwiH8XYSM gWakJbjFj6P/7vhZa24VfMhLr3lqYpu1Hmy66lTrpVGj/RhAEqXK8X9iO0BPXEHA9hMxOzOkElgvb tQsC1PC3XcvNLmhNF99CHtz0z8nfLRrPHmWjP4wSSwPpotieN3a7C2Gcd04eLSRkl+RPw1sJOUNCZ HYPxww4OZTWffGs2MLj/wzVrGWixGhg86J+V5uj5icVSsGX2ucwU6B9/mMMoDxKQk5UYybauOxsya j6k5P6Fce+2AWf/XZUEBg7r7tbjtEo/d+8vLHZxZGct5RqSMVa3p5MJbNA+bPUCVaNbB4qQiXtbMG J3EhK8zQ==; 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 1eAfGH-0005ss-4R; Fri, 03 Nov 2017 16:56:05 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfGD-0005F2-O3 for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 16:56:03 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20171103165540epoutp04633691c6ed5247979e1876defbdcf863~zob6l4oJ41088910889epoutp04E; Fri, 3 Nov 2017 16:55:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20171103165540epoutp04633691c6ed5247979e1876defbdcf863~zob6l4oJ41088910889epoutp04E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1509728140; bh=DJwzigkgSKo30laKD7vmsmFM+qiqZa4I53s+/njMEGg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=e0YJ9sVXprw5B0Avr/fPE4/YFYiGqIx3H8Gn7wQ+sGAw5la/oVlravdQ4vjXzs7Ts 0IYddtTTH5hTdpjncSUMZIt3aNvabYlju6Yo31HQWG1UcTATEk53f3GH27qdQJhr6j y+AoK0Jqpe71QZ96FgWXcuEBZWAoIDG21s4CztdQ= Received: from epsmges1p3.samsung.com (unknown [182.195.42.55]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20171103165539epcas1p14a1aa1aa0f91778f9c2768821810fbe0~zob6SXHJ82317623176epcas1p1R; Fri, 3 Nov 2017 16:55:39 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 3D.5A.04169.B8F9CF95; Sat, 4 Nov 2017 01:55:39 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20171103165539epcas1p48cc87811574dace9dfe91d8e9ec6f7ca~zob6CvF2e1926619266epcas1p4l; Fri, 3 Nov 2017 16:55:39 +0000 (GMT) X-AuditID: b6c32a37-ef3ff70000001049-d5-59fc9f8b99ca Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id ED.A3.04095.B8F9CF95; Sat, 4 Nov 2017 01:55:39 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OYU0031HPNE8A80@mmp2.samsung.com>; Sat, 04 Nov 2017 01:55:39 +0900 (KST) From: Sylwester Nawrocki To: krzk@kernel.org Subject: [PATCH v2 1/2] ARM: dts: exynos: Switch to dedicated Odroid-XU3 sound card binding Date: Fri, 03 Nov 2017 17:54:45 +0100 Message-id: <20171103165446.15438-2-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20171103165446.15438-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsWy7bCmnm73/D+RBq33TSw2zljPajH/yDlW i/7Hr5ktzp/fwG6x6fE1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CRhK9B7tYwSxRQSEJe4tXc4OUsQs MI1J4tbka2AJYYFYidtTvzGB2CwCqhJTrv4Es3kFrCW6Wz+xQKyTl3i/4D5YPaeAjcT0vWfB bCGgmqcv1jJPYORZwMiwilEytaA4Nz232KjAMC+1XK84Mbe4NC9dLzk/dxMjMMi2Hdbq28F4 f0n8IUYBDkYlHl6Oyb8jhVgTy4orcw8xSnAwK4nwviz6EynEm5JYWZValB9fVJqTWnyIUZqD RUmc93besUghgfTEktTs1NSC1CKYLBMHp1QD48RlizfGZZpkud3afHTNxuC8n0fSE2PXJb3U S+m4sMr1zLvHjzNq9vNtrlN4kBS061PNVL4bv91qajteqsTdb7/O4DH/QrbJMqnIQM3AiNy0 U6JcH9c/czEu1Nmln/Rwik1R1n5dI9ejffEFPTyJF1kt+vbvW15bpPOGuWjqrcjn0jP2iC2P VWIpzkg01GIuKk4EAM6oV80uAgAA X-CMS-MailID: 20171103165539epcas1p48cc87811574dace9dfe91d8e9ec6f7ca X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20171103165539epcas1p48cc87811574dace9dfe91d8e9ec6f7ca X-RootMTR: 20171103165539epcas1p48cc87811574dace9dfe91d8e9ec6f7ca References: <20171103165446.15438-1-s.nawrocki@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171103_095602_094775_7C2AA362 X-CRM114-Status: GOOD ( 14.05 ) 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 | 60 ++++++++++++++--------- 3 files changed, 40 insertions(+), 22 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..fe4d8ef094d0 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,47 @@ "Speakers", "SPKL", "Speakers", "SPKR"; - simple-audio-card,format = "i2s"; - simple-audio-card,bitclock-master = <&link0_codec>; - simple-audio-card,frame-master = <&link0_codec>; + 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>; - simple-audio-card,cpu { + 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>; + + 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 {