From patchwork Tue Feb 2 14:49:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 8191291 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 EC5F5BEEE5 for ; Tue, 2 Feb 2016 14:50:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2244320306 for ; Tue, 2 Feb 2016 14:50:37 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id EFF99202F2 for ; Tue, 2 Feb 2016 14:50:35 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 333B42654ED; Tue, 2 Feb 2016 15:50:34 +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 E3CA12652F1; Tue, 2 Feb 2016 15:50:06 +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 C695B26530D; Tue, 2 Feb 2016 15:50:05 +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 AD695265196 for ; Tue, 2 Feb 2016 15:49:58 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id p63so2768006wmp.1 for ; Tue, 02 Feb 2016 06:49:58 -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=upSH+I8SCMpYJGX4TsibQw77wvK3TTD/N4Exua/Ei+o=; b=Rt6SbtjVZYsp320EOhOVoMR1WETCZUzaEQGhR+vmL1/d8KKL00IV2jL6NqPelS/X2S cKqI3nBf+DrkIdVI0f0SoumHEQZ7nWn+0rM8NKmGfYAk3wdq/X4bmCwetBicBa4Zun1L UyVpDBw3td5sKqlB+3gdJvSwqsgdRL/zjt0DFCZfw2Kx7esZBHLBI2ohHLG7DDuxOGlj PLnH5nzd2VkcqqthB0wfc0On5cGhn6/QS0tsiGBQIdQ8w9jOxXBCByt9KtzvMsowayY6 1TY4q7n0qmF7GP+kwCzTIVuMadzyGjls3+biPZdLmEQ/6nbAkSA0hVJdWSijFRA3Y/YA bgSw== 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=upSH+I8SCMpYJGX4TsibQw77wvK3TTD/N4Exua/Ei+o=; b=FIsSy93yNdW95xFfU2JV5BjRo2mE4rJ68v1D9sGjxdwl9O2jRR2TX8YFMEseYV32lX n4btewIgk8hL0rAttCW9jpyIFwgb8nxxqmrKnC/HVRJ0KjUczWtifTrX0Gyj6v0qg3Ar tK+9VeiBV2lStjxR/fOR5WZg6FmFL554J9HtpofKstD9ZtRKe5H0q5EOCP440KUr9xCj F8PIJIKyW4i0On4j52EWX9Df0+vNSw7MDfChZXy3kESyr9IjX6rDrBFDw/+GEPbmCUbQ ENk+EFeTchsbYHN5WspoEEqLBB/2Eh6fCoZ9maTF2zBuZdz2P+eS0B347mElPErAqTGW 5kWw== X-Gm-Message-State: AG10YOSHU8uz88jNI7kSRiDUH2swLalrRRjot+1MTe03EOxksgHUOVVg8XURjBe+9WEJiA== X-Received: by 10.28.227.67 with SMTP id a64mr18055006wmh.74.1454424598533; Tue, 02 Feb 2016 06:49:58 -0800 (PST) Received: from coopshtpc.localdomain ([212.85.89.14]) by smtp.gmail.com with ESMTPSA id jo6sm1820145wjb.48.2016.02.02.06.49.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Feb 2016 06:49:56 -0800 (PST) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com Date: Tue, 2 Feb 2016 15:49:53 +0100 Message-Id: <1454424594-25208-2-git-send-email-codekipper@gmail.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454424594-25208-1-git-send-email-codekipper@gmail.com> References: <1454424594-25208-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 v3 1/2] dt-bindings: add sun4i 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 and A20 SoCs. Signed-off-by: Marcus Cooper --- .../devicetree/bindings/sound/sun4i,spdif.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/sun4i,spdif.txt diff --git a/Documentation/devicetree/bindings/sound/sun4i,spdif.txt b/Documentation/devicetree/bindings/sound/sun4i,spdif.txt new file mode 100644 index 0000000..55ed2f6 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/sun4i,spdif.txt @@ -0,0 +1,46 @@ +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 + + - 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. + +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>, <&spdif_clk>; + clock-names = "apb", "spdif"; + dmas = <&dma 0 2>, <&dma 0 2>; + dma-names = "rx", "tx"; + spdif-in = "disabled"; + spdif-out = "okay"; + status = "okay"; +};