From patchwork Fri Nov 3 16:54:46 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: 10040751 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 3CF1C6032D for ; Fri, 3 Nov 2017 16:56:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BAB22971D for ; Fri, 3 Nov 2017 16:56:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 206292972B; Fri, 3 Nov 2017 16:56:49 +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 B59A72971D for ; Fri, 3 Nov 2017 16:56:48 +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=AReC2bVoN6i+7HLy3Cqe1lyP5SbsFmslbWECyBq1/ks=; b=poZTTAc8oP4+jk6plzEtPZv5Oj X+OE2BIzctmI5k4wZviFj81VGRAR1sX+yOR6ZRB02l9LUfYMOcLFDtc8mNp4KyD/Iq6j7phrvMfp0 2B14SRddjs2snKrHQDnayKqSaflHra3Nvqr5eIBLMlEDJLtBuQd6/XYMDwcppu4RdTJqYHsRTB04x TNQCnCNKSCcSsRh++scwGjLTKxbF5uPwK0jamtmHgFUTk8z3QPYuHLTTDsFPK1jBhxABakBhXA0gY 9XjtShuk933vDUutOsvLAa1Xouz2dnRBei4o1GpHZnTN2CQXzJHntDHgpjcD9wY7/GQQdh+ZEtB8W c1U0eaMA==; 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 1eAfGt-0006We-OB; Fri, 03 Nov 2017 16:56:43 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfGn-00065i-7H for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 16:56:41 +0000 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20171103165614epoutp017df92fe6cf828f47c7f23e656b0e2c1e~zoca1nU5j1043110431epoutp01y; Fri, 3 Nov 2017 16:56:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20171103165614epoutp017df92fe6cf828f47c7f23e656b0e2c1e~zoca1nU5j1043110431epoutp01y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1509728174; bh=qqGhCCe0/3bLjA+R/1eA0edMPHOdj8ZlpPIIqDHlIFA=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=KRaHLZ3MTSVyDJsCbws73c17x9KQ5Ly6tfdU0Unjnj0a+z5NFHCPGrLNsRQ914MoU YCtsCtSYiGx0GU6Jp5DM9ml9DnCBxuziRaGWWCK60Pf4S5sGOtOERcIpG5L8vv2dOo EoUo3NrGfGN76zotK4bYNfCYUOvt9DV5nRtWJ5QM= Received: from epsmges2p3.samsung.com (unknown [182.195.42.71]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20171103165613epcas2p2ba435ee873a6143b5fab6726d32e6067~zocZsRoMS2112921129epcas2p2s; Fri, 3 Nov 2017 16:56:13 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id CE.5A.04140.DAF9CF95; Sat, 4 Nov 2017 01:56:13 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20171103165612epcas2p38df1787630b2dfbf1d0d0e3ef1b93a49~zocYo3bnR2229122291epcas2p3q; Fri, 3 Nov 2017 16:56:12 +0000 (GMT) X-AuditID: b6c32a47-cd7ff7000000102c-a7-59fc9fad56f2 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id EB.D5.03859.CAF9CF95; Sat, 4 Nov 2017 01:56:12 +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:56:12 +0900 (KST) From: Sylwester Nawrocki To: krzk@kernel.org Subject: [PATCH v2 2/2] ARM: dts: exynos: Add sound support for Odroid XU4 Date: Fri, 03 Nov 2017 17:54:46 +0100 Message-id: <20171103165446.15438-3-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+NgFjrMIsWRmVeSWpSXmKPExsWy7bCmue7a+X8iDbb90bDYOGM9q8X8I+dY Lfofv2a2OH9+A7vF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do8Se7rvsEM4vRonTnz4yg1SxCRhK9B7tYwSxRQSEJe4tXQ5WxCww jUni1uRrYAlhAS+Jl0sfMYHYLAKqEht+HWEDsXkFrCVW73zIArFOXuL9gvtg9ZwCNhLT954F s4WAap6+WMs8gZFnASPDKkbJ1ILi3PTcYqMCo7zUcr3ixNzi0rx0veT83E2MwCDbdlirfwfj 4yXxhxgFOBiVeHg5Jv+OFGJNLCuuzD3EKMHBrCTC+7LoT6QQb0piZVVqUX58UWlOavEhRmkO FiVxXv78Y5FCAumJJanZqakFqUUwWSYOTqkGRim3uU9Klrz9r7gmJ312l6DgBDm3pIBU+c3v P3713CjNclN23azKeLdwW1VdhrnmEn7ncze7J4nc/cZgpBa1YZVCa1WKUZShMJv1y5gd1585 7jbcE2Ox63lN7ZfsHye3L8xaxP7/lP+kNuu8D4sKN79R3cSR2/Zm/6dwtcD3gu84GKJ6zul2 K7EUZyQaajEXFScCAPf6Md8uAgAA X-CMS-MailID: 20171103165612epcas2p38df1787630b2dfbf1d0d0e3ef1b93a49 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20171103165612epcas2p38df1787630b2dfbf1d0d0e3ef1b93a49 X-RootMTR: 20171103165612epcas2p38df1787630b2dfbf1d0d0e3ef1b93a49 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_095637_599181_F57E186D X-CRM114-Status: GOOD ( 11.60 ) 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 This patch adds support for Odroid XU4 audio. The main difference comparing to Odroid XU3 is a missing on-board audio CODEC, only HDMI output is supported on Odroid XU4. External CODEC could be optionally connected to the I2S port connector. Signed-off-by: Sylwester Nawrocki Reviewed-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5422-odroidxu4.dts | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu4.dts b/arch/arm/boot/dts/exynos5422-odroidxu4.dts index 2faf88627a48..0c2f1ef8a552 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu4.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu4.dts @@ -12,6 +12,7 @@ */ /dts-v1/; +#include #include "exynos5422-odroidxu3-common.dtsi" / { @@ -30,6 +31,57 @@ linux,default-trigger = "heartbeat"; }; }; + + sound: sound { + compatible = "samsung,odroid-xu3-audio"; + model = "Odroid-XU4"; + + 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>; + + cpu { + sound-dai = <&i2s0 0>; + }; + + codec { + sound-dai = <&hdmi>; + }; + }; +}; + +&clock_audss { + assigned-clocks = <&clock_audss EXYNOS_DOUT_SRP>, + <&clock CLK_FOUT_EPLL>; + assigned-clock-rates = <(196608000 / 256)>, + <196608000>; +}; + +&i2s0 { + status = "okay"; }; &pwm {