Skip to contentSkip to conversation

ASoC: eukrea-tlv320: Add DT support.

PATCH In review Denis Carikli 4 participants 4 messages Jan 15, 2014 – Mar 5, 2014 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v9 1/2 ASoC: eukrea-tlv320: Add DT support.

Cc Eric Bénard <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Rob Herring <[email protected]>
Cc alsa-devel-K7yf7f+aM1XWsZ/[email protected]

---
ChangeLog v9->v10:
- Better Cc list
- Some non-arm architecture that have CONFIG_OF could select that driver, but they lacked asm/mach-types.h, so the compilation failed. That has been fixed by permitting, when CONFIG_OF is selected, to select the driver only if CONFIG_ARM is set.

ChangeLog v7->v8:
- fixed the vendor prefixes in the dts bindings.
- updated the code and the documentation accordingly.
- removed the need of an audio-codec property, since it's available in the ssi bindings.
- the dai codec is now retrived trough the dt in order to support machines that have its codec on another i2c bus number.
- driver compatible is now similar to the ones of the other drivers.

ChangeLog v6->v7:
- The cleanups went into another patch.
- The support for fsl_ssi doesn't depend on dt anymore.
- platform_name = "imx-ssi.0" is still set when in non-dt mode.

---
 .../devicetree/bindings/sound/eukrea-tlv320.txt    |   21 ++++
 sound/soc/fsl/Kconfig                              |    5 +-
 sound/soc/fsl/eukrea-tlv320.c                      |  108 +++++++++++++++++---
 3 files changed, 121 insertions(+), 13 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/sound/eukrea-tlv320.txt
Documentation/devicetree/bindings/sound/eukrea-tlv320.txt new file +21 -0
new file mode 100644
index 0000000..0d7985c
@@ -0,0 +1,21 @@
+Audio complex for Eukrea boards with tlv320aic23 codec.
+
+Required properties:
+- compatible : "eukrea,asoc-tlv320"
+- eukrea,model : The user-visible name of this sound complex.
+- ssi-controller : The phandle of the SSI controller.
+- fsl,mux-int-port : The internal port of the i.MX audio muxer (AUDMUX).
+- fsl,mux-ext-port : The external port of the i.MX audio muxer.
+
+Note: The AUDMUX port numbering should start at 1, which is consistent with
+hardware manual.
+
+Example:
+
+	sound {
+		compatible = "eukrea,asoc-tlv320";
+		eukrea,model = "imx51-eukrea-tlv320aic23";
+		ssi-controller = <&ssi2>;
+		fsl,mux-int-port = <2>;
+		fsl,mux-ext-port = <3>;
+	};
sound/soc/fsl/Kconfig +4 -1
index 07f8f14..b8f8703 100644
@@ -168,12 +168,15 @@ config SND_SOC_EUKREA_TLV320
 	depends on MACH_EUKREA_MBIMX27_BASEBOARD \
 		|| MACH_EUKREA_MBIMXSD25_BASEBOARD \
 		|| MACH_EUKREA_MBIMXSD35_BASEBOARD \
-		|| MACH_EUKREA_MBIMXSD51_BASEBOARD
+		|| MACH_EUKREA_MBIMXSD51_BASEBOARD \
+		|| (OF && ARM)
 	depends on I2C
 	select SND_SOC_TLV320AIC23
 	select SND_SOC_IMX_PCM_FIQ
 	select SND_SOC_IMX_AUDMUX
 	select SND_SOC_IMX_SSI
+	select SND_SOC_FSL_SSI
+	select SND_SOC_IMX_PCM_DMA
 	help
 	  Enable I2S based access to the TLV320AIC23B codec attached
 	  to the SSI interface
sound/soc/fsl/eukrea-tlv320.c +96 -12

182 lines not on this page · raw message

Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

PATCH v9 2/2 ARM: dts: mbimxsd35: Add sound support.

Cc Eric B?nard <[email protected]>
Cc Grant Likely <[email protected]>
Cc Rob Herring <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Sascha Hauer <[email protected]>
Cc devicetree at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org

---
ChangeLog v8->v9:
- Better Cc list.

ChangeLog v7->v8:
- Ajusted to match the driver changes.

---
 .../boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts  |    9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts +9 -0
index 23f6fe1..3e207df 100644
@@ -46,6 +46,14 @@
 			linux,default-trigger = "heartbeat";
 		};
 	};
+
+	sound {
+		compatible = "eukrea,asoc-tlv320";
+		eukrea,model = "imx35-eukrea-tlv320aic23";
+		ssi-controller = <&ssi1>;
+		fsl,mux-int-port = <1>;
+		fsl,mux-ext-port = <4>;
+	};
 };
 
 &audmux {
@@ -118,6 +126,7 @@
 };
 
 &ssi1 {
+	codec-handle = <&tlv320aic23>;
 	fsl,mode = "i2s-slave";
 	status = "okay";
 };
Signature · 1 line
1.7.9.5
Applied
#2 lore raw

PATCH v9 2/2 ARM: dts: mbimxsd35: Add sound support.

Quoted 8 lines · Denis Carikli
Cc Eric B?nard <[email protected]>
Cc Grant Likely <[email protected]>
Cc Rob Herring <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Sascha Hauer <[email protected]>
Cc devicetree at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org

Applied, thanks.

Shawn

Quoted 40 lines

---
ChangeLog v8->v9:
- Better Cc list.

ChangeLog v7->v8:
- Ajusted to match the driver changes.

---
 .../boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts  |    9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts +9 -0
index 23f6fe1..3e207df 100644
@@ -46,6 +46,14 @@
 			linux,default-trigger = "heartbeat";
 		};
 	};
+
+	sound {
+		compatible = "eukrea,asoc-tlv320";
+		eukrea,model = "imx35-eukrea-tlv320aic23";
+		ssi-controller = <&ssi1>;
+		fsl,mux-int-port = <1>;
+		fsl,mux-ext-port = <4>;
+	};
 };
 
 &audmux {
@@ -118,6 +126,7 @@
 };
 
 &ssi1 {
+	codec-handle = <&tlv320aic23>;
 	fsl,mode = "i2s-slave";
 	status = "okay";
 };
Signature · 1 line
1.7.9.5

A message that is not in the archive (sent off-list or not yet received): 1389806606-21521-1-git-send-email-denis-fO0SIAKYzcbQT0dZR+AlfA@public.gmane.org

#4 lore raw
Quoted 2 lines · Denis Carikli
Cc Eric Bénard <[email protected]>
Cc Ian Campbell <[email protected]>

Applied, thanks. Please do try to use a more standard format for patch submissions especially the subject lines - the way you write your subject lines isn't the normal one, something more like [PATCH v9 1/2] would be more standard for example.

If there's a patch 2 I don't have it.