From patchwork Wed Sep 23 18:04:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 7251781 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 83E0BBEEC1 for ; Wed, 23 Sep 2015 18:06:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BDC8D206F3 for ; Wed, 23 Sep 2015 18:06:06 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 786C520672 for ; Wed, 23 Sep 2015 18:06:05 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A45782657E5; Wed, 23 Sep 2015 20:06:04 +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 E99DB26072A; Wed, 23 Sep 2015 20:05:25 +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 140502616F3; Wed, 23 Sep 2015 20:05:24 +0200 (CEST) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by alsa0.perex.cz (Postfix) with ESMTP id C626226072A for ; Wed, 23 Sep 2015 20:05:01 +0200 (CEST) Received: by wicfx3 with SMTP id fx3so250601393wic.1 for ; Wed, 23 Sep 2015 11:05:00 -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=q3y0F2wpjioHFrwr8BlG1r3ujAxUM3Dm1/DyaTtf8kE=; b=hBoCyPAFcTtx9TMysvyRLY/R1Ea9EpogdWs3WZq9D0T4jigoAytKrE6Ki7LNIIfaUi P+Wi9UxkFhhuRbgGNqDObc7sp1oTtaCnIKZvc1iVbsQ6Bja63R0R0ETqXvzLSD20UoNF FClla25XeGRP5RZ3/lPq1ki4cAtDz+X3EI6X9WWxqTgzFWuVfCJfYURZy3YgZiL0ia9R ktjA6DMrMaDo0vuahS4P/PHUZ7Tw+NZWRzFslFd4MQWO+PtftUNVFIajXmVVGALkHeoW zXg9UnRddTH5N4od+LjL5aDk+wKhX8Teg64J5HWHdl0w5JLatpY97EwJRRvTEJrK/EGT yiEg== X-Received: by 10.194.52.6 with SMTP id p6mr42449365wjo.119.1443031499491; Wed, 23 Sep 2015 11:04:59 -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.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Sep 2015 11:04:58 -0700 (PDT) From: codekipper@gmail.com To: lgirdwood@gmail.com, linux-arm-kernel@lists.infradead.org Date: Wed, 23 Sep 2015 20:04:53 +0200 Message-Id: <1443031494-32469-3-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 2/3] dt-binding: Add sunxi SPDIF machine driver 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 device tree bindings for the SPDIF machine driver for Allwinner SoC devices. Signed-off-by: Marcus Cooper --- .../bindings/sound/sunxi-audio-spdif.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/sunxi-audio-spdif.txt diff --git a/Documentation/devicetree/bindings/sound/sunxi-audio-spdif.txt b/Documentation/devicetree/bindings/sound/sunxi-audio-spdif.txt new file mode 100644 index 0000000..b9e8152 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/sunxi-audio-spdif.txt @@ -0,0 +1,36 @@ +Allwinner audio complex with S/PDIF transceiver + +Required properties: + + - compatible : "Allwinner,sunxi-audio-spdif" + + - model : The user-visible name of this sound complex + + - spdif-controller : The phandle of the Allwinner S/PDIF controller + + +Optional properties: + + - spdif-out : This is a boolean property. If present, the + transmitting function of S/PDIF will be enabled, + indicating there's a physical S/PDIF out connector + or jack on the board or it's connecting to some + other IP block, such as an HDMI encoder or + display-controller. + + - spdif-in : This is a boolean property. If present, the receiving + function of S/PDIF will be enabled, indicating there + is a physical S/PDIF in connector/jack on the board. + +* Note: At least one of these two properties should be set in the DT binding. + + +Example: + +sound-spdif { + compatible = "allwinner,sunxi-audio-spdif"; + model = "sunxi-spdif"; + spdif-controller = <&spdif>; + spdif-out; + spdif-in; +};