From patchwork Tue Jul 5 17:14: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: 9214945 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 3617D6048B for ; Tue, 5 Jul 2016 17:14:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2382D27DB3 for ; Tue, 5 Jul 2016 17:14:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 184B727DCE; Tue, 5 Jul 2016 17:14: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=-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 A896127DB3 for ; Tue, 5 Jul 2016 17:14:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030228AbcGEROn (ORCPT ); Tue, 5 Jul 2016 13:14:43 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:47792 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030188AbcGEROm (ORCPT ); Tue, 5 Jul 2016 13:14:42 -0400 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O9U01K3TQKGHN60@mailout2.samsung.com>; Wed, 06 Jul 2016 02:14:40 +0900 (KST) X-AuditID: cbfee61a-f79106d000000835-65-577beb00847b Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 63.2F.02101.00BEB775; Wed, 6 Jul 2016 02:14:40 +0900 (KST) 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 <0O9U00BQHQK6XT40@mmp1.samsung.com>; Wed, 06 Jul 2016 02:14:40 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org Cc: robh@kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, ideal.song@samsung.com, inki.dae@samsung.com, b.zolnierkie@samsung.com, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH v4 3/4] ASoC: samsung: Add DT bindings documentation for TM2 sound subsystem Date: Tue, 05 Jul 2016 19:14:12 +0200 Message-id: <1467738852-31508-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgluLIzCtJLcpLzFFi42I5/e+xgC7D6+pwg3+tshZXLh5istg4Yz2r xdSHT9gs5h85x2qx6+99RotJ9yewWFzeNYfNYsb5fUwW//fsYLc4/Kad1YHLY8PnJjaPTas6 2Tz6tqxi9Pi8SS6AJYrLJiU1J7MstUjfLoErY/a8XYwFq4Qqvrz6wt7AOJm/i5GDQ0LAROLK RNEuRk4gU0ziwr31bF2MXBxCAksZJS6uWMoE4fxilLhwdgsTSBWbgKFE79E+RhBbBKjj9pxO ZpAiZoEOJokfH26xgEwVFoiT2Li5CKSGRUBVYva8tawgNq+Am8TbK6vZIbbJSZw8Npl1AiP3 AkaGVYwSqQXJBcVJ6bmGeanlesWJucWleel6yfm5mxjB4fNMagfjwV3uhxgFOBiVeHgnPK8O F2JNLCuuzD3EKMHBrCTCG/8SKMSbklhZlVqUH19UmpNafIhRmoNFSZz38f91YUIC6Yklqdmp qQWpRTBZJg5OqQbGqTtPXS+cpfe2LmLeS1Gzr5GVDH6N5s+u/P5RnzkhatnFAPlZpput6zU8 3SYuTj698gK/47Koae+rjyit+yCSpLrxQOvL7BIRkzP92ZNM5H8c1CgulD/kFnH2x8n6WVIb N2VOWTDrzt3nJ78+jfxep3VzccRZjYN26hnfIgKWHv2rsOtexkUeEyWW4oxEQy3mouJEAALI U4EbAgAA 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: 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"; +};