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: 10271363 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 5AD396016D for ; Fri, 9 Mar 2018 17:26:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E4C5286C0 for ; Fri, 9 Mar 2018 17:26:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3277829EA0; Fri, 9 Mar 2018 17:26:00 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 BB452286C0 for ; Fri, 9 Mar 2018 17:25:59 +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=axrEhkZKj78S4LLMOYqwmo7ugw3vK4oy+wgpcXYKGzE=; b=XDTo9Glq71MZP/UrbNk+uB92xj OPryjSZIneiyz/G/rHgHXw6NsyK5lar395j6b1yGt3TfX894SmuQVuDh/YB/TNBXHmDmq2fAk85du H7oYV6K9U1OgyQTLj5yj2/wnvsFCBqITv+ljLEXyZ/JKGegxv33k+9KfxHIdqtm5K6Yh+QQAxf/aH gVrx8kZGnQ3Q4JuzQq5f3/tjMrOGatIVJ6kToDFPtKUjN8bV6+64aIsBJA38wjjul2LTze1YCqK4Y VS982cRoHfVj6t41T8jEktsB0tSrfnlK41gLmS01saAwgY9+sIGg3oS6SemUq4G5uENw6ifyhQzGP VIm29LRg==; 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 1euLmB-0005g7-8g; Fri, 09 Mar 2018 17:25:51 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euLlB-0003oM-Qj for linux-arm-kernel@lists.infradead.org; Fri, 09 Mar 2018 17:25:18 +0000 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 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+5gs1h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MnWEJYwE9i1eFOFhCbRUBV4uCNm0DNHBy8AtYSh56yQmyTl3i/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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180309_092450_938170_246B9176 X-CRM114-Status: GOOD ( 13.48 ) 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, javierm@redhat.com, linux-kernel@vger.kernel.org, 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 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 {