From patchwork Thu Mar 8 16:42:52 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: 10268401 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 EB2DA602C8 for ; Thu, 8 Mar 2018 16:43:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA8511FFFF for ; Thu, 8 Mar 2018 16:43:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDA7E262F2; Thu, 8 Mar 2018 16:43: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 A24741FFFF for ; Thu, 8 Mar 2018 16:43:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752099AbeCHQnN (ORCPT ); Thu, 8 Mar 2018 11:43:13 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:28084 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752082AbeCHQnL (ORCPT ); Thu, 8 Mar 2018 11:43:11 -0500 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20180308164309epoutp027eb8c2ad7d91e65b9bac3d4050477913~Z-5qy-Gx61993519935epoutp02q; Thu, 8 Mar 2018 16:43:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180308164309epoutp027eb8c2ad7d91e65b9bac3d4050477913~Z-5qy-Gx61993519935epoutp02q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520527389; bh=pNPJR2jYPmJO5sIm7bHnhDbZRJsIvBu4CGBtfdVuPkg=; h=From:To:Cc:Subject:Date:References:From; b=FmQb/PdOH7WYGYAFlpNj94SDHUENDzMIRBoGvR+IZndzO+/CbowWdnDh/YVy96PXt nCGD4SHx/GFVS5alEtpUZLZnN/FZ8eDE5C3sZ4QOzIboX43Jvq58f5KcU7CCTFsaZg PD82Cc6YZ5udco4zibwpBslJqL5X9uL343N6GFlg= Received: from epsmges1p2.samsung.com (unknown [182.195.42.54]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20180308164308epcas1p3420de28874cc5198eefbff66a66eeb98~Z-5qrYo5y1767117671epcas1p38; Thu, 8 Mar 2018 16:43:08 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 6E.87.04136.C1861AA5; Fri, 9 Mar 2018 01:43:08 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20180308164308epcas1p2ca9ecc14b6dd68492456d41f2215267c~Z-5p7jqiu0537105371epcas1p2h; Thu, 8 Mar 2018 16:43:08 +0000 (GMT) X-AuditID: b6c32a36-c91ff70000001028-34-5aa1681cd4b0 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 9C.EF.03826.B1861AA5; Fri, 9 Mar 2018 01:43:08 +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 <0P5A00MHK6FJS180@mmp1.samsung.com>; Fri, 09 Mar 2018 01:43:07 +0900 (KST) From: Sylwester Nawrocki To: krzk@kernel.org Cc: javierm@redhat.com, kgene@kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@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] ARM: dts: Enable HDMI audio support on exynos5800-peach-pi Date: Thu, 08 Mar 2018 17:42:52 +0100 Message-id: <20180308164252.1252-1-s.nawrocki@samsung.com> X-Mailer: git-send-email 2.14.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsWy7bCmga5MxsIog/U/LS02zljPajH/yDlW i4XTljNa9D9+zWxx/vwGdotNj6+xWlzeNYfNYsb5fUwWa4/cZbc4/Kad1YHLY9OqTjaPzUvq Pd7vu8rm0bdlFaPH501yAaxRXDYpqTmZZalF+nYJXBnLDv9iL+jlr2g/OZGtgXELTxcjJ4eE gInEsvVbWboYuTiEBHYwSqx71ccG4XxnlHi86TFTFyMHWNX3Jz4Q8d2MEm/b10F1/GKUWHD2 AwvIKDYBQ4neo32MILaIgLDEvaXL2UGKmAUmMUlMeHAbLCEs4C3xddICRpCpLAKqEksWOoGE eQWsJN6/PccGcZK8xPsF9xlBeiUEetgken49YoO4wkViZ5MvRI2wxKvjW9ghwtISl47aQoSr JTrbutghWlsYJf5MuwQ101ri8PGLrCA2swCfxLuvPawQvbwSHW1CECUeEi8PdLBD2I4SR44t ZwKxhQRiJQ43XGObwCi5gJFhFaNYakFxbnpqsWGBkV5xYm5xaV66XnJ+7iZGcFRqme1gXHTO 5xCjAAejEg/vA8eFUUKsiWXFlbmHGCU4mJVEeAP0gUK8KYmVValF+fFFpTmpxYcYpTlYlMR5 AwJcooQE0hNLUrNTUwtSi2CyTBycUg2Mri0F05kMTI5Ipgn63GOVuM7Uxuz7eI7FyWf2Z8+/ C3Px4hX0m2BXcfOCeNwXY7uoVnW7dtNmP8NNV/lLhSZuOhsosPnA04OvsjNm/5T9pij+7c3s 5pMG4Y19q0vSr8aqZeh7Fmvd7t+e9Jc19e5yK96uBHVj/3KJdetM3MJSVSVbJST+mCqxFGck GmoxFxUnAgDxHBouxgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkluLIzCtJLcpLzFFi42I5/e+xgK5MxsIog3NLmC02zljPajH/yDlW i4XTljNa9D9+zWxx/vwGdotNj6+xWlzeNYfNYsb5fUwWa4/cZbc4/Kad1YHLY9OqTjaPzUvq Pd7vu8rm0bdlFaPH501yAaxRXDYpqTmZZalF+nYJXBnLDv9iL+jlr2g/OZGtgXELTxcjB4eE gInE9yc+XYxcHEICOxklfv66wgzh/GKUaFu0grWLkZODTcBQovdoHyOILSIgLHFv6XJ2kCJm gUlMEn9m7mYCSQgLeEt8nbSAEWQqi4CqxJKFTiBhXgErifdvz7GB2BIC8hLvF9xnnMDItYCR YRWjZGpBcW56brFRgWFearlecWJucWleul5yfu4mRmDAbDus1beD8f6S+EOMAhyMSjy8Fi4L o4RYE8uKK3MPMUpwMCuJ8AboA4V4UxIrq1KL8uOLSnNSiw8xSnOwKInz3s47FikkkJ5Ykpqd mlqQWgSTZeLglGpgVD734GnenbtySpsKRW86tOzaWePDlF2Zmz3b4t0js6Ll644LT+mUk0p3 N2vjWrbY4kGdo7xgWFtgnMLTXcsels1dyszzcEU1U6fS+jOVyxR76iY8ObPog4+x1Q/HIqG8 irab//0q7JnXtZ14UNZ7f1PbBudEub0eD5ccPpcdsoZHMD1UJ+63EktxRqKhFnNRcSIAecXW PxQCAAA= X-CMS-MailID: 20180308164308epcas1p2ca9ecc14b6dd68492456d41f2215267c X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20180308164308epcas1p2ca9ecc14b6dd68492456d41f2215267c X-RootMTR: 20180308164308epcas1p2ca9ecc14b6dd68492456d41f2215267c References: 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 shoudn't be applied unless some acutally tests it. arch/arm/boot/dts/exynos5800-peach-pi.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.14.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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"; };