From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932737AbbI3RvM (ORCPT ); Wed, 30 Sep 2015 13:51:12 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:35028 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932569AbbI3RvG (ORCPT ); Wed, 30 Sep 2015 13:51:06 -0400 From: codekipper@gmail.com To: maxime.ripard@free-electrons.com Cc: lgirdwood@gmail.com, linux-arm-kernel@lists.infradead.org, broonie@kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, be17068@iperbole.bo.it, Marcus Cooper Subject: [PATCH v2 2/4] dt-binding: Add sunxi S/PDIF machine driver 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; +}; -- 1.9.1