From patchwork Fri May 29 13:31:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 6507611 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 197ED9F1CC for ; Fri, 29 May 2015 13:32:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4689E206A4 for ; Fri, 29 May 2015 13:32:33 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 084C02069B for ; Fri, 29 May 2015 13:32:32 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1C8E5266851; Fri, 29 May 2015 15:32:31 +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=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 1CB062606CB; Fri, 29 May 2015 15:31:56 +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 62D952606CB; Fri, 29 May 2015 15:31:54 +0200 (CEST) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by alsa0.perex.cz (Postfix) with ESMTP id 5B30D2606B2 for ; Fri, 29 May 2015 15:31:48 +0200 (CEST) Received: by pacrp13 with SMTP id rp13so13091639pac.2 for ; Fri, 29 May 2015 06:31:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tyExv1dtfx7BAYebq//LVeXrgoTlxHqyhlK+TWfPPek=; b=EU5BdfjQTZHcccGTLbU33Ng6l5ReFXtsrJt2gJyifTPeidG+e2d+Tfp/mV6gP5sSYK IEGP9ISBRx5JTE7Hoi7otY4qlE5XDVbC/3IDIglFtJJHMmJegDYdHIxacpRETMiTNL7f aslacj+oOMLgc4l8sUyVLAoouuyh1GZBExbodElMyaSiFcRhROTPg67BnfUWKYFN+Czy jtyTDRhj0xM0w/W+9T43HeCrl/bJAISod6hHZubnWoJUd57DDXU42dB0cYRgF+TP4TEc DxZoKqmD7QGbS5i3v0NelZ7HxHOxvB4jUUthRASdhgsNugP9BDW9tZWKtILVOr0LAqSF lRhA== X-Gm-Message-State: ALoCoQmVBqTxBZNA5nsndTMx77RIm4tC1RA0u0Roa6/fszNQwquDiWB3Ud70QiB0QSCViymj3hDQ X-Received: by 10.70.109.131 with SMTP id hs3mr15132982pdb.40.1432906306712; Fri, 29 May 2015 06:31:46 -0700 (PDT) Received: from localhost.localdomain ([107.6.117.178]) by mx.google.com with ESMTPSA id he9sm5675442pbc.7.2015.05.29.06.31.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 May 2015 06:31:45 -0700 (PDT) From: Jun Nie To: broonie@kernel.org, lgirdwood@gmail.com Date: Fri, 29 May 2015 21:31:16 +0800 Message-Id: <1432906281-27698-2-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432906281-27698-1-git-send-email-jun.nie@linaro.org> References: <1432906281-27698-1-git-send-email-jun.nie@linaro.org> Cc: alsa-devel@alsa-project.org, shawn.guo@linaro.org, wan.zhijun@zte.com.cn, Jun Nie Subject: [alsa-devel] [PATCH v3 1/6] dt: Add documentation for the ZTE SPDIF controller 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 the devicetree documentation for the ZTE zx296702 SPDIF audio controller. Signed-off-by: Jun Nie --- .../devicetree/bindings/sound/zte,zx-spdif.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/zte,zx-spdif.txt diff --git a/Documentation/devicetree/bindings/sound/zte,zx-spdif.txt b/Documentation/devicetree/bindings/sound/zte,zx-spdif.txt new file mode 100644 index 0000000..989544e --- /dev/null +++ b/Documentation/devicetree/bindings/sound/zte,zx-spdif.txt @@ -0,0 +1,28 @@ +ZTE ZX296702 SPDIF controller + +Required properties: + - compatible : Must be "zte,zx296702-spdif" + - reg : Must contain SPDIF core's registers location and length + - clocks : Pairs of phandle and specifier referencing the controller's clocks. + - clock-names: "tx" for the clock to the SPDIF interface. + - dmas: Pairs of phandle and specifier for the DMA channel that is used by + the core. The core expects one dma channel for transmit. + - dma-names : Must be "tx" + +For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties +please check: + * resource-names.txt + * clock/clock-bindings.txt + * dma/dma.txt + +Example: + spdif0: spdif0@0b004000 { + compatible = "zte,zx296702-spdif"; + reg = <0x0b004000 0x1000>; + clocks = <&lsp0clk ZX296702_SPDIF0_DIV>; + clock-names = "tx"; + interrupts = ; + dmas = <&dma 4>; + dma-names = "tx"; + status = "okay"; + };