From patchwork Fri May 11 08:09:47 2018 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: 10393671 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 ED9E860236 for ; Fri, 11 May 2018 08:27:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E352828DF4 for ; Fri, 11 May 2018 08:27:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7F6B28DEE; Fri, 11 May 2018 08:27:12 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 EE45028E28 for ; Fri, 11 May 2018 08:27:11 +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: 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: In-Reply-To:List-Owner; bh=64qmIs7eMqNy9mv2zhXuVeaZxyyEA8TUc1qEKyQarcM=; b=IA ep+Gh3otvLezGZ5jYEB6Y6zSCLlXQHguhFZs+Oj3Lr56FrFtfPmCa3U9oTLsBe/KYjl4ctTll6vlW 95fCNwa3VqhZh98Kkh4cltUGBQNoX0SVbl+k4WyTCrubjPt73/jkCh9izOy9q55KpjBCD2dMLq78o aI/Qig1mrhDGgo1hALXu5CQc6IYZIrA4VlaCuQTxVD0H/nZcl1elZHsUUIqx/F5lTgewAksZBwOvH VTv5pM+1/IqG9XtEr+4hjokz9uKGwmvFgH/Tu3r2aJFIEksyM4PEW+T/U9qrzpYDogskKj5IJ4kyp jaUid8PjiIfedoWqI+9O+XuuQpNBA9Zw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fH3OG-00021t-Hv; Fri, 11 May 2018 08:27:00 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fH3Hn-0004M2-9m for linux-arm-kernel@bombadil.infradead.org; Fri, 11 May 2018 08:20:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:Message-id:Date:Subject:Cc: To:From:Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KOHfGvrh0dS25XvTMtcCNGpV0yStaCYjefiQjd5KVfU=; b=qKGQK1MuSidYTStPIewLSJu83L FirTpX1n0Jffx8IGWT+xY27Wj6xCW7LVd/npfx7ONSnlvy6Tdjsb+KNliaOk8kYy0nPmhUbvncjOX 8KCbwGhBmlGSia5rwplrBkfzfHRS3OxCTik8u+jkUSdItFRONpIpaHL9Br1z91wLK2mCy0DJTl39v XrDpsx8J3Bm1Dn+kH3TGuWmro78WZATOXOiGqAc44cNgMyut/T0fgQf96vGbl5NAjwATi5GNikNb6 qNrYimcU8ZpLh+Wn4Y/4ZprtQdQbrm9xicmVrQ3UjUHs6yQOO2Z6vWGyk7qUzyHmnbVrXVB/d0ENA nBUucLcw==; Received: from mailout1.samsung.com ([203.254.224.24]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fH38g-0004gm-Iq for linux-arm-kernel@lists.infradead.org; Fri, 11 May 2018 08:10:57 +0000 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20180511081032epoutp0130c34873df7e1aa56ec53782a6209ead~tiMYA2Q3y0922009220epoutp01F; Fri, 11 May 2018 08:10:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20180511081032epoutp0130c34873df7e1aa56ec53782a6209ead~tiMYA2Q3y0922009220epoutp01F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1526026232; bh=KOHfGvrh0dS25XvTMtcCNGpV0yStaCYjefiQjd5KVfU=; h=From:To:Cc:Subject:Date:References:From; b=Y06G+bCFPNdluTyAfPvI1kerWPO4y/lzfwM9GsF3JHV8fjLFkAoZMaLQy15fHKuk0 cEAc2//z+ttc4CU0kngndwj5CsV0nDzawQGpK6IQgbIwFN5OP47URVCRUzWgF84s/1 mz6W3MbLO1DVBPhal1qp04yvf5Z1XeuZfVQd3iB0= Received: from epsmges2p3.samsung.com (unknown [182.195.42.71]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20180511081032epcas2p1d31f71692beb8880184ac5b4367867fd~tiMXseEVP2498524985epcas2p1A; Fri, 11 May 2018 08:10:32 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 4B.87.04113.8FF45FA5; Fri, 11 May 2018 17:10:32 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180511081032epcas2p30f381cf699cb7524d9a143390e9c74b5~tiMXU82Tk0546905469epcas2p3O; Fri, 11 May 2018 08:10:32 +0000 (GMT) X-AuditID: b6c32a47-bdfff70000001011-7c-5af54ff8eec3 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id DA.61.03817.7FF45FA5; Fri, 11 May 2018 17:10:31 +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 <0P8K002VB1CERS30@mmp1.samsung.com>; Fri, 11 May 2018 17:10:31 +0900 (KST) From: Sylwester Nawrocki To: krzk@kernel.org Subject: [PATCH] ARM: dts: exynos: Use dedicated DT bindings for Odroid X/X2, U3 Date: Fri, 11 May 2018 10:09:47 +0200 Message-id: <20180511080947.3057-1-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDIsWRmVeSWpSXmKPExsWy7bCmue4P/69RBucWiltsnLGe1WL+kXOs FufPb2C32PT4GqvF5V1z2CxmnN/HZLH2yF12i9a9R9gtDr9pZ3Xg9Ni0qpPNY/OSeo++LasY PT5vkgtgieKySUnNySxLLdK3S+DKOLMqsOCddMXt/jlMDYzd4l2MnBwSAiYSJzesZuli5OIQ EtjBKHGw8SU7hPOdUeLztGtsMFW7Hp5khUjsZpQ49PoaVNUvRom5W14wgVSxCRhK9B7tYwSx RQSEJe4tXQ5WxCzQwCTx78EusCJhgSCJ92fmgtksAqoSK95NYAGxeQWsJL5f2scEsU5e4v2C +4wgzRICX1klrt1bAJVwkVjRP50VwhaWeHV8CzuELS3xbNVGRgi7WqKzrYsdormFUeLPtEtQ T1hLHD5+EayZWYBPouPwX6AiDqA4r0RHmxBE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lX+Tm77eKiZSyO8523xTSWW4oxEQy3mouJEAL8eyWoKAgAA X-CMS-MailID: 20180511081032epcas2p30f381cf699cb7524d9a143390e9c74b5 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180511081032epcas2p30f381cf699cb7524d9a143390e9c74b5 X-RootMTR: 20180511081032epcas2p30f381cf699cb7524d9a143390e9c74b5 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180511_091055_147198_3308C293 X-CRM114-Status: GOOD ( 15.77 ) 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, robh+dt@kernel.org, Sylwester Nawrocki , 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 Use dedicated Odroid audio subsystem DT bindings instead of the simple-card. This adds support for audio on the HDMI interface. Signed-off-by: Sylwester Nawrocki --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 33 ++++++++++++++----------- arch/arm/boot/dts/exynos4412-odroidu3.dts | 7 +++--- arch/arm/boot/dts/exynos4412-odroidx.dts | 7 +++--- 3 files changed, 27 insertions(+), 20 deletions(-) diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi index d7ad07fd48f9..bad08e70358a 100644 --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi @@ -37,20 +37,12 @@ }; sound: sound { - compatible = "simple-audio-card"; - - 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>; }; }; @@ -142,14 +134,25 @@ pinctrl-0 = <>; }; +&clock { + assigned-clocks = <&clock CLK_FOUT_EPLL>; + assigned-clock-rates = <45158401>; +}; + &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>; + <&clock_audss EXYNOS_DOUT_AUD_BUS>, + <&clock_audss EXYNOS_DOUT_I2S>; + assigned-clock-parents = <&clock CLK_FOUT_EPLL>, - <&clock_audss EXYNOS_MOUT_AUDSS>; - assigned-clock-rates = <0>, <0>, <192000000>, <19200000>; + <&clock_audss EXYNOS_MOUT_AUDSS>; + + assigned-clock-rates = <0>, <0>, + <196608001>, + <(196608001 / 2)>, + <(196608001 / 8)>; }; &cpu0 { @@ -498,6 +501,8 @@ pinctrl-0 = <&i2s0_bus>; pinctrl-names = "default"; status = "okay"; + assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>; + assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>; }; &mixer { diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts index bdcd4523cc1c..7a94a423097d 100644 --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts @@ -113,11 +113,12 @@ }; &sound { - simple-audio-card,name = "Odroid-U3"; - simple-audio-card,widgets = + compatible = "hardkernel,odroid-xu4-audio"; + model = "Odroid-U3"; + samsung,audio-widgets = "Headphone", "Headphone Jack", "Speakers", "Speakers"; - simple-audio-card,routing = + samsung,audio-routing = "Headphone Jack", "HPL", "Headphone Jack", "HPR", "Headphone Jack", "MICBIAS", diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts index 2dff129bc2ad..f0d5037f3a5d 100644 --- a/arch/arm/boot/dts/exynos4412-odroidx.dts +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts @@ -97,12 +97,13 @@ }; &sound { - simple-audio-card,name = "Odroid-X"; - simple-audio-card,widgets = + compatible = "hardkernel,odroid-xu4-audio"; + model = "Odroid-X"; + samsung,audio-widgets = "Headphone", "Headphone Jack", "Microphone", "Mic Jack", "Microphone", "DMIC"; - simple-audio-card,routing = + samsung,audio-routing = "Headphone Jack", "HPL", "Headphone Jack", "HPR", "IN1", "Mic Jack",