* [PATCH] ARM: dts: sun7i: Enable S/PDIF on the Cubietruck
@ 2016-04-24 23:02 christopher.spinrath
[not found] ` <1461538978-3137-1-git-send-email-christopher.spinrath-vA1bhqPz9FBZXbeN9DUtxg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: christopher.spinrath @ 2016-04-24 23:02 UTC (permalink / raw)
To: maxime.ripard, wens
Cc: mark.rutland, devicetree, linux, pawel.moll, ijc+devicetree,
robh+dt, galak, Christopher Spinrath, linux-arm-kernel
From: Christopher Spinrath <christopher.spinrath@rwth-aachen.de>
Enable the S/PDIF transmitter present on the Cubietruck.
Signed-off-by: Christopher Spinrath <christopher.spinrath@rwth-aachen.de>
---
arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
index 8da939a..83f39b0 100644
--- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
+++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
@@ -94,6 +94,24 @@
pinctrl-0 = <&mmc3_pwrseq_pin_cubietruck>;
reset-gpios = <&pio 7 9 GPIO_ACTIVE_LOW>; /* PH9 WIFI_EN */
};
+
+ sound {
+ compatible = "simple-audio-card";
+ simple-audio-card,name = "On-board SPDIF";
+
+ simple-audio-card,cpu {
+ sound-dai = <&spdif>;
+ };
+
+ simple-audio-card,codec {
+ sound-dai = <&spdif_out>;
+ };
+ };
+
+ spdif_out: spdif-out {
+ #sound-dai-cells = <0>;
+ compatible = "linux,spdif-dit";
+ };
};
&ahci {
@@ -301,6 +319,12 @@
status = "okay";
};
+&spdif {
+ pinctrl-names = "default";
+ pinctrl-0 = <&spdif_tx_pins_a>;
+ status = "okay";
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins_a>;
--
2.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-25 7:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-24 23:02 [PATCH] ARM: dts: sun7i: Enable S/PDIF on the Cubietruck christopher.spinrath
[not found] ` <1461538978-3137-1-git-send-email-christopher.spinrath-vA1bhqPz9FBZXbeN9DUtxg@public.gmane.org>
2016-04-25 7:56 ` Maxime Ripard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).