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: 8219651 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AFB5A9F1C0 for ; Thu, 4 Feb 2016 11:22:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D9BAC20279 for ; Thu, 4 Feb 2016 11:22:43 +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 1318F20266 for ; Thu, 4 Feb 2016 11:22:43 +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 1aRHyD-0008Oq-FJ; Thu, 04 Feb 2016 11:21:05 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aRHnI-00026o-Aj for linux-arm-kernel@lists.infradead.org; Thu, 04 Feb 2016 11:09:56 +0000 Received: by mail-wm0-x243.google.com with SMTP id r129so11654567wmr.0 for ; Thu, 04 Feb 2016 03:09:28 -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=VzbhXhN7DvEp75fFcSF5zeL19PjHXOkbL2wOq/NVCHLtBSJz56c3AvYy5F7EM/LTlB sbQU0g7wCIJAWasZm1E2Y77SLBUtHrTxXM/rvKxsOnxlY+LMaLWVgWPa3FjBLIXm2moQ Jc4+GzDpiE/KB6wEsL7JtFDEVwB5WObS/PtIz9S19vUQdTrQLCrsaL0aqd9/qhoUMl6/ EWNfOfMiLEmb/RqXDRn6gQ/nt99td0q7OvAUPisT4/yX5IW11JQKfhFPpBl0qJWKaQUV aQ6agsBYKmDuuVGf+QKKtzYSO0rg2g94nAU3yUS2AvQ73GgRqzVb8I7A2Zz6XJ3LIsHF q+Qg== X-Gm-Message-State: AG10YOTwyCXkhzIUnBDZRhJNdEI1rLaNKv9hfb97xcgo8hNKMDji1clbJfJunmokLlO/Bg== 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 Subject: [PATCH v4 1/2] dt-bindings: sunxi :add sun4i SPDIF transceiver 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160204_030949_442764_8B91A6A9 X-CRM114-Status: GOOD ( 13.80 ) 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.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 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"; +};