ARM: Dove: Add the audio device to the Cubox DT
authorJean-Francois Moine <moinejf@free.fr>
Tue, 8 Oct 2013 18:56:17 +0000 (20:56 +0200)
committerJason Cooper <jason@lakedaemon.net>
Wed, 9 Oct 2013 13:20:23 +0000 (13:20 +0000)
This patch activates the audio device of the Cubox.

The audio flow (pin mpp_audio1) is output on both I2S and S/PDIF.

The third si5351 clock (#2, pin mpp13) is used as the external clock.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/dove-cubox.dts
arch/arm/boot/dts/dove.dtsi

index 4af59b6dce0f44038e2fc79789078248b0e5e1d1..173d46304cd2b04bae549c8ca7c5f0c74c7f8189 100644 (file)
                reg = <0>;
        };
 };
+
+&audio1 {
+       status = "okay";
+       clocks = <&gate_clk 13>, <&si5351 2>;
+       clock-names = "internal", "extclk";
+       pinctrl-0 = <&pmx_audio1_i2s1_spdifo &pmx_audio1_extclk>;
+       pinctrl-names = "default";
+};
index 1e60db1ae3535018658ff265d41ce269d76f8b35..113a8bc7bee73649a33cc3e212336536f47399b3 100644 (file)
                                        marvell,function = "gpio";
                                };
 
+                               pmx_audio1_extclk: pmx-audio1-extclk {
+                                       marvell,pins = "mpp13";
+                                       marvell,function = "audio1";
+                               };
+
                                pmx_gpio_14: pmx-gpio-14 {
                                        marvell,pins = "mpp14";
                                        marvell,function = "gpio";
                                        marvell,function = "gpio";
                                };
 
+                               pmx_audio1_i2s1_spdifo: pmx-audio1-i2s1-spdifo {
+                                       marvell,pins = "mpp_audio1";
+                                       marvell,function = "i2s1/spdifo";
+                               };
+
                                pmx_spi0: pmx-spi0 {
                                        marvell,pins = "mpp_spi0";
                                        marvell,function = "spi0";