From patchwork Wed Sep 23 18:04:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 7251771 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 C0940BEEC1 for ; Wed, 23 Sep 2015 18:05:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D509120A1C for ; Wed, 23 Sep 2015 18:05:37 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 7EF8720961 for ; Wed, 23 Sep 2015 18:05:36 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 94B542655DE; Wed, 23 Sep 2015 20:05:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 1E29326047C; Wed, 23 Sep 2015 20:05:22 +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 0F49126087F; Wed, 23 Sep 2015 20:05:20 +0200 (CEST) Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by alsa0.perex.cz (Postfix) with ESMTP id 79F3126047C for ; Wed, 23 Sep 2015 20:04:59 +0200 (CEST) Received: by wiclk2 with SMTP id lk2so251577915wic.0 for ; Wed, 23 Sep 2015 11:04:58 -0700 (PDT) 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=QU4apL38XngGn0er+ArBsEsvqBNqEUOCsZ0niE/8ENk=; b=1GsD2UV6uqgubf2eY+Hd/mtC0SUU7voEGLGhlcWBWQcTAwrSah8dd4Mzg9rhiE8XVb 25NfoEWZOLPNB1Ka77sXkJirBLwE1oENvxnsTt7bQr/V7Qat0ABeCuVvmyN+y3HIb5/Q v4KW4Pv+P1qO3E2eu4iSmSMRBpRFQGoVe48ilrCzGMYrBJ6Teko4VVkg46bFNITd91ex MqrWPqwNMSX+09IOih5tb7j4d9Q2zCaWta16H3WuHxu7R5NGmUxdhVdZ3nxcj0qZFgkp RxKRsY3qd3dA1jvF9Mnn1g9AE468AIIYwX0ll9P1iBZAFS6kkt4gOJNRUWqM+vWgn13s KdrQ== X-Received: by 10.194.104.200 with SMTP id gg8mr40989879wjb.144.1443031498186; Wed, 23 Sep 2015 11:04:58 -0700 (PDT) Received: from coopshtpc.localdomain (h-88-30.a230.priv.bahnhof.se. [212.85.88.30]) by smtp.gmail.com with ESMTPSA id i9sm8405770wjz.20.2015.09.23.11.04.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Sep 2015 11:04:57 -0700 (PDT) From: codekipper@gmail.com To: lgirdwood@gmail.com, linux-arm-kernel@lists.infradead.org Date: Wed, 23 Sep 2015 20:04:52 +0200 Message-Id: <1443031494-32469-2-git-send-email-codekipper@gmail.com> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1443031494-32469-1-git-send-email-codekipper@gmail.com> References: <1443031494-32469-1-git-send-email-codekipper@gmail.com> Cc: alsa-devel@alsa-project.org, Marcus Cooper , linux-kernel@vger.kernel.org, be17068@iperbole.bo.it, linux-sunxi@googlegroups.com, broonie@kernel.org, maxime.ripard@free-electrons.com Subject: [alsa-devel] [linux-sunxi][PATCH 1/3] dt-bindings: add sunxi SPDIF transceiver 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, A20 and A31 SoCs. Signed-off-by: Marcus Cooper --- .../devicetree/bindings/sound/sunxi,spdif.txt | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/sunxi,spdif.txt diff --git a/Documentation/devicetree/bindings/sound/sunxi,spdif.txt b/Documentation/devicetree/bindings/sound/sunxi,spdif.txt new file mode 100644 index 0000000..1868722 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/sunxi,spdif.txt @@ -0,0 +1,49 @@ +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. + +Required properties: + + - compatible : should be one of the following: + - "allwinner,sun4i-a10-spdif": for the Allwinner A10 SoC + - "allwinner,sun7i-a20-spdif": for the Allwinner A20 SoC + - "allwinner,sun6i-a31-spdif": for the Allwinner A31 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. + "audio" clock from the audio pll. + "spdif" clock for spdif controller. + +Optional: + + - spdif-in : Enable block for capturing an SPDIF signal. + + - spdif-out : Enable block for transmitting an SPDIF signal. + +Example: + +spdif: spdif@01c21000 { + compatible = "allwinner,sun4i-a10-spdif"; + reg = <0x01c21000 0x40>; + interrupts = <13>; + clocks = <&apb0_gates 1>, <&pll2 0>, <&spdif_clk>; + clock-names = "apb", "audio", "spdif"; + dmas = <&dma 0 2>, <&dma 0 2>; + dma-names = "rx", "tx"; + spdif-in = "disabled"; + spdif-out = "okay"; + status = "okay"; +};