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: 10040719 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 7F2F86032D for ; Fri, 3 Nov 2017 16:52:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EF59296EA for ; Fri, 3 Nov 2017 16:52:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 624D7296F2; Fri, 3 Nov 2017 16:52:59 +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 A9571296EA for ; Fri, 3 Nov 2017 16:52:58 +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=nlDKgbdSZsuvODfwXeZpz8+RF4AjQWenYlm5LrJrAq8=; b=sshqR1I4ulyN5trzn4UlyH+VZC b3N63gpfuQHiiTWnV+GMNthPcFnNYLX82Y07W87mk4JG7OS5OaR0TzHPWcbVVpnRF+lCLjwiad+L4 FnBYJhcaa+oqpVQD9Y68y3VROQG3nJV/Y09CeNDKdr6jfBNhCp92o3RF6mPc4qPzU9RYszVBrzzVy CoYA+M+mOrAtOLHSQ+FiXVqSpaSH2kgNaSZNm4KLHzWbqwXesAQPr6HOdtXVFcpGn4TeScfB6OKt+ NcAjaKWRXGkXU9Ke7gneZFsYXSmW29nEsOVuwhdTXJpR6xFrLQdcAfmOi2fmnRqoVLyr7UGezMz91 xC8wjPTQ==; 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 1eAfD5-0001vy-Jk; Fri, 03 Nov 2017 16:52:47 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAfD2-0001sA-QP for linux-arm-kernel@bombadil.infradead.org; Fri, 03 Nov 2017 16:52:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-reply-to: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:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LQqdO6d6cOHoYKLPSZSKXB6m4oB/7zuCyrTYkeqr4Po=; b=M055CRZ8vxddj/i/uqJN3Zk+d mEaUx/vWHLeU9M3kt+wY5etpSVz+rs7lHQ2WEfCdM0oNMaKMoO8yImVSFm543IMGfVUA/18hafB2L BFWLQktxEpJxpkITxuLvmTjUsaVEjyiyE3IeHlgvXWTzeLmvxHSuJn0BLMyTme9ePzcgCez56w+L1 M2LMl2LnvOy4YuMzLNJKHkj59aIWtoVYdiKHgRmmdSZ0k7nqHBI5DNYGzg1vf05fHRllPXX8Hz3Jb 67kLCRMdRrx60QZO+AKb+z9gUsr9sBE/rNSk7/8bzXx6dR2ZsG4M/sMAEhW7xXL+ERoIYkVN87McO WSU5UM2rw==; Received: from mailout2.samsung.com ([203.254.224.25]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eAf5x-0002mt-Dd for linux-arm-kernel@lists.infradead.org; Fri, 03 Nov 2017 16:45:28 +0000 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 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 iM0rYC2xuOs8C8Q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B6YklqdmpqQWoRTJaJg1OqgbF8xe9TL8JkTudP0a97P0l6SXuu+oLwcM8F yfOq7l99fvjCjMk6yTsnrN5SsUcp8NDesjeVggnSKwqt5Apd7r15vSvc8StDz09j5flGjtNu hC2/Zyt1j+X+PZl7AjJvOdQOHBEuWjOh7aRz0WXNLz9+SR0PLFk11euJmHcgu7PyVp3fm97u DbZVYinOSDTUYi4qTgQAdMlT8iwCAAA= X-CMS-MailID: 20171103164455epcas2p44ec77c21dd25ad37cb088d5d92a4331a X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20171103164455epcas2p44ec77c21dd25ad37cb088d5d92a4331a X-RootMTR: 20171103164455epcas2p44ec77c21dd25ad37cb088d5d92a4331a 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_164526_000984_57E514D8 X-CRM114-Status: GOOD ( 15.12 ) 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 --- 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";