From patchwork Wed Nov 2 16:02:37 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: 9409441 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 6FADA60721 for ; Wed, 2 Nov 2016 16:05:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EB8C2A44D for ; Wed, 2 Nov 2016 16:05:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50B652A44F; Wed, 2 Nov 2016 16:05:52 +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 DDD082A44D for ; Wed, 2 Nov 2016 16:05:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 952DE266B2C; Wed, 2 Nov 2016 17:05:48 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 6135C2668E8; Wed, 2 Nov 2016 17:03:27 +0100 (CET) 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 D1BF92666FA; Wed, 2 Nov 2016 17:03:17 +0100 (CET) Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by alsa0.perex.cz (Postfix) with ESMTP id 4C2D2266B2C for ; Wed, 2 Nov 2016 17:03:09 +0100 (CET) Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OG0010JTV7EFRD0@mailout3.samsung.com> for alsa-devel@alsa-project.org; Thu, 03 Nov 2016 01:03:05 +0900 (KST) X-AuditID: cbfee61a-f79926d000005981-d4-581a0e3967dc Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id C6.F2.22913.93E0A185; Thu, 3 Nov 2016 01:03:05 +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 <0OG000A4WV8GKJ30@mmp1.samsung.com>; Thu, 03 Nov 2016 01:03:05 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org, linux-samsung-soc@vger.kernel.org Date: Wed, 02 Nov 2016 17:02:37 +0100 Message-id: <1478102558-12524-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsVy+t9jAV1LPqkIgw1XRS2uXDzEZLFxxnpW i6kPn7BZnD+/gd1i0+NrrBYzzu9jsjj8pp3V4uKKL0wOHB4bPjexeWxa1cnmsXlJvUffllWM Hp83yQWwRrnZZKQmpqQWKaTmJeenZOal2yqFhrjpWigp5CXmptoqRej6hgQpKZQl5pQCeUYG aMDBOcA9WEnfLsEto+NfI3PBP6GKrc1/WBsY1/J3MXJySAiYSBz81ckEYYtJXLi3nq2LkYtD SGApo8T0BZdYIZxfjBItJ9sYQarYBAwleo/2gdkiApYS1y6/YAYpYhbYxijx4uIrVpCEsECq xN2181i6GDk4WARUJbbeEgcJ8wq4SbQCvQaxTU7i5LHJrBMYuRcwMqxilEgtSC4oTkrPNcxL LdcrTswtLs1L10vOz93ECA7WZ1I7GA/ucj/EKMDBqMTDK/BNMkKINbGsuDL3EKMEB7OSCG8S l1SEEG9KYmVValF+fFFpTmrxIUZToP0TmaVEk/OBkZRXEm9oYm5ibmxgYW5paWKkJM7bOPtZ uJBAemJJanZqakFqEUwfEwenVAOju4HJysXexw13FdzeXmUWn90ePP2gxRWpvX/2bUuuE5ly uK8rh1dYJKU98VB035TZGaEl29fw3N/wc7VaM5dY2N6ks2YMu+YGct3k5dzVtPjg7Mb/kVLl EbtNS4Ie8rsee1f8WTtg1m2DhyxLMy1fJRVK3lwiNvGh6c6OWWEbH2v+0+lO/GarxFKckWio xVxUnAgA2plIF2wCAAA= X-MTR: 20000000000000000@CPGS Cc: alsa-devel@alsa-project.org, b.zolnierkie@samsung.com, sbkim73@samsung.com, krzk@kernel.org, Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH v7 RESEND 1/2] 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 Acked-by: Krzysztof Kozlowski --- 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 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"; +};