From patchwork Wed Sep 30 17:50:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Code Kipper X-Patchwork-Id: 7301331 Return-Path: X-Original-To: patchwork-alsa-devel@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 CF2969F536 for ; Wed, 30 Sep 2015 17:52:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06FFD20676 for ; Wed, 30 Sep 2015 17:52:56 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id C56E020661 for ; Wed, 30 Sep 2015 17:52:54 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 880D1266655; Wed, 30 Sep 2015 19:52:53 +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, NO_DNS_FOR_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 1E39626644B; Wed, 30 Sep 2015 19:51:15 +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 AEEFC26640F; Wed, 30 Sep 2015 19:51:13 +0200 (CEST) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by alsa0.perex.cz (Postfix) with ESMTP id ACE8D26617B for ; Wed, 30 Sep 2015 19:51:05 +0200 (CEST) Received: by wiclk2 with SMTP id lk2so210171127wic.0 for ; Wed, 30 Sep 2015 10:51:05 -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=F5DBpvperhBWfXW6npVNtGLo/Um1fRLf3AtfrUVdIlA=; b=uVmUkHTgJLmH63eCiEU4DRVgH5r0Nx3BGpEsYPjVtHecPRRm4/BIFzMk6OGcibt9gX a9El3jIHr1z5hORQRwuPOW4ysJHhjdYgxSbUCamak85do9D8wAkbqvRCXUnILxxdQy98 Oyju2ZGOpcKr439SwcBrzdUgDpJAGtAYSjIsMIKjxsAGVoHZckJl3cPcKDQXS061alow em0sfelkLnezK+/k0nDbw8znZlUZqPxARwfomCtym6pU0AHT22fhTnCD0AUGMcIOOSLY 90yxeTL6dbe8Up6ZdlFa2L+EtWZq8a6Wmsci7UALC7vJuweiOwUEYX2w2JNM2ySYQoll 1gqA== X-Received: by 10.194.79.196 with SMTP id l4mr6333827wjx.93.1443635465424; Wed, 30 Sep 2015 10:51:05 -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.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Sep 2015 10:51:04 -0700 (PDT) From: codekipper@gmail.com To: maxime.ripard@free-electrons.com Date: Wed, 30 Sep 2015 19:50:56 +0200 Message-Id: <1443635458-8873-3-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> 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 v2 2/4] dt-binding: Add sunxi S/PDIF 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; +};