From patchwork Fri Apr 21 17:19:49 2017 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: 9693451 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 25CFC6038E for ; Fri, 21 Apr 2017 18:39:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B89C28654 for ; Fri, 21 Apr 2017 18:39:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1019128660; Fri, 21 Apr 2017 18:39:03 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable 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 769D62865C for ; Fri, 21 Apr 2017 18:39:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422783AbdDUSik (ORCPT ); Fri, 21 Apr 2017 14:38:40 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:45057 "EHLO epoutp01.samsung.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1041721AbdDUShi (ORCPT ); Fri, 21 Apr 2017 14:37:38 -0400 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by epoutp01.samsung.com (KnoxPortal) with ESMTP id 20170421172041epoutp0112335ae2e230d4f9443fe04f0fdc2361~3eVzlby2E0319103191epoutp01H; Fri, 21 Apr 2017 17:20:41 +0000 (GMT) Received: from epsmges5p5.samsung.com (unknown [182.195.42.89]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20170421172040epcas5p381cf0a5a23dae7c1e96851129ad5ec40~3eVzDvdA71181611816epcas5p3Z; Fri, 21 Apr 2017 17:20:40 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p5.samsung.com (EPCPMTA) with SMTP id F5.86.06094.86F3AF85; Sat, 22 Apr 2017 02:20:40 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20170421172040epcas5p2ee7191a899c52ea3f077837dc2e865ca~3eVyzlF7F1710617106epcas5p2V; Fri, 21 Apr 2017 17:20:40 +0000 (GMT) X-AuditID: b6c32a59-f79166d0000017ce-df-58fa3f6833fe Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 07.F8.05013.86F3AF85; Sat, 22 Apr 2017 02:20:40 +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 <0OOR00KJBS560G40@mmp1.samsung.com>; Sat, 22 Apr 2017 02:20:40 +0900 (KST) From: Sylwester Nawrocki To: linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org Cc: inki.dae@samsung.com, sw0312.kim@samsung.com, cw00.choi@samsung.com, javier@osg.samsung.com, krzk@kernel.org, jy0922.shim@samsung.com, broonie@kernel.org, robh+dt@kernel.org, b.zolnierkie@samsung.com, Sylwester Nawrocki Subject: [PATCH RFC 5/7] ASoC: Add Odroid sound DT bindings documentation Date: Fri, 21 Apr 2017 19:19:49 +0200 Message-id: <1492795191-31298-6-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1492795191-31298-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBIsWRmVeSWpSXmKPExsWy7bCmum6G/a8Ig9+/9S2uXDzEZLFxxnpW i6kPn7BZXP/ynNVi/pFzrBZXvr5ns5h0fwKLxZu3a5gsXty7yGJx/vwGdouPPfdYLWac38dk 0br3CLvF4TftQO7kl2wO/B4bPjexeWxa1cnmcb/7OJPHlv677B59W1YxenzeJBfAFsVlk5Ka k1mWWqRvl8CVMXXzLbaCxyIVT25NY25gfCbQxcjJISFgIrFycSMrhC0mceHeerYuRi4OIYGl jBKTevaBJYQE2pkkbrcFdjFygDX8fewBUbOcUeLu+aMsEM4vRokbkzYzgzSwCRhK9B7tYwRJ iAjMY5S4tm0C2FhmgX+MEtMuTGYHqRIW8JRo/3kcrINFQFViWcsXsDivgJtE1+LZbBA3yUmc PDaZFWQ1p4C7xMWn7CBzJAS2sUv8mv2UBeIkWYlNB5ghTBeJlgnpEJ3CEq+Ob2GHsKUl/i69 xQjR2s8ocWJNM5Qzg1HiTvsEJogqa4nDxy+CvcwswCfR+/sJE8RQXomONiGIEg+J15+6mSFs R4nVfT+YIL6fxSjx6/RBlgmMMgsYGVYxiqUWFOempxabFpjqFSfmFpfmpesl5+duYgSnB63I HYxXZgYdYhTgYFTi4V3B8itCiDWxrLgy9xCjBAezkgivtz5QiDclsbIqtSg/vqg0J7X4EKM0 B4uSOK/GymsRQgLpiSWp2ampBalFMFkmDk6pBsaJZ/+VZgt+kci28S91qt4rVby6ceqHo20J Rlv5NvTsKQ6omSU9sd5Rf+b5uClCbgt7eV+wLHo14QQLR82m9gfrP8Tb7Hgxw9wgNkXz5wXD L483e0dM1dEoij+7fnGiUkbRDt0MdtW3qhV73ve3LaltnufwZIuPw8GJbMHf+1b4+pz79qJf 31mJpTgj0VCLuag4EQANSB03CwMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRmVeSWpSXmKPExsVy+t9jAd0M+18RBnMOy1hcuXiIyWLjjPWs FlMfPmGzuP7lOavF/CPnWC2ufH3PZjHp/gQWizdv1zBZvLh3kcXi/PkN7BYfe+6xWsw4v4/J onXvEXaLw2/agdzJL9kc+D02fG5i89i0qpPN4373cSaPLf132T36tqxi9Pi8SS6ALcrNJiM1 MSW1SCE1Lzk/JTMv3VYpNMRN10JJIS8xN9VWKULXNyRISaEsMacUyDMyQAMOzgHuwUr6dglu GVM332IreCxS8eTWNOYGxmcCXYwcHBICJhJ/H3t0MXICmWISF+6tZ+ti5OIQEljKKHHj4U8o 5xejxMOvh9lAqtgEDCV6j/YxgiREBOYxSmw4uRbMYRb4xyhxrKmfBaRKWMBTov3ncWYQm0VA VWJZyxd2EJtXwE2ia/FsNoh9chInj01mBTmDU8Bd4uJTsBIhoJKl/ZdZJzDyLmBkWMUokVqQ XFCclJ5rlJdarlecmFtcmpeul5yfu4kRHC/PpHcwHt7lfohRgINRiYd3BcuvCCHWxLLiytxD jBIczEoivN76QCHelMTKqtSi/Pii0pzU4kOMpkB3TWSWEk3OB8ZyXkm8oYm5ibmxgYW5paWJ kZI4b+PsZ+FCAumJJanZqakFqUUwfUwcnFINjDZFHnw/7bffES+TE3+ndPnLkfY+4eUpR8Jz PfPvHI6zLQ/kfWLxVq1ncer52uVXOrbdUuzqCd6R9HrCWTaLq98/n8pzsWd6xdM4X+CWpGvL mUuqf56v1Dk9/XRM+LH9cZ7eXgfLnKzPtE+uqu2L2hLp8Gue9u5F3pEvkmTLjcLPbq2qEH7/ R4mlOCPRUIu5qDgRAGgDas6tAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170421172040epcas5p2ee7191a899c52ea3f077837dc2e865ca X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?U3lsd2VzdGVyIE5hd3JvY2tpG1NSUE9MLUtlcm5lbCAoVFAp?= =?UTF-8?B?G+yCvOyEseyghOyekBtTZW5pb3IgU29mdHdhcmUgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?U3lsd2VzdGVyIE5hd3JvY2tpG1NSUE9MLUtlcm5lbCAoVFAp?= =?UTF-8?B?G1NhbXN1bmcgRWxlY3Ryb25pY3MbU2VuaW9yIFNvZnR3YXJlIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 105P X-CMS-RootMailID: 20170421172040epcas5p2ee7191a899c52ea3f077837dc2e865ca X-RootMTR: 20170421172040epcas5p2ee7191a899c52ea3f077837dc2e865ca References: <1492795191-31298-1-git-send-email-s.nawrocki@samsung.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds DT binding documentation for Odroid XU3/4 sound subsystem. Signed-off-by: Sylwester Nawrocki --- .../devicetree/bindings/sound/samsung,odroid.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/samsung,odroid.txt diff --git a/Documentation/devicetree/bindings/sound/samsung,odroid.txt b/Documentation/devicetree/bindings/sound/samsung,odroid.txt new file mode 100644 index 0000000..c1ac70c --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,odroid.txt @@ -0,0 +1,57 @@ +Samsung Exynos Odroid XU3/XU4 audio complex with MAX98090 codec + +Required properties: + + - compatible - "samsung,odroidxu3-audio" - for Odroid XU3 board, + "samsung,odroidxu4-audio" - for Odroid XU4 board + - model - the user-visible name of this sound complex + - 'cpu' subnode with a 'sound-dai' property containing the phandle of the I2S + controller + - 'codec' subnode with a 'sound-dai' property containing list of phandles + to the CODEC nodes, first entry must be corresponding to the MAX98090 + CODEC and the second entry must be the phandle of the HDMI IP block node + - clocks - should contain entries matching clock names in the clock-names + property + - clock-names - should contain following entries: + - "epll" - indicating the EPLL output clock + - "i2s_rclk" - indicating the RCLK (root) clock of the I2S0 controller + - samsung,audio-widgets - this property specifies off-codec audio elements + like headphones or speakers, for details see widgets.txt + - samsung,audio-routing - a list of the connections between audio + components; each entry is a pair of strings, the first being the + connection's sink, the second being the connection's source; + valid names for sources and sinks are the MAX98090's pins (as + documented in its binding), and the jacks on the board + + For Odroid X2: + "Headphone Jack", "Mic Jack", "DMIC" + + For Odroid U3, XU3: + "Headphone Jack", "Speakers" + + For Odroid XU4: + no entries + +Example: + +sound { + compatible = "samsung,odroidxu3-audio"; + samsung,cpu-dai = <&i2s0>; + samsung,codec-dai = <&max98090>; + model = "Odroid-XU3"; + samsung,audio-routing = + "Headphone Jack", "HPL", + "Headphone Jack", "HPR", + "IN1", "Mic Jack", + "Mic Jack", "MICBIAS"; + + clocks = <&clock CLK_FOUT_EPLL>, <&i2s0 CLK_I2S_RCLK_SRC>; + clock-names = "epll", "sclk_i2s"; + + cpu { + sound-dai = <&i2s0 0>; + }; + codec { + sound-dai = <&hdmi>, <&max98090>; + }; +};