]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: sun4i: Add SPDIF to the Mele A1000
authorMarcus Cooper <codekipper@gmail.com>
Mon, 21 Mar 2016 20:01:05 +0000 (21:01 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 27 Mar 2016 14:15:04 +0000 (16:15 +0200)
Enable the S/PDIF transmitter that is present on the A1000.

Signed-off-by: Marcus Cooper <codekipper@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun4i-a10-a1000.dts

index 97570cb7f2fcdb37cac323d3da1529a246314d2c..c92a1ae33a1e0f96c72e50119296f7f0943e2801 100644 (file)
                enable-active-high;
                gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>;
        };
+
+       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 {
        status = "okay";
 };
 
+&spdif {
+       pinctrl-names = "default";
+       pinctrl-0 = <&spdif_tx_pins_a>;
+       status = "okay";
+};
+
 &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_pins_a>;