ASoC: eukrea-tlv320: Add DT support.
Subsystems (4)
PATCH v8 1/5 ASoC: eukrea-tlv320: Add DT support.
---
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
@@ -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
@@ -161,12 +161,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 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
PATCH v8 2/5 ARM: dts: mbimxsd25: Add sound support.
---
ChangeLog v7->v8:
- Ajusted to match the driver changes.
--- .../boot/dts/imx25-eukrea-mbimxsd25-baseboard.dts | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/boot/dts/imx25-eukrea-mbimxsd25-baseboard.dts +9 -0
@@ -43,6 +43,14 @@ linux,default-trigger = "heartbeat"; }; }; + + sound { + compatible = "eukrea,asoc-tlv320"; + eukrea,model = "imx25-eukrea-tlv320aic23"; + ssi-controller = <&ssi1>; + fsl,mux-int-port = <1>; + fsl,mux-ext-port = <5>; + }; }; &audmux {
@@ -98,6 +106,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): 1385567664-758-2-git-send-email-denis-fO0SIAKYzcbQT0dZR+AlfA@public.gmane.org
Re: [PATCHv8][ 2/5] ARM: dts: mbimxsd25: Add sound support.
Quoted 4 lines · Denis Carikli
Cc Rob Herring <rob.herring-bsGFqQB8/[email protected]>Cc Pawel Moll <[email protected]>Cc Mark Rutland <[email protected]>Cc Stephen Warren <[email protected]>
Quoted 8 lines
Cc Ian Campbell <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc alsa-devel-K7yf7f+aM1XWsZ/[email protected]Cc Sascha Hauer <[email protected]>Cc Eric Bénard <[email protected]>Signed-off-by Denis Carikli <[email protected]>
Applied this one and mbimxsd51 one, but not the other two, as I do not have imx35-eukrea-mbimxsd35-baseboard.dts and imx53-eukrea-mbimxsd53-baseboard.dts in my tree.
Shawn
--
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
A message that is not in the archive (sent off-list or not yet received): 1385567664-758-1-git-send-email-denis-fO0SIAKYzcbQT0dZR+AlfA@public.gmane.org
PATCH v8 3/5 ARM: dts: mbimxsd35: Add sound support.
---
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
@@ -39,6 +39,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 {
@@ -105,6 +113,7 @@ }; &ssi1 { + codec-handle = <&tlv320aic23>; fsl,mode = "i2s-slave"; status = "okay"; };
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
PATCH v8 4/5 ARM: dts: mbimxsd51: Add sound support.
In reply to a message not in the archive---
ChangeLog v7->v8:
- Ajusted to match the driver changes.
--- .../boot/dts/imx51-eukrea-mbimxsd51-baseboard.dts | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/boot/dts/imx51-eukrea-mbimxsd51-baseboard.dts +9 -0
@@ -48,6 +48,14 @@ linux,default-trigger = "heartbeat"; }; }; + + sound { + compatible = "eukrea,asoc-tlv320"; + eukrea,model = "imx51-eukrea-tlv320aic23"; + ssi-controller = <&ssi2>; + fsl,mux-int-port = <2>; + fsl,mux-ext-port = <3>; + }; }; &audmux {
@@ -125,6 +133,7 @@ }; &ssi2 { + codec-handle = <&tlv320aic23>; fsl,mode = "i2s-slave"; status = "okay"; };
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
PATCH v8 5/5 ARM: dts: mbimxsd53: Add sound support.
In reply to a message not in the archive---
ChangeLog v7->v8:
- New patch.
--- .../boot/dts/imx53-eukrea-mbimxsd53-baseboard.dts | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+)
arch/arm/boot/dts/imx53-eukrea-mbimxsd53-baseboard.dts +43 -0
@@ -51,8 +51,21 @@ regulator-max-microvolt = <3300000>; regulator-always-on; }; + + sound { + compatible = "eukrea,asoc-tlv320"; + eukrea,model = "imx53-eukrea-tlv320aic23"; + ssi-controller = <&ssi2>; + fsl,mux-int-port = <2>; + fsl,mux-ext-port = <4>; + }; }; +&audmux { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_audmux>; + status = "okay"; +}; &esdhc1 { pinctrl-names = "default";
@@ -63,8 +76,28 @@ status = "okay"; }; +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; + + tlv320aic23: codec@1a { + compatible = "ti,tlv320aic23"; + clocks = <&clks IMX5_CLK_SSI_EXT1_GATE>; + reg = <0x1a>; + }; +}; + &iomuxc { imx53-eukrea { + pinctrl_hog: hoggrp { + fsl,pins = <MX53_PAD_PATA_DA_0__GPIO7_6 0x80000000>; + }; + + pinctrl_audmux: audmuxgrp { + fsl,pins = <MX53_AUDMUX_PINGRP2>; + }; + pinctrl_esdhc1: esdhc1 { fsl,pins = <MX53_ESDHC1_PINGRP1>; };
@@ -81,6 +114,10 @@ fsl,pins = <MX53_PAD_KEY_ROW4__GPIO4_15 0x80000000>; }; + pinctrl_i2c2: i2c2grp { + fsl,pins = <MX53_I2C2_PINGRP1>; + }; + pinctrl_uart1: uart1grp { fsl,pins = <MX53_UART1_PINGRP2>; };
@@ -91,6 +128,12 @@ }; }; +&ssi2 { + codec-handle = <&tlv320aic23>; + fsl,mode = "i2s-slave"; + status = "okay"; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>;
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
Mark Brown
maintainerQuoted 1 line · Denis Carikli
Signed-off-by Denis Carikli <[email protected]>
Applied, thanks. The way you split [PATCHv8][ 1/5] is a bit odd, as is
the space there.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131209/3269cf78/attachment.sig>