Skip to content

Commit

Permalink
ARM: Dove: Add the audio device to the Cubox DT
Browse files Browse the repository at this point in the history
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 (beagleboard#2, pin mpp13) is used as the external clock.

Signed-off-by: Jean-Francois Moine <[email protected]>
Acked-by: Sebastian Hesselbarth <[email protected]>
Signed-off-by: Jason Cooper <[email protected]>
  • Loading branch information
moinejf authored and Jason Cooper committed Oct 9, 2013
1 parent 080972a commit 34ea534
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/dove-cubox.dts
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,11 @@
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";
};
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/dove.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@
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";
Expand Down Expand Up @@ -372,6 +377,11 @@
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";
Expand Down

0 comments on commit 34ea534

Please sign in to comment.