From patchwork Fri Nov 3 16:43:14 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: 10040713 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 8C5BD602D8 for ; Fri, 3 Nov 2017 16:45:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C7892964F for ; Fri, 3 Nov 2017 16:45:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 712B329773; Fri, 3 Nov 2017 16:45:14 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E59652964F for ; Fri, 3 Nov 2017 16:45:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755840AbdKCQpA (ORCPT ); Fri, 3 Nov 2017 12:45:00 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:49568 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754004AbdKCQo6 (ORCPT ); Fri, 3 Nov 2017 12:44:58 -0400 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20171103164456epoutp02e437e7968cc3dcd5d07d50db01185c9b~zoSjQuCsi2730327303epoutp02N; Fri, 3 Nov 2017 16:44:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20171103164456epoutp02e437e7968cc3dcd5d07d50db01185c9b~zoSjQuCsi2730327303epoutp02N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1509727496; bh=LQqdO6d6cOHoYKLPSZSKXB6m4oB/7zuCyrTYkeqr4Po=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=icrnKpFPkkVlXq3BvlGg8RmDpLq3KM0C34LPPvvFcTIxjd7LF/ib4yhkuP9zpEZt1 NHCrA9LlSPlUgruSpzCot9BtWDwkIbp3s6BwsTEIsQUQsfNw+TM8DewqPNHY2wM3Gx myiT4UGBBX6LKSw9/INv49Jo3UUSVMQBKWZ+tTys= Received: from epsmges2p4.samsung.com (unknown [182.195.42.72]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20171103164456epcas2p376c4241ba467c190aa2e0bf720dda8d1~zoSi8BoDj0179401794epcas2p3B; Fri, 3 Nov 2017 16:44:56 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id D9.61.04158.80D9CF95; Sat, 4 Nov 2017 01:44:56 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20171103164455epcas2p44ec77c21dd25ad37cb088d5d92a4331a~zoShw3JLk1163311633epcas2p4i; Fri, 3 Nov 2017 16:44:55 +0000 (GMT) X-AuditID: b6c32a48-905ff7000000103e-aa-59fc9d081641 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 74.95.03859.60D9CF95; Sat, 4 Nov 2017 01:44:55 +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:54 +0900 (KST) From: Sylwester Nawrocki To: krzk@kernel.org Cc: kgene@kernel.org, mihailescu2m@gmail.com, m.szyprowski@samsung.com, b.zolnierkie@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH 2/2] ARM: dts: exynos: Add sound support for Odroid XU4 Date: Fri, 03 Nov 2017 17:43:14 +0100 Message-id: <20171103164314.14919-3-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+NgFjrIIsWRmVeSWpSXmKPExsWy7bCmhS7H3D+RBr9/C1psnLGe1WL+kXOs Fv2PXzNbnD+/gd1i0+NrrBaXd81hs5hxfh+Txdojd9kt1k/7yWpx+E07qwOXx85Zd9k9Nq3q ZPPYvKTeo2/LKkaPz5vkAlijuGxSUnMyy1KL9O0SuDJ+NM1kLfglWrH4il0D41fBLkYODgkB E4nbi6K7GDk5hAR2MEpsnq7WxcgFZH9nlPh45T0rSAKkpr19NhNEYjejxNXG56wQzi9GiT1r JzKBVLEJGEr0Hu1jBLFFBIQl7i1dzg5SxCwwjUli1dSDLCDrhAXcJea9lwGpYRFQlbi1ag0L iM0rYC2xuOs8C8Q2eYn3C+6DzeEUsJH49m0bG8gcCYElbBLzPt1lgyhykZj5p4EZwhaWeHV8 CzuELS3xbNVGRoiGfkaJE2uaoZwZjBJ32icwQVRZSxw+fhHsOWYBPomOw3/ZIYHBK9HRJgRR 4iGx4+heqP8dJT5OX8QC8TLQ0LU/tzFPYJRawMiwilEstaA4Nz212KjARK84Mbe4NC9dLzk/ dxMjOGK1PHYwHjjnc4hRgINRiYd3w4TfkUKsiWXFlbmHGCU4mJVEeF8W/YkU4k1JrKxKLcqP LyrNSS0+xCjNwaIk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TYPE: 102P X-CMS-RootMailID: 20171103164455epcas2p44ec77c21dd25ad37cb088d5d92a4331a X-RootMTR: 20171103164455epcas2p44ec77c21dd25ad37cb088d5d92a4331a References: <20171103164314.14919-1-s.nawrocki@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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 --- arch/arm/boot/dts/exynos5422-odroidxu4-audio.dtsi | 67 +++++++++++++++++++++++ arch/arm/boot/dts/exynos5422-odroidxu4.dts | 1 + 2 files changed, 68 insertions(+) create mode 100644 arch/arm/boot/dts/exynos5422-odroidxu4-audio.dtsi diff --git a/arch/arm/boot/dts/exynos5422-odroidxu4-audio.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu4-audio.dtsi new file mode 100644 index 000000000000..1d190d3378a8 --- /dev/null +++ b/arch/arm/boot/dts/exynos5422-odroidxu4-audio.dtsi @@ -0,0 +1,67 @@ +/* + * Hardkernel Odroid XU4 audio subsystem device tree source + * + * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +#include + +/ { + sound: sound { + compatible = "samsung,odroid-xu3-audio"; + model = "Odroid-XU4"; + + 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"; +}; + +&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>; +}; + diff --git a/arch/arm/boot/dts/exynos5422-odroidxu4.dts b/arch/arm/boot/dts/exynos5422-odroidxu4.dts index 2faf88627a48..a96853b82861 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu4.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu4.dts @@ -13,6 +13,7 @@ /dts-v1/; #include "exynos5422-odroidxu3-common.dtsi" +#include "exynos5422-odroidxu4-audio.dtsi" / { model = "Hardkernel Odroid XU4";