From patchwork Thu Jun 4 03:41:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 6542111 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 56CB9C0020 for ; Thu, 4 Jun 2015 03:43:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 78DAB206E2 for ; Thu, 4 Jun 2015 03:42:59 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 324DC2039D for ; Thu, 4 Jun 2015 03:42:58 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5B4A2266040; Thu, 4 Jun 2015 05:42:57 +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 D4EBD265E36; Thu, 4 Jun 2015 05:42:21 +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 BF395265E3A; Thu, 4 Jun 2015 05:42:20 +0200 (CEST) Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by alsa0.perex.cz (Postfix) with ESMTP id 8B16E265DD3 for ; Thu, 4 Jun 2015 05:42:14 +0200 (CEST) Received: by pdbnf5 with SMTP id nf5so21340301pdb.2 for ; Wed, 03 Jun 2015 20:42:13 -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=V0YhpDVb42ifYsMgY02bOxZmNcuRiGa96RTSBiQDgrb/i+iBphKdpy03tf7JQpZDGE MNW6P/BlrFiiqadhtDpFbSw064I9HIctOX2aAWj38XQ1CfpW2Z7FIZnE8SqSp4aqPjvG GUY8JN1esQLizq6C25mYEeBKqntoI2i9PZxI7kJqJNVvshzOm6VCK03anKXwCBvEDzqp mReaRtZIXpT4w0f8prwPqANOoiRpc8MQW0SOldn6yS9ZB4P4EUcYPAs/8MvCHmYgaUh7 9gD6cbBmAELz/QxH5c13afn7In29Kvd+Zfzd2BqmRkP39xPwUAq+6Wgn9sH5vKcXh5Kh o3rA== X-Gm-Message-State: ALoCoQmZ66fUBm+h5VgxWJ0sWq1JBDwHBM1Cm6RpADRUEmq2sQxspA1+RSxIKtImR9byE42A7t/Y X-Received: by 10.68.224.10 with SMTP id qy10mr28014762pbc.23.1433389333655; Wed, 03 Jun 2015 20:42:13 -0700 (PDT) Received: from localhost.localdomain ([107.6.117.179]) by mx.google.com with ESMTPSA id fh9sm2162491pdb.17.2015.06.03.20.42.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jun 2015 20:42:12 -0700 (PDT) From: Jun Nie To: broonie@kernel.org, lgirdwood@gmail.com Date: Thu, 4 Jun 2015 11:41:20 +0800 Message-Id: <1433389283-15694-2-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433389283-15694-1-git-send-email-jun.nie@linaro.org> References: <1433389283-15694-1-git-send-email-jun.nie@linaro.org> Cc: jason.liu@linaro.org, alsa-devel@alsa-project.org, shawn.guo@linaro.org, wan.zhijun@zte.com.cn, Jun Nie Subject: [alsa-devel] [PATCH v4 1/4] 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"; + };