From patchwork Wed Jun 29 11:26:38 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: 9205837 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 049106075A for ; Wed, 29 Jun 2016 17:54:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDC21262FF for ; Wed, 29 Jun 2016 17:54:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E175028678; Wed, 29 Jun 2016 17:54:45 +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, RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12837262FF for ; Wed, 29 Jun 2016 17:54:45 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 288682668CC; Wed, 29 Jun 2016 19:54:43 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9D93226685F; Wed, 29 Jun 2016 17:47:24 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A033126685F; Wed, 29 Jun 2016 17:47:22 +0200 (CEST) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by alsa0.perex.cz (Postfix) with ESMTP id F00542679A9 for ; Wed, 29 Jun 2016 13:29:21 +0200 (CEST) Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O9J01P726KUHYE0@mailout2.samsung.com> for alsa-devel@alsa-project.org; Wed, 29 Jun 2016 20:29:20 +0900 (KST) X-AuditID: cbfee61b-f798b6d00000114d-79-5773b110025d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 39.58.04429.011B3775; Wed, 29 Jun 2016 04:29:20 -0700 (MST) Received: from AMDC1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O9J00JKH6GN47A0@mmp1.samsung.com>; Wed, 29 Jun 2016 20:29:20 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org Date: Wed, 29 Jun 2016 13:26:38 +0200 Message-id: <1467199599-6892-6-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1467199599-6892-1-git-send-email-s.nawrocki@samsung.com> References: <1467199599-6892-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDLMWRmVeSWpSXmKPExsVy+t9jAV2BjcXhBjMuGVpcuXiIyWLjjPWs FlMfPmGzmH/kHKvFrr/3GS0m3Z/AYjHj/D4mi/97drBbHH7TzurA6bHhcxObx6ZVnWwefVtW MXp83iQXwBLFZZOSmpNZllqkb5fAlTF73i7GglVCFV9efWFvYJzM38XIySEhYCKxum8FG4Qt JnHh3nogm4tDSGApo0T70+PMEM4vRok7W24yglSxCRhK9B7tA7NFgDpuz+kEK2IWeMEo0dC9 HCwhLBAn0XppD1CCg4NFQFXi4TqwMK+Aq0TPpaXMENvkJE4em8wKYnMKuEk8/NUOViMEVHPn SAfjBEbeBYwMqxglUguSC4qT0nON8lLL9YoTc4tL89L1kvNzNzGCw+yZ9A7Gw7vcDzEKcDAq 8fBaXCgKF2JNLCuuzD3EKMHBrCTC+3tdcbgQb0piZVVqUX58UWlOavEhRmkOFiVx3sf/14UJ CaQnlqRmp6YWpBbBZJk4OKUaGK0m5YteE/xq+ihsa+L57g1c9o89FqZ1zVqsYKrqd+lRIIPU N92ymKJ1yxv7dtX73ryQKdX+KPPuHKvEr0f+mibniHa6SUUqRy3eXiGma7j5ilNfzs4G881b lq4JPWWkpL4lfYHpMU6xp5MdDzXpaxy80lO0Oz2vbLfVzIUFR7Oivwt+eOc1U4mlOCPRUIu5 qDgRAK5mBmAvAgAA Cc: robh@kernel.org, alsa-devel@alsa-project.org, linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, inki.dae@samsung.com, devicetree@vger.kernel.org, Sylwester Nawrocki , ideal.song@samsung.com Subject: [alsa-devel] [PATCH v3 5/6] ASoC: samsung: Add DT bindings documentation for TM2 sound subsystem X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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: Rob Herring --- 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 | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt 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..3ae56f3 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/samsung,tm2-audio.txt @@ -0,0 +1,36 @@ +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 Documentation/devicetree/bindings/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"; +};