From patchwork Mon Jun 13 10:52: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: 9172661 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 EBE1E604DB for ; Mon, 13 Jun 2016 10:54:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE5D520499 for ; Mon, 13 Jun 2016 10:54:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D33DE27C0C; Mon, 13 Jun 2016 10:54:32 +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 5C19420499 for ; Mon, 13 Jun 2016 10:54:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965236AbcFMKyb (ORCPT ); Mon, 13 Jun 2016 06:54:31 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:49337 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964910AbcFMKyb (ORCPT ); Mon, 13 Jun 2016 06:54:31 -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:28 +0900 (KST) X-AuditID: cbfee61b-f79b66d000001a32-4e-575e90e4e64f Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 45.AF.06706.4E09E575; Mon, 13 Jun 2016 03:54:28 -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:28 +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 4/6] ASoC: Add DT bindings documentation for max98504 amplifier Date: Mon, 13 Jun 2016 12:52:38 +0200 Message-id: <1465815160-28504-5-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+t9jQd0nE+LCDb7u1LC4cvEQk8XGGetZ LU5/2sZuMfXhEzaL+UfOsVrs+nuf0WLS/QksFq9fGFrMOL+PyeL/nh3sFofftLM6cHts+NzE 5rFpVSebR9+WVYwenzfJBbBEcdmkpOZklqUW6dslcGXcaP3LWPBRoGL96VXsDYwXeLsYOTkk BEwkehZ8YIWwxSQu3FvP1sXIxSEkMItR4tKRTkYI5xejxNYJz9lAqtgEDCV6j/YxgtgiAv4S E/63s4AUMQs8YJQ49v84E0hCWCBU4nD/LXYQm0VAVeLbto9AKzg4eAXcJD6904HYJidx8thk sDCngLvExhdOIGEhoIqWe7tYJzDyLmBkWMUokVqQXFCclJ5rlJdarlecmFtcmpeul5yfu4kR HHbPpHcwHt7lfohRgINRiYdXY1VsuBBrYllxZe4hRgkOZiUR3tX9ceFCvCmJlVWpRfnxRaU5 qcWHGKU5WJTEeR//XxcmJJCeWJKanZpakFoEk2Xi4JRqYGS61qu69GVRw0J39kbVKW+sf2cu WzNjU/iTWxKX2t7vvtKSrj1V9HHP/fJ7gTYaGbnONnOYLDVktFXDP/IvsfvsceNhYNJXHgdV nt9RbI9blXYr3WPcetzitHLmwcW3hdN31JUbbIs+zZtwrmOJg3DAFZV/cc17j1RMuLV2QYtJ oJWN7YaKw0osxRmJhlrMRcWJAEyOQj03AgAA 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 bindings documentation for Maxim MAX98504 speaker amplifier. Signed-off-by: Sylwester Nawrocki Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/sound/max98504.txt | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/max98504.txt diff --git a/Documentation/devicetree/bindings/sound/max98504.txt b/Documentation/devicetree/bindings/sound/max98504.txt new file mode 100644 index 0000000..0cb75af --- /dev/null +++ b/Documentation/devicetree/bindings/sound/max98504.txt @@ -0,0 +1,44 @@ + +Maxim MAX98504 class D mono speaker amplifier + +Required properties: + + - compatible : "maxim,max98504" + - reg : should contain the I2C slave device address + +Optional properties: + + - maxim,rx-path : indicates speaker source interface: + 0 - PCM monomix output, + 1 - Analog input, + 2 - left PDM channel (CH0), + 3 - right PDM channel (CH1) + + - maxim,rx-channel-mask : a bitmask indicating active PCM Rx channels, + bits b7...b0 correspond to channels CH7...CH0 + + - maxim,tx-path : indicates the V/I sense (feedback) Tx data interface used: + 0 - PCM, 1 - TDM + + - maxim,tx-channel-mask : a bitmask indicating active PCM or PDM Tx channels, + bits b7...b0 correspond to channels CH7...CH0, for PCM are meaningful + channels CH7...CH0, for PDM only channels CH1, CH0 + + - maxim,tx-channel-source : a bitmask indicating V/I sense source type for + each PCM or PDM Tx channel; bits b7...b0 correspond to channels CH7...CH0, + for PCM are meaningful channels CH7...CH0, for PDM only channels CH1, CH0: + 0 - selects voltage measurement data (V), + 1 - selects current measurement data (I) + +If any of the above optional properties is missing its value defaults to 0. + +Example: + + max98504: max98504@31 { + compatible = "maxim,max98504"; + reg = <0x31>; + maxim,rx-path = <1>; // Analog input + maxim,tx-path = <1>; // V/I sense PDM Tx + maxim,tx-channel-mask = <3>; // channels CH1, CH0 + maxim,tx-channel-source = <2>; // CH1 current, CH0 voltage +};