From patchwork Fri Mar 9 17:22:48 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: 10271345 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 E16E660236 for ; Fri, 9 Mar 2018 17:24:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7ED529ECF for ; Fri, 9 Mar 2018 17:24:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA57F29ED2; Fri, 9 Mar 2018 17:24:43 +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 1BC0429ECF for ; Fri, 9 Mar 2018 17:24:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751184AbeCIRYm (ORCPT ); Fri, 9 Mar 2018 12:24:42 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:54098 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932124AbeCIRYj (ORCPT ); Fri, 9 Mar 2018 12:24:39 -0500 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20180309172437epoutp040060d8601273901da0ed5d2efc0a8b3a~aUHK7u5Oj0385803858epoutp04Q; Fri, 9 Mar 2018 17:24:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20180309172437epoutp040060d8601273901da0ed5d2efc0a8b3a~aUHK7u5Oj0385803858epoutp04Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520616277; bh=HCW8M2m7wIRlItZS0r4IxHbNfWYJPot0udq8dP/9KGg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=GjHbZnI8T4TVEM07jMB/iNMm/rU5awEqKXtIvM02rTIA9jCjrM/6+igJYggKw1tNV HHYF8dxO6oUPo5903lXhTNSW5XLXHEpipAeCBBlk30ArXwwAmKVaZeDzwb+bQj8FDo KnUR/XMDxVhKcD6xnGOzdmyQwT9LNPv39bbfluoY= Received: from epsmges2p4.samsung.com (unknown [182.195.42.72]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20180309172436epcas2p4379b19c113da68c27175b0fb83b497d9~aUHKAhyoR2228122281epcas2p4l; Fri, 9 Mar 2018 17:24:36 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id E2.5C.04080.453C2AA5; Sat, 10 Mar 2018 02:24:36 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180309172436epcas2p20e1da46084c1dcc67d6dd6cd1bf24368~aUHJlQwvs1767617676epcas2p2k; Fri, 9 Mar 2018 17:24:36 +0000 (GMT) X-AuditID: b6c32a48-9adff70000000ff0-df-5aa2c3541c6a Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id A2.7D.03890.453C2AA5; Sat, 10 Mar 2018 02:24:36 +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:36 +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 4/6] ARM: dts: exynos: Enable HDMI audio on Snow Chromebook Date: Fri, 09 Mar 2018 18:22:48 +0100 Message-id: <20180309172250.23019-4-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+NgFjrAIsWRmVeSWpSXmKPExsWy7bCmqW7I4UVRBts3mFpsnLGe1WL+kXOs FgunLWe06H/8mtni/PkN7BabHl9jtbi8aw6bxYzz+5gs1h65y25x+E07qwOXx6ZVnWwem5fU e7zfd5XNo2/LKkaPz5vkAlijuGxSUnMyy1KL9O0SuDLu7njJWrBWsOLcgy9MDYwb+boYOTkk BEwkHvQ3snQxcnEICexglFh74S4rSEJI4DujxO5/ATBF6w92sUMUbQCKn3zICuH8YpSYs6eN BaSKTcBQovdoHyOILSIgLHFv6XJ2EJtZYBKTxKz5siC2sECAxOXJt8DiLAKqEgdv3AQaxMHB K2AtcegpK8QyeYn3C+6DjeEUsJFYMvMwG8guCYEFbBK75s5nB6mXEHCRmHBGDKJeWOLV8S3s ELa0xLNVGxkh7GqJzjaIoyUEWhgl/ky7xAaRsJY4fPwiK8RtfBIdh/9CzeSV6GgTgijxkJje sIUZwnaUmNC0hg3i335GiceftjNOYJRawMiwilEstaA4Nz212KjARK84Mbe4NC9dLzk/dxMj OF61PHYwHjjnc4hRgINRiYdXYMaiKCHWxLLiytxDjBIczEoivO9rgEK8KYmVValF+fFFpTmp xYcYpTlYlMR52wJcooQE0hNLUrNTUwtSi2CyTBycUg2McpkTNkg5nK+dnPzF+NGmFrU+iydH hPZl1SgsP2vDMyXmIIthuHf+puWt5gKbLwlNPaJy0Hy5wGUf7ZKYT95HZWctPvkv/nohD8vK T93KAo+nFF3Mat38vfRF6qmIj+sXvryb+WfdKqW5cWu2pilZqHr4Mfr/e7ni/yeZtM3r77bO u/BORebeOSWW4oxEQy3mouJEACMwpcLTAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJLMWRmVeSWpSXmKPExsVy+t9jQd2Qw4uiDNbskLTYOGM9q8X8I+dY LRZOW85o0f/4NbPF+fMb2C02Pb7GanF51xw2ixnn9zFZrD1yl93i8Jt2Vgcuj02rOtk8Ni+p 93i/7yqbR9+WVYwenzfJBbBGcdmkpOZklqUW6dslcGXc3fGStWCtYMW5B1+YGhg38nUxcnJI CJhIrD/Yxd7FyMUhJLCOUeLtk35GCOcXo8SeqRdZQarYBAwleo/2MYLYIgLCEveWLgfrYBaY xCTRtPMnWEJYwE9i1eFOFhCbRUBV4uCNm0DNHBy8AtYSh56yQmyTl3i/4D5YOaeAjcSSmYfZ QEqEgEq2HguYwMizgJFhFaNkakFxbnpusVGBUV5quV5xYm5xaV66XnJ+7iZGYIBtO6zVv4Px 8ZL4Q4wCHIxKPLwCMxZFCbEmlhVX5h5ilOBgVhLhfV8DFOJNSaysSi3Kjy8qzUktPsQozcGi JM7Ln38sUkggPbEkNTs1tSC1CCbLxMEp1cCorv3LdtFicUGPqTbrMopXpwXZBZZf0N/aNbP/ w5E20Y9qHvoTnF2udhkV7Nvv/0P47LrYCDPW0AcXbIQNn+1wZzOc4Gqv1LiufaeC4rWKd/6v NrS5TG455bPXdEfJWe/f1r57l9afShbb3ua+YE3ANa9fOs9uv80qjgq6/GLzeU71EKPkIDcl luKMREMt5qLiRACgKBeCLAIAAA== X-CMS-MailID: 20180309172436epcas2p20e1da46084c1dcc67d6dd6cd1bf24368 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180309172436epcas2p20e1da46084c1dcc67d6dd6cd1bf24368 X-RootMTR: 20180309172436epcas2p20e1da46084c1dcc67d6dd6cd1bf24368 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-max98095" DT bindings and the I2S clock tree configuration so sound on the HDMI interface can also be supported. Signed-off-by: Sylwester Nawrocki --- Changes since v2: - i2s0/#clock-cells property moved to exynos5250.dtsi - edited commit summary line. Changes since v1: - changed order of codec in codec/cpu-dai property to match the DT bindings documentation. --- arch/arm/boot/dts/exynos5250-snow-common.dtsi | 3 +++ arch/arm/boot/dts/exynos5250-snow.dts | 8 ++++++++ arch/arm/boot/dts/exynos5250.dtsi | 1 + 3 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250-snow-common.dtsi b/arch/arm/boot/dts/exynos5250-snow-common.dtsi index bdf59dd3654b..fd9226d3b207 100644 --- a/arch/arm/boot/dts/exynos5250-snow-common.dtsi +++ b/arch/arm/boot/dts/exynos5250-snow-common.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include "exynos5250.dtsi" / { @@ -523,6 +524,8 @@ }; &i2s0 { + assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>; + assigned-clock-parents = <&clock_audss EXYNOS_I2S_BUS>; status = "okay"; }; diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts index 16e37c337a3f..75fdc5e6d423 100644 --- a/arch/arm/boot/dts/exynos5250-snow.dts +++ b/arch/arm/boot/dts/exynos5250-snow.dts @@ -18,6 +18,14 @@ samsung,model = "Snow-I2S-MAX98095"; samsung,audio-codec = <&max98095>; + + cpu { + sound-dai = <&i2s0 0>; + }; + + codec { + sound-dai = <&max98095 0>, <&hdmi>; + }; }; }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 71d2ede118e3..f6c6c94d3d7d 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -500,6 +500,7 @@ pinctrl-names = "default"; pinctrl-0 = <&i2s0_bus>; power-domains = <&pd_mau>; + #clock-cells = <1>; }; i2s1: i2s@12d60000 {