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: 9172675 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 051FC604DB for ; Mon, 13 Jun 2016 10:56:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB82B27C8F for ; Mon, 13 Jun 2016 10:56:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E08DD27D0E; Mon, 13 Jun 2016 10:56:46 +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 55FEF27C8F for ; Mon, 13 Jun 2016 10:56:46 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5884E266684; Mon, 13 Jun 2016 12:56:45 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4577F265821; Mon, 13 Jun 2016 12:55:06 +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 9F81E2665E1; Mon, 13 Jun 2016 12:55:04 +0200 (CEST) Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by alsa0.perex.cz (Postfix) with ESMTP id 420D6265821 for ; Mon, 13 Jun 2016 12:54:34 +0200 (CEST) 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> for alsa-devel@alsa-project.org; 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 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 Cc: robh@kernel.org, k.kozlowski@samsung.com, linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, inki.dae@samsung.com, Sylwester Nawrocki , beomho.seo@samsung.com, ideal.song@samsung.com Subject: [alsa-devel] [PATCH RFC 4/6] ASoC: Add DT bindings documentation for max98504 amplifier 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 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 +};