From patchwork Thu Feb 4 11:09:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 8219381 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 4CBD4BEEE5 for ; Thu, 4 Feb 2016 11:10:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CA1C020389 for ; Thu, 4 Feb 2016 11:10:07 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 8164B2013A for ; Thu, 4 Feb 2016 11:10:04 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A33A7265DDC; Thu, 4 Feb 2016 12:10:03 +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 9B9AA261B03; Thu, 4 Feb 2016 12:09:34 +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 0CC59261B21; Thu, 4 Feb 2016 12:09:34 +0100 (CET) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by alsa0.perex.cz (Postfix) with ESMTP id F13542615C0 for ; Thu, 4 Feb 2016 12:09:26 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id l66so11646380wml.2 for ; Thu, 04 Feb 2016 03: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=PVdn+aiR2Exu7K4DFLsONqMUHzn0Njp7BsS1Lj77exk=; b=G9KbOveOjPXPAvsLFri7dQopZI7UZq5tuPtJ9KI3FJcqEZme/u+NjAr/NxPC796aOA oZFzTFStB6qCnbXgJORFTcG9cfF85Vj00evv+roIAyK9z8XJ9IOrvUE+qKtq6ueEUh9K kAn/dzZknPz++F7ows3lBIJFlOxndknF4GzGeL/Oa0Ot7FfpkNckxyBICRhIVHpeRiKX xlceRyXDhU7RVcom7H7b5BYk9R0niWgIzX7V5ETJjLLpvf6rKsXuu50PLdp3GaGu+1Xi YJgbCdFZ+dmxQqsZJTze9Kuc+nHrebO2SdDI7jTtfFr79Phbb5MYkKGzBtpWAgcOn6tb FZ8g== 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=PVdn+aiR2Exu7K4DFLsONqMUHzn0Njp7BsS1Lj77exk=; b=VSQ17iPJkidibjoBYe0CmyXaWJt5J/H/gb8xAStt7z7FqkpGsPVGcbh0UkCWURMD7y RDI52myaObWz8EFvh0F5sxoSdRSZahAqYgmUJcs9VeiXFhGjOJFB0rxqJb58kh4CKCqI vTaEv1tKgn8zaWMncjxD5rGfs8wCJYLZY+A09JPY3641Wy6/teW/0h90ms2xtAO0bp7j ss005PDG6MXzfm8OvNHbMdtGSuA6COm/R79uw7lOo1H4oyndtWkWOZkVgj5fJc0tDM6Q BPb93S1Mnd11JQKeYSvEbEAOwJmtIwixaKYpeQcfgfKG7mmbpvzzdN6cDV43zuzu8ypo z8tA== X-Gm-Message-State: AG10YOSvw36QOY+y8AwATkl9jbDkDAzULFu8ibos5aYutULmqI8yzvdsn+3IuB+sbPQ22Q== X-Received: by 10.28.93.140 with SMTP id r134mr10119384wmb.80.1454584166816; Thu, 04 Feb 2016 03:09:26 -0800 (PST) Received: from coopshtpc.localdomain ([212.85.89.14]) by smtp.gmail.com with ESMTPSA id l7sm10840453wjx.14.2016.02.04.03.09.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Feb 2016 03:09:25 -0800 (PST) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com Date: Thu, 4 Feb 2016 12:09:21 +0100 Message-Id: <1454584162-32449-2-git-send-email-codekipper@gmail.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454584162-32449-1-git-send-email-codekipper@gmail.com> References: <1454584162-32449-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 v4 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 --- .../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"; +};