From patchwork Sun Feb 21 11:13:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 8368281 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 B85B0C0553 for ; Sun, 21 Feb 2016 11:14:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C72B620421 for ; Sun, 21 Feb 2016 11:14:22 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 9955A203F7 for ; Sun, 21 Feb 2016 11:14:21 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id B7E4B2655E3; Sun, 21 Feb 2016 12:14:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3D525260710; Sun, 21 Feb 2016 12:13:51 +0100 (CET) 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 CA6702607E8; Sun, 21 Feb 2016 12:13:49 +0100 (CET) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by alsa0.perex.cz (Postfix) with ESMTP id BF21A26054D for ; Sun, 21 Feb 2016 12:13:42 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id c200so133387733wme.0 for ; Sun, 21 Feb 2016 03:13:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=75X5L6GGKB+quZgvKivLX7n3EuB5EUyvQwwlqyzShJA=; b=BYFEMtcWboDpqpq/DdXqwS71a3KNvaQUCFy6JKbZFdx/fmC1HI8UqqfZXc67Nz52Zq d2nwuFRXVqUZn6a6F3zc0tf3SX3Jvgujk+FHWtSErjY+cs8E5CvGB3DFXzOK1jnrbWLC eA56BTBid5dEIqTlNWqtR6xYx3warp/a2xfqrwou02j8GHTtSP1TVPne18A6nZDDo8N0 dSqMV4GOL6aFHpnZZlYO+5c0nsFmv1OlGOrbjhsV6BRwWfgB5IXDLwPUL+AccQGGsPin nSo+EN9jlWSZszDNc5ez7n6MyT3c9NdmZ6bC5D193BgMUfNTmC59844Dbo5TPaeKZlLx blGg== 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=75X5L6GGKB+quZgvKivLX7n3EuB5EUyvQwwlqyzShJA=; b=THRdB0WdUtPdq3ncsGscaAeiKlbW/HvZoo9T875sjxSOpXr0Dv2Se7HxdBn3czMWOV 7vyHEgEgGbwzII373DkzBN1P6DyEQQBbcKD8vHcEd/srSgODIDsghXfOBS6ND5nt0Sfk ttliyRLwGxjX9du2MN+r38xjXgQYJAgy4ZB+mtBKNTzK0BxMl+pMfaVmbx73BOnNgUcA nY4oXKJ9GE9Oz97H+ruZU8R6NX6XDfOFoAAOcSFHIwTZn1VIWXTXT4NueMO/4B1BtW94 dhG3snKOv7yWz3LuEnyX6wzoGb52HJMjWBTsOQw8YFUvJWizz6vrANIadi8i/jvjKIzL G6bw== X-Gm-Message-State: AG10YOT+QrMYvADQqUUsjPZFhrO+oy9/i8T+986PgkxdklE/ar3Py9BVvYO/TzqJZqG2ZA== X-Received: by 10.194.120.229 with SMTP id lf5mr25132126wjb.151.1456053222635; Sun, 21 Feb 2016 03:13:42 -0800 (PST) Received: from coopshtpc.localdomain ([212.85.89.14]) by smtp.gmail.com with ESMTPSA id ct2sm19658752wjb.46.2016.02.21.03.13.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 21 Feb 2016 03:13:41 -0800 (PST) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com Date: Sun, 21 Feb 2016 12:13:37 +0100 Message-Id: <1456053218-16325-2-git-send-email-codekipper@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456053218-16325-1-git-send-email-codekipper@gmail.com> References: <1456053218-16325-1-git-send-email-codekipper@gmail.com> Cc: alsa-devel@alsa-project.org, Marcus Cooper , lgirdwood@gmail.com, linux-kernel@vger.kernel.org, be17068@iperbole.bo.it, linux-sunxi@googlegroups.com, broonie@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH v7 1/2] ASoC: sunxi :add sun4i SPDIF dt bindings 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 From: Marcus Cooper Add devicetree bindings for the SPDIF transceiver found on found on Allwinners A10 and A20 SoCs. Signed-off-by: Marcus Cooper --- .../bindings/sound/sunxi,sun4i-spdif.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/sunxi,sun4i-spdif.txt diff --git a/Documentation/devicetree/bindings/sound/sunxi,sun4i-spdif.txt b/Documentation/devicetree/bindings/sound/sunxi,sun4i-spdif.txt new file mode 100644 index 0000000..13503aa --- /dev/null +++ b/Documentation/devicetree/bindings/sound/sunxi,sun4i-spdif.txt @@ -0,0 +1,39 @@ +Allwinner Sony/Philips Digital Interface Format (S/PDIF) Controller + +The Allwinner S/PDIF audio block is a transceiver that allows the +processor to receive and transmit digital audio via an coaxial cable or +a fibre cable. +For now only playback is supported. + +Required properties: + + - compatible : should be one of the following: + - "allwinner,sun4i-a10-spdif": for the Allwinner A10 SoC + + - reg : Offset and length of the register set for the device. + + - interrupts : Contains the spdif interrupt. + + - dmas : Generic dma devicetree binding as described in + Documentation/devicetree/bindings/dma/dma.txt. + + - dma-names : Two dmas have to be defined, "tx" and "rx". + + - clocks : Contains an entry for each entry in clock-names. + + - clock-names : Includes the following entries: + "apb" clock for the spdif bus. + "spdif" clock for spdif controller. + +Example: + +spdif: spdif@01c21000 { + compatible = "allwinner,sun4i-a10-spdif"; + reg = <0x01c21000 0x40>; + interrupts = <13>; + clocks = <&apb0_gates 1>, <&spdif_clk>; + clock-names = "apb", "spdif"; + dmas = <&dma 0 2>, <&dma 0 2>; + dma-names = "rx", "tx"; + status = "okay"; +};