From patchwork Tue Sep 1 05:41:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Songjun Wu X-Patchwork-Id: 7102731 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 68CA39F32B for ; Tue, 1 Sep 2015 05:44:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 87F90204D6 for ; Tue, 1 Sep 2015 05:44:11 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 6C0A8204B5 for ; Tue, 1 Sep 2015 05:44:09 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id AD695264F2F; Tue, 1 Sep 2015 07:44:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 9C5DB261B0E; Tue, 1 Sep 2015 07:43:31 +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 6DAB3261B1E; Tue, 1 Sep 2015 07:43:30 +0200 (CEST) Received: from DVREDG01.corp.atmel.com (nasmtp01.atmel.com [192.199.1.245]) by alsa0.perex.cz (Postfix) with ESMTP id 44C7B261A5A for ; Tue, 1 Sep 2015 07:43:27 +0200 (CEST) Received: from sjogate2.atmel.com (10.42.103.223) by DVREDG01.corp.atmel.com (10.42.103.30) with Microsoft SMTP Server id 14.3.235.1; Mon, 31 Aug 2015 23:43:24 -0600 Received: from shaarm01.corp.atmel.com (shaarm01.corp.atmel.com [10.217.6.34]) by sjogate2.atmel.com (8.13.6/8.13.6) with ESMTP id t815c5VA018397; Mon, 31 Aug 2015 22:38:16 -0700 (PDT) From: Songjun Wu To: , , , , , , , , , , , , Date: Tue, 1 Sep 2015 13:41:41 +0800 Message-ID: <1441086101-15303-3-git-send-email-songjun.wu@atmel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1441086101-15303-1-git-send-email-songjun.wu@atmel.com> References: <1441086101-15303-1-git-send-email-songjun.wu@atmel.com> MIME-Version: 1.0 Cc: Songjun Wu Subject: [alsa-devel] [PATCH 2/2] ASoC: atmel-classd: DT binding for Class D audio amplifier driver 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu --- .../devicetree/bindings/sound/atmel-classd.txt | 73 ++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/atmel-classd.txt diff --git a/Documentation/devicetree/bindings/sound/atmel-classd.txt b/Documentation/devicetree/bindings/sound/atmel-classd.txt new file mode 100644 index 0000000..29d181a --- /dev/null +++ b/Documentation/devicetree/bindings/sound/atmel-classd.txt @@ -0,0 +1,73 @@ +* Atmel ClassD driver under ALSA SoC architecture + +* Atmel ClassD driver +Required properties: +- compatible + Should be "atmel,sama5d2-classd". +- reg + Should contain ClassD registers location and length. +- interrupts + Should contain the IRQ line for the ClassD. +- dmas + One DMA specifiers as described in atmel-dma.txt and dma.txt files. +- dma-names + Must be "tx". +- clock-names + tuple listing input clock names. + Required elements: "pclk", "gclk" and "aclk". +- clocks + phandles to input clocks. + +Optional properties: +- pinctrl-names, pinctrl-0 + Please refer to pinctrl-bindings.txt. +- atmel,pwm-type + PWM modulation type, "single" or "diff". +- atmel,non-overlap-time + Set non-overlapping time, the unit is nanosecond(ns). + There are four values, + <5>, <10>, <15>, <20>, the default value is <10>. + Non-overlapping will be disabled if not specified. + +Example: +classd: classd@fc048000 { + compatible = "atmel,sama5d2-classd"; + reg = <0xfc048000 0x100>; + interrupts = <59 IRQ_TYPE_LEVEL_HIGH 7>; + dmas = <&dma0 + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) + | AT91_XDMAC_DT_PERID(47))>; + dma-names = "tx"; + clocks = <&classd_clk>, <&classd_gclk>, <&audio_pll_pmc>; + clock-names = "pclk", "gclk", "aclk"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_classd_default>; + atmel,pwm-type = "diff"; + atmel,non-overlap-time = <10>; +}; + + +* Atmel ASoC driver with ClassD +Required properties: +- compatible + Should be "atmel,asoc-classd". +- atmel,model + The user-visible name of this sound complex. +- atmel,audio-platform + Should be <&classd>. +- atmel,audio-cpu-dai-name + The name of the CPU DAI in ALSA SoC architecture. + The format is .classd. +- atmel,audio-codec + Should be <&classd>. + +Example: +sound { + compatible = "atmel,asoc-classd"; + + atmel,model = "classd @ SAMA5D2-Xplained"; + atmel,audio-platform = <&classd>; + atmel,audio-cpu-dai-name = "fc048000.classd"; + atmel,audio-codec = <&classd>; +};