From patchwork Thu Jun 4 13:34:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 6547351 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 E009FC0020 for ; Thu, 4 Jun 2015 13:36:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 170A72076B for ; Thu, 4 Jun 2015 13:36:33 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 61FF020769 for ; Thu, 4 Jun 2015 13:36:28 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6AD132665EA; Thu, 4 Jun 2015 15:36:27 +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,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 340932606E0; Thu, 4 Jun 2015 15:35:39 +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 15E6D26649A; Thu, 4 Jun 2015 15:35:38 +0200 (CEST) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by alsa0.perex.cz (Postfix) with ESMTP id 496492606B5 for ; Thu, 4 Jun 2015 15:35:16 +0200 (CEST) Received: by pdbnf5 with SMTP id nf5so31243498pdb.2 for ; Thu, 04 Jun 2015 06:35:15 -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=KxKVI8sVgXSitNDKBLAdLyjQ/RWEIUnLH6PoxQKxXNw/hnEVhex4o+luiKUz5VqGYX izKa6r/BUaBycL0XV9+nznFlSLbv7npyqRYSuEwBqydC/FXYrrJS8qbGJucI8WbXLXVR U7+pEtTdK2bUqyFue/GpHwSLEQkvSrziR3AId+bK6ikU68toWj6bj0x9Non/TflLugAd 19YTfrtVcmWnpZ8JUr2grK6Ybv7u7NOBcmryNeoWhOEroUpG6s/w6PjgnRqZ3BXgPKDn ndfdBLpxpLUao2ewxdxMNJQAipzSqpAuTSsgrucOzwD0B9hafo/ix1bgsFin12my98vn dV1w== X-Gm-Message-State: ALoCoQnAYIZrWo3v4FOjsN0XDVUrGwn9zi0NTagMWeT/+Y3n0llRiC9K8EoHm3qvfDd62b/3A9sH X-Received: by 10.70.135.195 with SMTP id pu3mr69584291pdb.0.1433424915208; Thu, 04 Jun 2015 06:35:15 -0700 (PDT) Received: from localhost.localdomain ([107.6.117.179]) by mx.google.com with ESMTPSA id ph4sm3937519pdb.43.2015.06.04.06.35.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 06:35:14 -0700 (PDT) From: Jun Nie To: broonie@kernel.org, lgirdwood@gmail.com Date: Thu, 4 Jun 2015 21:34:44 +0800 Message-Id: <1433424887-11694-2-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433424887-11694-1-git-send-email-jun.nie@linaro.org> References: <1433424887-11694-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 v5 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"; + };