From patchwork Mon Jun 13 10:52:40 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: 9172665 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 EC61F604DB for ; Mon, 13 Jun 2016 10:54:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DED8120499 for ; Mon, 13 Jun 2016 10:54:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D384327C0C; Mon, 13 Jun 2016 10:54:44 +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 5D97B20499 for ; Mon, 13 Jun 2016 10:54:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965386AbcFMKyn (ORCPT ); Mon, 13 Jun 2016 06:54:43 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:45424 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964910AbcFMKym (ORCPT ); Mon, 13 Jun 2016 06:54:42 -0400 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O8P02HFKIAS81C0@mailout3.samsung.com>; Mon, 13 Jun 2016 19:54:41 +0900 (KST) X-AuditID: cbfee61b-f79b66d000001a32-5a-575e90f0dd4e Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 67.AF.06706.0F09E575; Mon, 13 Jun 2016 03:54:41 -0700 (MST) 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 <0O8P009PMI8GID90@mmp2.samsung.com>; Mon, 13 Jun 2016 19:54:40 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org Cc: robh@kernel.org, linux-samsung-soc@vger.kernel.org, ideal.song@samsung.com, beomho.seo@samsung.com, inki.dae@samsung.com, k.kozlowski@samsung.com, b.zolnierkie@samsung.com, Sylwester Nawrocki Subject: [PATCH RFC 6/6] ASoC: samsung: Add DT bindings documentation for TM2 sound subsystem Date: Mon, 13 Jun 2016 12:52:40 +0200 Message-id: <1465815160-28504-7-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1465815160-28504-1-git-send-email-s.nawrocki@samsung.com> References: <1465815160-28504-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCLMWRmVeSWpSXmKPExsVy+t9jQd2PE+LCDR7+Y7S4cvEQk8XGGetZ LU5/2sZuMfXhEzaL+UfOsVrs+nuf0WLS/QksFq9fGFrMOL+PyeL/nh3sFofftLM6cHts+NzE 5rFpVSebR9+WVYwenzfJBbBEcdmkpOZklqUW6dslcGVcOtTIVnBToGLrzuIGxhe8XYycHBIC JhJXLn9lhLDFJC7cW8/WxcjFISQwi1Hi6L9NrBDOL0aJ2ct2sIFUsQkYSvQe7QPrEBHwl5jw v50FpIhZ4AGjxLH/x5lAEsIC8RJLLz0CK2IRUJU4+movK4jNK+AmMePAYah1chInj00GinNw cAq4S2x84QQSFgIqabm3i3UCI+8CRoZVjBKpBckFxUnpuUZ5qeV6xYm5xaV56XrJ+bmbGMFh 90x6B+PhXe6HGAU4GJV4eDVWxYYLsSaWFVfmHmKU4GBWEuFd3R8XLsSbklhZlVqUH19UmpNa fIhRmoNFSZz38f91YUIC6YklqdmpqQWpRTBZJg5OqQZGD6cdMQtX3jG0v6vMvkyFy3PpRbXW u91xniaH1NdFv7kzSzMz+/CqxqbVyVPjTbf+nG9fverf+tZdWntNXEN3TWbVUNH4HHLlfayS 3eoZ+nFbRF/cbHiobGbS3rDV/FTavv2VX2LfmE7Z/2LvupneC+Qv9fakZztfOXib646gO+t1 hYuPBS9dVGIpzkg01GIuKk4EANWVkBk3AgAA 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 Exnos5433 based TM2 and TM2E boards sound subsystem. Signed-off-by: Sylwester Nawrocki Acked-by: Krzysztof Kozlowski --- .../bindings/sound/samsung,tm2-wm5110.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2-wm5110.txt diff --git a/Documentation/devicetree/bindings/sound/samsung,tm2-wm5110.txt b/Documentation/devicetree/bindings/sound/samsung,tm2-wm5110.txt new file mode 100644 index 0000000..32f69fcc --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,tm2-wm5110.txt @@ -0,0 +1,39 @@ +Samsung Exynos5433 TM2(E) audio complex with WM5110 codec + +Required properties: + + - compatible : "samsung,tm2-audio" + - samsung,model : the user-visible name of this sound complex + - clocks : must contain an entry for each entry in clock-names, + see ../clocks/clock-bindings.txt for details + - clock-names : must include the following entries: + "mclk1", "mclk2" + - samsung,i2s-controller : the phandle of the I2S controller + - samsung,speaker-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"; + clocks = <&pmu_system_controller 0>, <&s2mps13_osc 2>; + clock-names = "mclk1", "mclk2"; + samsung,i2s-controller = <&i2s0>; + samsung,speaker-amplifier = <&max98504>; + samsung,model = "wm5110"; + mic-bias-gpios = <&gpr3 2 0>; + samsung,audio-routing = + "HP", "HPOUT1L", + "HP", "HPOUT1R", + "SPK", "SPKOUT", + "SPKOUT", "HPOUT2L", + "SPKOUT", "HPOUT2R", + "Main Mic", "MICBIAS2", + "IN1R", "Main Mic"; +};