* [PATCH v3] ARM: imx6qdl-wandboard: Add spdif support
@ 2013-09-03 2:51 Fabio Estevam
2013-09-03 2:53 ` Nicolin Chen
2013-09-04 1:24 ` Shawn Guo
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2013-09-03 2:51 UTC (permalink / raw)
To: linux-arm-kernel
From: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
I can see the spdif card getting probed. When I run 'aplay' the spdif
light turns on, but I cannot test it due to the lack of spdif equipment at the
moment.
Changes since v2:
- Remove unneeded blank line
Changes since v1:
- Fix the identation level os spdif node
- Remove unneeded blank lines
arch/arm/boot/dts/imx6qdl-wandboard.dtsi | 13 +++++++++++++
arch/arm/boot/dts/imx6qdl.dtsi | 21 +++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/arch/arm/boot/dts/imx6qdl-wandboard.dtsi b/arch/arm/boot/dts/imx6qdl-wandboard.dtsi
index b462080..df42d3c 100644
--- a/arch/arm/boot/dts/imx6qdl-wandboard.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-wandboard.dtsi
@@ -43,6 +43,13 @@
mux-int-port = <1>;
mux-ext-port = <3>;
};
+
+ sound-spdif {
+ compatible = "fsl,imx-audio-spdif";
+ model = "imx-spdif";
+ spdif-controller = <&spdif>;
+ spdif-out;
+ };
};
&audmux {
@@ -93,6 +100,12 @@
status = "okay";
};
+&spdif {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_spdif_3>;
+ status = "okay";
+};
+
&ssi1 {
fsl,mode = "i2s-slave";
status = "okay";
diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
index ccd55c2..2a3abf8 100644
--- a/arch/arm/boot/dts/imx6qdl.dtsi
+++ b/arch/arm/boot/dts/imx6qdl.dtsi
@@ -136,8 +136,23 @@
ranges;
spdif: spdif at 02004000 {
+ compatible = "fsl,imx35-spdif";
reg = <0x02004000 0x4000>;
interrupts = <0 52 0x04>;
+ dmas = <&sdma 14 18 0>,
+ <&sdma 15 18 0>;
+ dma-names = "rx", "tx";
+ clocks = <&clks 197>, <&clks 3>,
+ <&clks 197>, <&clks 107>,
+ <&clks 0>, <&clks 118>,
+ <&clks 62>, <&clks 139>,
+ <&clks 0>;
+ clock-names = "core", "rxtx0",
+ "rxtx1", "rxtx2",
+ "rxtx3", "rxtx4",
+ "rxtx5", "rxtx6",
+ "rxtx7";
+ status = "disabled";
};
ecspi1: ecspi at 02008000 {
@@ -1010,6 +1025,12 @@
MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x1b0b0
>;
};
+
+ pinctrl_spdif_3: spdifgrp-3 {
+ fsl,pins = <
+ MX6QDL_PAD_ENET_RXD0__SPDIF_OUT 0x1b0b0
+ >;
+ };
};
uart1 {
--
1.8.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v3] ARM: imx6qdl-wandboard: Add spdif support
2013-09-03 2:51 [PATCH v3] ARM: imx6qdl-wandboard: Add spdif support Fabio Estevam
@ 2013-09-03 2:53 ` Nicolin Chen
2013-09-04 1:24 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Nicolin Chen @ 2013-09-03 2:53 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Sep 02, 2013 at 11:51:41PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> I can see the spdif card getting probed. When I run 'aplay' the spdif
> light turns on, but I cannot test it due to the lack of spdif equipment at the
> moment.
Unfortunately I don't have a wandboard to test this.
But it should be fine since I am using same binding on Sabreauto.
Reviewed-by: Nicolin Chen <b42378@freescale.com>
Thank you so much.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v3] ARM: imx6qdl-wandboard: Add spdif support
2013-09-03 2:51 [PATCH v3] ARM: imx6qdl-wandboard: Add spdif support Fabio Estevam
2013-09-03 2:53 ` Nicolin Chen
@ 2013-09-04 1:24 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2013-09-04 1:24 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Sep 02, 2013 at 11:51:41PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> I can see the spdif card getting probed. When I run 'aplay' the spdif
> light turns on, but I cannot test it due to the lack of spdif equipment at the
> moment.
>
> Changes since v2:
> - Remove unneeded blank line
Applied, thanks.
Shawn
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-04 1:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 2:51 [PATCH v3] ARM: imx6qdl-wandboard: Add spdif support Fabio Estevam
2013-09-03 2:53 ` Nicolin Chen
2013-09-04 1:24 ` Shawn Guo
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).