From patchwork Mon Feb 8 17:09:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 8252571 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 3319CBEEE5 for ; Mon, 8 Feb 2016 17:10:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 42438203DB for ; Mon, 8 Feb 2016 17:10:04 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 1F8E420145 for ; Mon, 8 Feb 2016 17:10:03 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 55E9C261ABB; Mon, 8 Feb 2016 18:10:01 +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, NO_DNS_FOR_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 164ED2612BD; Mon, 8 Feb 2016 18:09:35 +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 780B52612BD; Mon, 8 Feb 2016 18:09:33 +0100 (CET) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by alsa0.perex.cz (Postfix) with ESMTP id 37B9B260699 for ; Mon, 8 Feb 2016 18:09:26 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id c200so2485708wme.0 for ; Mon, 08 Feb 2016 09:09:26 -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=M10EMJduuafMcjf5RZcZx0lE5bS9J1xchEJoScM+PwFL4iBlr4B0UMjYEJFrXrGe2I 4X7d0p0tOFjEiLZyhJH75S23JUF4QiZ+GGMBG7dSSl+LMuV/04XsOYEH4MrM8YoA4lfZ T896A30spHJ1N92bHtt5aNXVuVxUYWhial4pMZrXiGfWP+D1cUAImY6KqisdZzr09/lE mAzjYOLRupFfvgL++CVzzZsmL/kS5wQBGwYA/sH0pA2dYF1Afnvrni2UHvuMr4QVl3bt evz1n1ZYurB92UInV0dELjzai2ZVRjArWfASyHRCp4lWSohtElQW/4GmRM+6lmw+jAaU IBxg== 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=kzpe0I/v41ZEyFIw7mTaxBFN8exo9akVTcJusG3x2ImtExwBhzE6pF1LQ0DomeeSyZ 0rTfYFEP18fAPD7pC3DLw1m+QnIPMQH9txbKurlhtPeF9aed5wtYwpldYOiDZH3pDoIP tXUC2nzlXB3yCtOEAXBmgPzf8k/5NXvnCgSzx+g+erurW/hxXPrEBomg82u3BylkNqK5 nFiyHjVhaGlMLtIQcgrqoPC35Kw3iAFmMPtl25UW5+rOWx7/lIweBeBGOeIRNArjmlb5 ITWj/mYxYYiPpRHELjUe7on35vOSp1h+hpY5hGaN1J0KgOjGcj/MEgGk/h/i5iSc9/d4 P2rg== X-Gm-Message-State: AG10YOSJNbeogMiXpVe99+hkpKe6+z4s/pI/x/Y5SmQOGiKX4io//blnrTR1lUHmI/d39Q== X-Received: by 10.194.79.163 with SMTP id k3mr28596738wjx.117.1454951366059; Mon, 08 Feb 2016 09:09:26 -0800 (PST) Received: from coopshtpc.localdomain ([212.85.89.14]) by smtp.gmail.com with ESMTPSA id n131sm13455780wmf.9.2016.02.08.09.09.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Feb 2016 09:09:24 -0800 (PST) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com Date: Mon, 8 Feb 2016 18:09:20 +0100 Message-Id: <1454951361-10625-2-git-send-email-codekipper@gmail.com> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1454951361-10625-1-git-send-email-codekipper@gmail.com> References: <1454951361-10625-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 v6 1/2] dt-bindings: sunxi :add sun4i SPDIF transceiver 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 Acked-by: Maxime Ripard --- .../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"; +};