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: 8368301 Return-Path: X-Original-To: patchwork-linux-arm@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 07F70C0553 for ; Sun, 21 Feb 2016 11:16:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 13CFE20421 for ; Sun, 21 Feb 2016 11:16:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 442992040F for ; Sun, 21 Feb 2016 11:16:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXRxw-000157-AJ; Sun, 21 Feb 2016 11:14:16 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXRxl-00011s-0Q for linux-arm-kernel@lists.infradead.org; Sun, 21 Feb 2016 11:14:06 +0000 Received: by mail-wm0-x231.google.com with SMTP id g62so134460895wme.1 for ; Sun, 21 Feb 2016 03:13:43 -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=AKGAymZQzX6J6DSauwKYhUwr3rWqHxZAx8I+P7lpLL0LJz4q2ls7J7zcAzuSVjhdkC bAw+jSkqt/kdZsyA0F5R3AloDrDFeBMfoEtdJdm6KtlXymDdAG+2/pK2k4G1vtueRUGP OOfE6JWnbfqYMYflJNlF5QcW3kSXlWQ98dFLMiX4SHqDuZysAnBPKocfyeTOBjb8Ha78 Pu0RpZVwrEO6G2FTgG0BBmqpHbq0paaIGaI8rzNDr7oj/AbeD6KF5086TyubpQB9k1gA D94XjPb9xRm+W69HoeaFgzw0yM3vEbCbL82Ngcii1sznHUZBCk4AFhwn9Dk2W5rh2uiP QaYA== X-Gm-Message-State: AG10YOTwQBIc99lVvHgolDiSOOKH0yoy8ddWawb5tUrhrT4yyfLwS7Ruk69uvtA/89oIpA== 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 Subject: [PATCH v7 1/2] ASoC: sunxi :add sun4i SPDIF dt bindings 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160221_031405_326025_2C29F942 X-CRM114-Status: GOOD ( 13.48 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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"; +};