From patchwork Wed Sep 30 17:50:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 7301341 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 B0446BEEA4 for ; Wed, 30 Sep 2015 17:53:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE64C20660 for ; Wed, 30 Sep 2015 17:53:19 +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 B6A9E20676 for ; Wed, 30 Sep 2015 17:53:15 +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 1ZhLXa-00013m-6s; Wed, 30 Sep 2015 17:51:42 +0000 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZhLXJ-0000fJ-F9 for linux-arm-kernel@lists.infradead.org; Wed, 30 Sep 2015 17:51:26 +0000 Received: by wiclk2 with SMTP id lk2so210170136wic.0 for ; Wed, 30 Sep 2015 10:51:03 -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=UncSWgQm/WgqGviBd5tV1Vz49NcxlXWZ1LBAXEuzIPM=; b=cpkk78gTTl5siMfShdUPpFmfDm1tngsFomnrHlklyfqW9y0clJ2fLCpl3rBHlhuK5r B+eUJDTKVHSWXJA4qZXQ1MKIIX3trLrj5sCaVCJkFGaA/PmgQjDCclIRzWLBeB4LPlgS oxUHu+wuasQjPvLIH0M7mE34PFb9Igo3Uok4RZAJRwG5QPvuOzW2pDAWgA/Q4rORbNcm UU7WiuqsO4RCAhkt/S0F3JSo6zdxG+lsim0fKudfbbz9Q8xXN9rRpqD9eCDEo8ktuUFa MKxH7y6/xu8LfgSF8vdsnLEjWSCAbVkkQ9GLbBmbftRQBTdQccH0PbEpPqOYtMCzL5bP bEfA== X-Received: by 10.180.208.49 with SMTP id mb17mr32426236wic.52.1443635463928; Wed, 30 Sep 2015 10:51:03 -0700 (PDT) Received: from localhost.localdomain (h-88-30.a230.priv.bahnhof.se. [212.85.88.30]) by smtp.gmail.com with ESMTPSA id bh5sm1792271wjb.42.2015.09.30.10.51.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Sep 2015 10:51:02 -0700 (PDT) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com Subject: [PATCH v2 1/4] dt-bindings: add sunxi SPDIF transceiver bindings Date: Wed, 30 Sep 2015 19:50:55 +0200 Message-Id: <1443635458-8873-2-git-send-email-codekipper@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443635458-8873-1-git-send-email-codekipper@gmail.com> References: <1443635458-8873-1-git-send-email-codekipper@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150930_105125_682821_D6614B39 X-CRM114-Status: GOOD ( 14.73 ) 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, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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, 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"; +};