From patchwork Fri Sep 2 12:58:12 2016 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: 9311005 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 46B0F60756 for ; Fri, 2 Sep 2016 12:59:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38B37295DE for ; Fri, 2 Sep 2016 12:59:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D698297A5; Fri, 2 Sep 2016 12:59:07 +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=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 B7DD1295DE for ; Fri, 2 Sep 2016 12:59:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753815AbcIBM67 (ORCPT ); Fri, 2 Sep 2016 08:58:59 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:58242 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932268AbcIBM65 (ORCPT ); Fri, 2 Sep 2016 08:58:57 -0400 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OCV029R9O27I3C0@mailout4.samsung.com>; Fri, 02 Sep 2016 21:58:55 +0900 (KST) X-AuditID: cbfee61a-f78ff6d000001462-de-57c9778f7570 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 50.6D.05218.F8779C75; Fri, 2 Sep 2016 21:58:55 +0900 (KST) Received: from AMDC1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OCV005HFO198900@mmp2.samsung.com>; Fri, 02 Sep 2016 21:58:55 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org Cc: alsa-devel@alsa-project.org, ckeepax@opensource.wolfsonmicro.com, b.zolnierkie@samsung.com, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH v6 1/2] ASoC: samsung: Add DT bindings documentation for TM2 sound subsystem Date: Fri, 02 Sep 2016 14:58:12 +0200 Message-id: <1472821093-25815-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPJMWRmVeSWpSXmKPExsVy+t9jQd3+8pPhBk8+8VpcuXiIyWLjjPWs FlMfPmGz+DflBrvF/CPnWC1mnN/HZHH4TTurA7vHhs9NbB6bVnWyebyc+JvNo2/LKkaPz5vk AlijuGxSUnMyy1KL9O0SuDIWvdvOUvBfqGLfradsDYzr+LsYOTkkBEwk5jUeY4SwxSQu3FvP 1sXIxSEkMItR4t/+dawQzi9GiWU3n7KAVLEJGEr0Hu0D6xAB6rg9p5MZxGYWOMco8WqJF4gt LBAncf7mbXYQm0VAVWLxh3NgvbwCbhJf9x5jg9gmJ3Hy2GTWCYzcCxgZVjFKpBYkFxQnpeca 5qWW6xUn5haX5qXrJefnbmIEB8szqR2MB3e5H2IU4GBU4uHNSD8ZLsSaWFZcmXuIUYKDWUmE d2YZUIg3JbGyKrUoP76oNCe1+BCjNAeLkjjv4//rwoQE0hNLUrNTUwtSi2CyTBycUg2M+c3T eQum1pp+SOtiuXY2fZOxxR2rqjlTp+Xunf/62Lxn/Lamxx8rpvMtm7dLR2OB365gIw6ZGV94 lSrmMnap+DtfTTPlSL7Nus9l/UOX38eKz3s8rGgMPly9TzZcRGRtRmi/VOPl5ub1tn0Xoi73 sb3QMVvsvOr1zSfTdU/MCA4oC9/NW8yqxFKckWioxVxUnAgATkHZexICAAA= 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 DT binding documentation for Exynos5433 based TM2 and TM2E boards sound subsystem. Signed-off-by: Sylwester Nawrocki Acked-by: Rob Herring --- Changes since v5: - none. Changes since v4: - indentation changes. Changes since v2: - none. Changes since initial version: - dropped clocks, clock-names properties, instead properties from the CODEC node will be used, - property renames: 'samsung,model' -> 'model', 'samsung,i2s-controller' -> 'i2s-controller', 'samsung,speaker-amplifier' -> 'audio-amplifier', - added 'audio-codec' property. --- .../bindings/sound/samsung,tm2-audio.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt -- 1.9.1 -- 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/Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt b/Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt new file mode 100644 index 0000000..94442e5 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt @@ -0,0 +1,38 @@ +Samsung Exynos5433 TM2(E) audio complex with WM5110 codec + +Required properties: + + - compatible : "samsung,tm2-audio" + - model : the user-visible name of this sound complex + - audio-codec : the phandle of the wm5110 audio codec node, + as described in ../mfd/arizona.txt + - i2s-controller : the phandle of the I2S controller + - audio-amplifier : the phandle of the MAX98504 amplifier + - 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 + WM5110's and MAX98504's pins and the jacks on the + board: HP, SPK, Main Mic, Sub Mic, Third Mic, + Headset Mic + - mic-bias-gpios : GPIO pin that enables the Main Mic bias regulator + + +Example: + +sound { + compatible = "samsung,tm2-audio"; + audio-codec = <&wm5110>; + i2s-controller = <&i2s0>; + audio-amplifier = <&max98504>; + mic-bias-gpios = <&gpr3 2 0>; + model = "wm5110"; + samsung,audio-routing = + "HP", "HPOUT1L", + "HP", "HPOUT1R", + "SPK", "SPKOUT", + "SPKOUT", "HPOUT2L", + "SPKOUT", "HPOUT2R", + "Main Mic", "MICBIAS2", + "IN1R", "Main Mic"; +};