From patchwork Thu Feb 8 18:44:08 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: 10207787 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 CE51E60327 for ; Thu, 8 Feb 2018 18:45:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC81929615 for ; Thu, 8 Feb 2018 18:45:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B14552962D; Thu, 8 Feb 2018 18:45:20 +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 3877229615 for ; Thu, 8 Feb 2018 18:45:20 +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=fXxC4HIwmVlRjJDJyjfumgMzkNnF0lZ/ps4VmmfAQEs=; b=E2/jr3UDgfkHyni4W11WOBiR3W M3Ki7K1VFyupPzWrgasNeUxcZZW94jAb0yHt4MLC/40gRtF4Eoz5jxxrIn83DfPymZABMl8o/D9nj bzZlhyjgmC3MLwBqic0+HAQkM2AsC2uSWRYkuuIZBo6PUid/F//CRQvdpzQcRVJjUNhV8AGoUfhjy uIK4Hoam5S+gtCTA6LQc8Z3njY47UFIakBR1Nwwk6+gN/l9uhr9ZgUPrdRPIqkMcllU6BpWs80viD RxSpUH9VKKskBdRBThy2pkTAsNUbs4oThfhYY0DLn4kC54X5oOdLzfxC2vk6Qmsn3D5aiWIQ2Dddp umqbzXzg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ejrCA-0000fq-6Y; Thu, 08 Feb 2018 18:45:18 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ejrBr-0007Z2-Ah for linux-arm-kernel@lists.infradead.org; Thu, 08 Feb 2018 18:45:05 +0000 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20180208184446epoutp01a9f55a04b8a4cd245a93e52401729daf~Rbf32bbdi0927909279epoutp01Z; Thu, 8 Feb 2018 18:44:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20180208184446epoutp01a9f55a04b8a4cd245a93e52401729daf~Rbf32bbdi0927909279epoutp01Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1518115486; bh=tsw2c0MRkolKdErFUytMAbxtvAjewg4ZMyC1VeWIz18=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=ibQkpK8SMM5kqLjDpoKgxHA8W0XYl7j1/ee6HibTclzkEF7FHF8whOOPk2fUWkVyv WxPJPLxux4c3HYWPgR81vo60A3QOS3qyHhjRI2YQQGhDhZ+nbkl7DPd9oSw3IQgqwS scTzgP7OO80/ASjQmW6EECtjujdNbqXSBkyfnoyQ= Received: from epsmges2p1.samsung.com (unknown [182.195.42.69]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180208184446epcas2p2b8680669a161c922d107f4a7022d6f9f~Rbf3r2h2X2793127931epcas2p2b; Thu, 8 Feb 2018 18:44:46 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 9A.69.04131.E9A9C7A5; Fri, 9 Feb 2018 03:44:46 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180208184446epcas2p2a5a59112f29b97dad9deb820699eb741~Rbf3dyjds1952319523epcas2p2o; Thu, 8 Feb 2018 18:44:46 +0000 (GMT) X-AuditID: b6c32a45-3ebff70000001023-6b-5a7c9a9efb49 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id B5.B5.03890.E9A9C7A5; Fri, 9 Feb 2018 03:44:46 +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 <0P3U00M8HHDN1B50@mmp1.samsung.com>; Fri, 09 Feb 2018 03:44:46 +0900 (KST) From: Sylwester Nawrocki To: krzk@kernel.org Subject: [PATCH v2 3/3] ARM: dts: exynos: Add support for HDMI audio on exynos5433-tm2 Date: Thu, 08 Feb 2018 19:44:08 +0100 Message-id: <20180208184408.24185-3-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20180208184408.24185-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFIsWRmVeSWpSXmKPExsWy7bCmue68WTVRBld2altsnLGe1WL+kXOs Fm/3dzNb9D9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AV+MEp83rURLCEs ECFx5OFldhCbRUBV4nDnYyYQm1fAWmLutx6wGgkBeYn3C+6D2ZwCNhJTZmwAWyAEVHO7YSXT BEaeBYwMqxglUwuKc9Nzi40KjPJSy/WKE3OLS/PS9ZLzczcxAsNp22Gt/h2Mj5fEH2IU4GBU 4uF9EVcTJcSaWFZcmXuIUYKDWUmEV7cZKMSbklhZlVqUH19UmpNafIhRmoNFSZyXP/9YpJBA emJJanZqakFqEUyWiYNTqoGx1mibmdXKhQmnnSwkqqqf123+fc7ZIF4so3HiQZMvSw9+/bPx 64LHPJfyhRzr5FgC3i/1992VG73TVlvWSObnKw7FCXUl1jk2GcdfnF6b2fzPQ5L1vf0r4+NO JSsYVx/bc/7k3KqQFaHmUduE0xS4smNDL5+/M8uVOf/drCSrq7qr1H4rv3uixFKckWioxVxU nAgAX5DRryMCAAA= X-CMS-MailID: 20180208184446epcas2p2a5a59112f29b97dad9deb820699eb741 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180208184446epcas2p2a5a59112f29b97dad9deb820699eb741 X-RootMTR: 20180208184446epcas2p2a5a59112f29b97dad9deb820699eb741 References: <20180208184408.24185-1-s.nawrocki@samsung.com> 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, jcsing.lee@samsung.com, kgene@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 This patch updates the sound node of the exynos5433-tm2 board and adds clock tree configuration in order to support HDMI sound. Signed-off-by: Sylwester Nawrocki --- Changes since v1: - dropped unnecessary assigned-clock* properties for AUD PLL in cmu_top node, - changed default AUD PLL frequency so it is withing recommended 252...400 MHz range. --- .../boot/dts/exynos/exynos5433-tm2-common.dtsi | 60 ++++++++++++++++++++-- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 1 + 2 files changed, 57 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index a77462da4a36..5599f1941c64 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi @@ -14,6 +14,7 @@ #include #include #include +#include / { aliases { @@ -112,8 +113,8 @@ sound { compatible = "samsung,tm2-audio"; - audio-codec = <&wm5110>; - i2s-controller = <&i2s0>; + audio-codec = <&wm5110>, <&hdmi>; + i2s-controller = <&i2s0 0>, <&i2s1 0>; audio-amplifier = <&max98504>; mic-bias-gpios = <&gpr3 2 GPIO_ACTIVE_HIGH>; model = "wm5110"; @@ -216,9 +217,56 @@ status = "okay"; }; +#define TM2_DEF_AUD_PLL_RATE 393216003U + &cmu_aud { - assigned-clocks = <&cmu_aud CLK_MOUT_AUD_PLL_USER>; - assigned-clock-parents = <&cmu_top CLK_FOUT_AUD_PLL>; + assigned-clocks = <&cmu_aud CLK_MOUT_AUD_PLL_USER>, + <&cmu_aud CLK_MOUT_SCLK_AUD_I2S>, + <&cmu_aud CLK_MOUT_SCLK_AUD_PCM>, + <&cmu_top CLK_MOUT_AUD_PLL>, + <&cmu_top CLK_MOUT_AUD_PLL_USER_T>, + <&cmu_top CLK_MOUT_SCLK_AUDIO0>, + <&cmu_top CLK_MOUT_SCLK_AUDIO1>, + <&cmu_top CLK_MOUT_SCLK_SPDIF>, + + <&cmu_aud CLK_DIV_AUD_CA5>, + <&cmu_aud CLK_DIV_ACLK_AUD>, + <&cmu_aud CLK_DIV_PCLK_DBG_AUD>, + <&cmu_aud CLK_DIV_SCLK_AUD_I2S>, + <&cmu_aud CLK_DIV_SCLK_AUD_PCM>, + <&cmu_aud CLK_DIV_SCLK_AUD_SLIMBUS>, + <&cmu_aud CLK_DIV_SCLK_AUD_UART>, + <&cmu_top CLK_DIV_SCLK_AUDIO0>, + <&cmu_top CLK_DIV_SCLK_AUDIO1>, + <&cmu_top CLK_DIV_SCLK_PCM1>, + <&cmu_top CLK_DIV_SCLK_I2S1>; + + assigned-clock-parents = <&cmu_top CLK_FOUT_AUD_PLL>, + <&cmu_aud CLK_MOUT_AUD_PLL_USER>, + <&cmu_aud CLK_MOUT_AUD_PLL_USER>, + <&cmu_top CLK_FOUT_AUD_PLL>, + <&cmu_top CLK_MOUT_AUD_PLL>, + <&cmu_top CLK_MOUT_AUD_PLL_USER_T>, + <&cmu_top CLK_MOUT_AUD_PLL_USER_T>, + <&cmu_top CLK_SCLK_AUDIO0>; + + assigned-clock-rates = <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, + <((TM2_DEF_AUD_PLL_RATE / 2) + 1)>, + <((TM2_DEF_AUD_PLL_RATE / 6) + 1)>, + <((TM2_DEF_AUD_PLL_RATE / 12) + 1)>, + <((TM2_DEF_AUD_PLL_RATE / 8) + 1)>, + <((TM2_DEF_AUD_PLL_RATE / 192) + 1)>, + <((TM2_DEF_AUD_PLL_RATE / 16) + 1)>, + <((TM2_DEF_AUD_PLL_RATE / 2) + 1)>, + <((TM2_DEF_AUD_PLL_RATE / 16) + 1)>, + <((TM2_DEF_AUD_PLL_RATE / 4) + 1)>, + <((TM2_DEF_AUD_PLL_RATE / 192) + 1)>, + <((TM2_DEF_AUD_PLL_RATE / 8) + 1)>; +}; + +&i2s1 { + assigned-clocks = <&i2s1 CLK_I2S_RCLK_SRC>; + assigned-clock-parents = <&cmu_peric CLK_SCLK_I2S1>; }; &cmu_fsys { @@ -838,6 +886,10 @@ status = "okay"; }; +&i2s1 { + status = "okay"; +}; + &mshc_0 { status = "okay"; mmc-hs200-1_8v; diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 2b73bd86bc56..c0231d077fa6 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -969,6 +969,7 @@ ddc = <&hsi2c_11>; samsung,syscon-phandle = <&pmu_system_controller>; samsung,sysreg-phandle = <&syscon_disp>; + #sound-dai-cells = <0>; status = "disabled"; };