From patchwork Fri Mar 9 17:22:50 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: 10271357 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 4583C6016D for ; Fri, 9 Mar 2018 17:25:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C4A1286C0 for ; Fri, 9 Mar 2018 17:25:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2072729ECF; Fri, 9 Mar 2018 17:25: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=ham 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 54DAB286C0 for ; Fri, 9 Mar 2018 17:25:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932193AbeCIRY7 (ORCPT ); Fri, 9 Mar 2018 12:24:59 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:26557 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932124AbeCIRYx (ORCPT ); Fri, 9 Mar 2018 12:24:53 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20180309172451epoutp033f79cc6f20f2fae54a5d9235c55475cb~aUHX2S-ky1152511525epoutp03Z; Fri, 9 Mar 2018 17:24:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20180309172451epoutp033f79cc6f20f2fae54a5d9235c55475cb~aUHX2S-ky1152511525epoutp03Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520616291; bh=RQb2a8g5gE+xdPhK5EHmsvBNx6Pg2F7aAw39kkh+eiA=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=KEVNH+9JGmTJx4Rr46FHgGSXKHzWAyw6c3w/9MHl6k9lvXfH1DMbEK0WOQK08l/NJ Jh3cB455KFL12WF/cPKaUfvXWjRadu6H5xefK3AhaqmNBCaReqMoySXLCvzAK9LmcO KRt7MYFwcHfhby2Ka2rZhygBM4wXWPzNOlyu9L7w= Received: from epsmges1p2.samsung.com (unknown [182.195.42.54]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20180309172451epcas1p13842461895699b7aa8a16886fef0e9bc~aUHXg_wg-1119811198epcas1p1p; Fri, 9 Mar 2018 17:24:51 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id D1.02.04136.363C2AA5; Sat, 10 Mar 2018 02:24:51 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20180309172450epcas1p2b845a521afbadc81da991330bdbc588c~aUHWtCcXa2784027840epcas1p2k; Fri, 9 Mar 2018 17:24:50 +0000 (GMT) X-AuditID: b6c32a36-ca9ff70000001028-09-5aa2c3638da4 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 15.B5.03826.263C2AA5; Sat, 10 Mar 2018 02:24:50 +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 <0P5C003AE2Y56O20@mmp2.samsung.com>; Sat, 10 Mar 2018 02:24:50 +0900 (KST) From: Sylwester Nawrocki To: krzk@kernel.org Cc: kgene@kernel.org, devicetree@vger.kernel.org, javierm@redhat.com, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, b.zolnierkie@samsung.com, m.szyprowski@samsung.com, Sylwester Nawrocki Subject: [PATCH v3 6/6] ARM: dts: exynos: Enable HDMI audio support on exynos5800-peach-pi Date: Fri, 09 Mar 2018 18:22:50 +0100 Message-id: <20180309172250.23019-6-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20180309172250.23019-1-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsWy7bCmgW7y4UVRBvcmCFlsnLGe1WL+kXOs FgunLWe06H/8mtni/PkN7BabHl9jtbi8aw6bxYzz+5gs1h65y25x+E07qwOXx6ZVnWwem5fU e7zfd5XNo2/LKkaPz5vkAlijuGxSUnMyy1KL9O0SuDK+X/vDWnCOv2Lilp2sDYyPeboYOTkk BEwk7iydydLFyMUhJLCDUWJe4xU2COc7o8TZV68ZYare919iArGFBDYwSuxemQFR9ItR4l7/ A2aQBJuAoUTv0T6wBhEBYYl7S5ezg9jMApOYJGbNlwWxhQViJNZM2Qi0gYODRUBV4vfdIpAw r4C1xPcbD5ggdslLvF9wH2wMp4CNxJKZh9kg4kvYJE41Z0PYLhJrzk2Buk1Y4tXxLewgIyUE pCUuHbWFCFdLdLZ1sYOcKSHQwijxZ9olqDnWEoePX2SFOI1P4t3XHlaIXl6JjjYhiBIPiedv Z7BD2I4ST2dfgAZQP6PE9munWScwSi1gZFjFKJZaUJybnlpsWGCkV5yYW1yal66XnJ+7iREc rVpmOxgXnfM5xCjAwajEw7tj6qIoIdbEsuLK3EOMEhzMSiK872uAQrwpiZVVqUX58UWlOanF hxilOViUxHkDAlyihATSE0tSs1NTC1KLYLJMHJxSDYxpN6N6Hf3Pfzl5Ze/PmZo7MiLf1NUr v/3N2vKV3X2vYLB10nRW51Pf4sMCnylruPJYG00Q+vI+rE51trnp3AQd2xCuLC2ueeHc92d/ C5wY+mszp7vBpOySv2euNzr9ClOao3ppLYPe6hs//27vM05c1b7/2uwnppdlUjculNtjKd/4 x53H/7gSS3FGoqEWc1FxIgDT9qMk0gIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJLMWRmVeSWpSXmKPExsVy+t9jQd2kw4uiDGbckLLYOGM9q8X8I+dY LRZOW85o0f/4NbPF+fMb2C02Pb7GanF51xw2ixnn9zFZrD1yl93i8Jt2Vgcuj02rOtk8Ni+p 93i/7yqbR9+WVYwenzfJBbBGcdmkpOZklqUW6dslcGV8v/aHteAcf8XELTtZGxgf83QxcnJI CJhIvO+/xNTFyMUhJLCOUeL/rpvMEM4vRonPR+6zgFSxCRhK9B7tYwSxRQSEJe4tXc4OUsQs MIlJomnnT7CEsECMxJopG9m6GDk4WARUJX7fLQIJ8wpYS3y/8YAJYpu8xPsF98HKOQVsJJbM PAxWLgRUs/VYwARGngWMDKsYJVMLinPTc4uNCgzzUsv1ihNzi0vz0vWS83M3MQIDbNthrb4d jPeXxB9iFOBgVOLhFZixKEqINbGsuDL3EKMEB7OSCO/7GqAQb0piZVVqUX58UWlOavEhRmkO FiVx3tt5xyKFBNITS1KzU1MLUotgskwcnFINjGFlh59mBb/NCTxzqFKN453iv5TdCikPHj9b tXd2I4ueBkOT2s+2s+Ipre0XHz9IiLrjrLX8ms2N8BVlf9b9cnR6svWLbcQBTRvnpbEefjmX BN4fZKh41mo14SnLvJPCLxZbvN7Knr3k+aRLs0MqM/ZY8x5/JLD+t0CIpOW9e6wVi3bInlgQ YKDEUpyRaKjFXFScCACvan/7LAIAAA== X-CMS-MailID: 20180309172450epcas1p2b845a521afbadc81da991330bdbc588c X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180309172450epcas1p2b845a521afbadc81da991330bdbc588c X-RootMTR: 20180309172450epcas1p2b845a521afbadc81da991330bdbc588c References: <20180309172250.23019-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 new cpu, codec subnodes according to the updated "google,snow-audio-max98091" DT bindings and the I2S clock tree configuration so sound on the HDMI interface can be also supported. Signed-off-by: Sylwester Nawrocki --- NOTE: I couldn't test this patch as I have no access to Peach-pi Chromebook. I think it shouldn't be applied unless someone actually tests it. Changes since v1: - edited commit summary line. --- arch/arm/boot/dts/exynos5800-peach-pi.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 0029ec27819c..0a4766e0484e 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -14,6 +14,7 @@ #include #include #include +#include #include "exynos5800.dtsi" #include "exynos5420-cpus.dtsi" @@ -89,6 +90,14 @@ samsung,model = "Peach-Pi-I2S-MAX98091"; samsung,i2s-controller = <&i2s0>; samsung,audio-codec = <&max98091>; + + cpu { + sound-dai = <&i2s0 0>; + }; + + codec { + sound-dai = <&max98091>, <&hdmi>; + }; }; usb300_vbus_reg: regulator-usb300 { @@ -145,6 +154,11 @@ vdd-supply = <&ldo9_reg>; }; +&clock_audss { + assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>; + assigned-clock-parents = <&clock CLK_FOUT_EPLL>; +}; + &cpu0 { cpu-supply = <&buck2_reg>; }; @@ -609,6 +623,7 @@ pinctrl-0 = <&max98091_irq>; clocks = <&pmu_system_controller 0>; clock-names = "mclk"; + #sound-dai-cells = <0>; }; light-sensor@44 { @@ -661,6 +676,8 @@ }; &i2s0 { + assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>; + assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>; status = "okay"; };