devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: omap3-gta04: Add GSM audio support
@ 2015-05-07 19:35 Marek Belisko
       [not found] ` <1431027305-17627-1-git-send-email-marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Belisko @ 2015-05-07 19:35 UTC (permalink / raw)
  To: bcousson, tony
  Cc: linux-omap, devicetree, linux-arm-kernel, linux-kernel, hns,
	Marek Belisko

Add voice audio card which is used for telephony on gta04 board.
gtm601 codec is UMTS modem with pcm interface which get samples from
microphone and provide data from other party side. Use simple audio card
to describe audio card.

Signed-off-by: Marek Belisko <marek@goldelico.com>
---
 arch/arm/boot/dts/omap3-gta04.dtsi | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
index b9f6881..a3a4156 100644
--- a/arch/arm/boot/dts/omap3-gta04.dtsi
+++ b/arch/arm/boot/dts/omap3-gta04.dtsi
@@ -48,6 +48,28 @@
 		ti,mcbsp = <&mcbsp2>;
 	};
 
+	 /* GSM audio */
+	sound_telephony {
+		compatible = "simple-audio-card";
+		simple-audio-card,name = "GTA04 voice";
+		simple-audio-card,bitclock-master = <&telephony_link_master>;
+		simple-audio-card,frame-master = <&telephony_link_master>;
+		simple-audio-card,format = "i2s";
+
+		simple-audio-card,cpu {
+			sound-dai = <&mcbsp4>;
+		};
+
+		telephony_link_master: simple-audio-card,codec {
+			sound-dai = <&gtm601_codec>;
+		};
+	};
+
+	gtm601_codec: gsm_codec {
+		compatible = "option,gtm601";
+		#sound-dai-cells = <0>;
+	};
+
 	spi_lcd {
 		compatible = "spi-gpio";
 		#address-cells = <0x1>;
@@ -517,3 +539,7 @@
 &mcbsp2 {
 	status = "okay";
 };
+
+&mcbsp4 {
+	status = "okay";
+};
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: dts: omap3-gta04: Add GSM audio support
       [not found] ` <1431027305-17627-1-git-send-email-marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
@ 2015-05-20 17:58   ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2015-05-20 17:58 UTC (permalink / raw)
  To: Marek Belisko
  Cc: bcousson-rdvid1DuHRBWk0Htik3J/w,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, hns-xXXSsgcRVICgSpxsJD1C4w

* Marek Belisko <marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org> [150507 12:36]:
> Add voice audio card which is used for telephony on gta04 board.
> gtm601 codec is UMTS modem with pcm interface which get samples from
> microphone and provide data from other party side. Use simple audio card
> to describe audio card.
> 
> Signed-off-by: Marek Belisko <marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>

Applying into omap-for-v4.2/dt thanks.

Tony

> ---
>  arch/arm/boot/dts/omap3-gta04.dtsi | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi
> index b9f6881..a3a4156 100644
> --- a/arch/arm/boot/dts/omap3-gta04.dtsi
> +++ b/arch/arm/boot/dts/omap3-gta04.dtsi
> @@ -48,6 +48,28 @@
>  		ti,mcbsp = <&mcbsp2>;
>  	};
>  
> +	 /* GSM audio */
> +	sound_telephony {
> +		compatible = "simple-audio-card";
> +		simple-audio-card,name = "GTA04 voice";
> +		simple-audio-card,bitclock-master = <&telephony_link_master>;
> +		simple-audio-card,frame-master = <&telephony_link_master>;
> +		simple-audio-card,format = "i2s";
> +
> +		simple-audio-card,cpu {
> +			sound-dai = <&mcbsp4>;
> +		};
> +
> +		telephony_link_master: simple-audio-card,codec {
> +			sound-dai = <&gtm601_codec>;
> +		};
> +	};
> +
> +	gtm601_codec: gsm_codec {
> +		compatible = "option,gtm601";
> +		#sound-dai-cells = <0>;
> +	};
> +
>  	spi_lcd {
>  		compatible = "spi-gpio";
>  		#address-cells = <0x1>;
> @@ -517,3 +539,7 @@
>  &mcbsp2 {
>  	status = "okay";
>  };
> +
> +&mcbsp4 {
> +	status = "okay";
> +};
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-20 17:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-07 19:35 [PATCH] ARM: dts: omap3-gta04: Add GSM audio support Marek Belisko
     [not found] ` <1431027305-17627-1-git-send-email-marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
2015-05-20 17:58   ` Tony Lindgren

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).