All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-10 20:08 ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-10 20:08 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel
  Cc: linux-kernel, Rob Herring, Mark Rutland, Russell King,
	Sekhar Nori, Kevin Hilman, Karl Beldan, Karl Beldan

The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
audio. This relies on the 'dummy' regulator as the codec is always on.
Quality is good with arecord -pipe- aplay on Line In/Line Out.
The MIC path doesn't seem to work yet.

Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
---
 arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
index dbcca0b..35b31d9 100644
--- a/arch/arm/boot/dts/da850-lcdk.dts
+++ b/arch/arm/boot/dts/da850-lcdk.dts
@@ -6,6 +6,7 @@
 /dts-v1/;
 #include "da850.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/sound/tlv320aic31xx-micbias.h>
 
 / {
 	model = "DA850/AM1808/OMAP-L138 LCDK";
@@ -23,10 +24,50 @@
 		device_type = "memory";
 		reg = <0xc0000000 0x08000000>;
 	};
+
+	sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,name = "DA850/OMAP-L138 LCDK";
+		simple-audio-card,widgets =
+			"Microphone", "Mic Jack",
+			"Line", "Line In",
+			"Line", "Line Out";
+		simple-audio-card,routing =
+			"MIC3L", "Mic Jack",
+			"MIC3R", "Mic Jack",
+			"Mic Jack", "Mic Bias",
+			"LINE1L", "Line In",
+			"LINE1R", "Line In",
+			"Line Out", "LLOUT",
+			"Line Out", "RLOUT";
+		simple-audio-card,format = "dsp_b";
+		simple-audio-card,bitclock-master = <&link0_codec>;
+		simple-audio-card,frame-master = <&link0_codec>;
+		simple-audio-card,bitclock-inversion;
+
+		simple-audio-card,cpu {
+			sound-dai = <&mcasp0>;
+			system-clock-frequency = <24576000>;
+		};
+
+		link0_codec: simple-audio-card,codec {
+			sound-dai = <&tlv320aic3106>;
+			system-clock-frequency = <24576000>;
+		};
+	};
 };
 
 &pmx_core {
 	status = "okay";
+
+	mcasp0_pins: pinmux_mcasp0_pins {
+		pinctrl-single,bits = <
+			/* AHCLKX AFSX ACLKX */
+			0x00 0x00101010 0x00f0f0f0
+			/* ARX13 ARX14 */
+			0x04 0x00000110 0x00000ff0
+		>;
+	};
 };
 
 &serial2 {
@@ -68,3 +109,37 @@
 	cd-gpios = <&gpio 64 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
+
+&i2c0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c0_pins>;
+	clock-frequency = <100000>;
+	status = "okay";
+
+	tlv320aic3106: tlv320aic3106@18 {
+		#sound-dai-cells = <0>;
+		compatible = "ti,tlv320aic3106";
+		reg = <0x18>;
+		status = "okay";
+
+		ai3x-micbias-vg = <MICBIAS_2_5V>;
+	};
+};
+
+&mcasp0 {
+	#sound-dai-cells = <0>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcasp0_pins>;
+	status = "okay";
+
+	op-mode = <0>;   /* DAVINCI_MCASP_IIS_MODE */
+	tdm-slots = <2>;
+	serial-dir = <   /* 0: INACTIVE, 1: TX, 2: RX */
+		0 0 0 0
+		0 0 0 0
+		0 0 0 0
+		0 1 2 0
+	>;
+	tx-num-evt = <32>;
+	rx-num-evt = <32>;
+};
-- 
2.9.2

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

* [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-10 20:08 ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-10 20:08 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Mark Rutland,
	Russell King, Sekhar Nori, Kevin Hilman, Karl Beldan,
	Karl Beldan

The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
audio. This relies on the 'dummy' regulator as the codec is always on.
Quality is good with arecord -pipe- aplay on Line In/Line Out.
The MIC path doesn't seem to work yet.

Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
---
 arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
index dbcca0b..35b31d9 100644
--- a/arch/arm/boot/dts/da850-lcdk.dts
+++ b/arch/arm/boot/dts/da850-lcdk.dts
@@ -6,6 +6,7 @@
 /dts-v1/;
 #include "da850.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/sound/tlv320aic31xx-micbias.h>
 
 / {
 	model = "DA850/AM1808/OMAP-L138 LCDK";
@@ -23,10 +24,50 @@
 		device_type = "memory";
 		reg = <0xc0000000 0x08000000>;
 	};
+
+	sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,name = "DA850/OMAP-L138 LCDK";
+		simple-audio-card,widgets =
+			"Microphone", "Mic Jack",
+			"Line", "Line In",
+			"Line", "Line Out";
+		simple-audio-card,routing =
+			"MIC3L", "Mic Jack",
+			"MIC3R", "Mic Jack",
+			"Mic Jack", "Mic Bias",
+			"LINE1L", "Line In",
+			"LINE1R", "Line In",
+			"Line Out", "LLOUT",
+			"Line Out", "RLOUT";
+		simple-audio-card,format = "dsp_b";
+		simple-audio-card,bitclock-master = <&link0_codec>;
+		simple-audio-card,frame-master = <&link0_codec>;
+		simple-audio-card,bitclock-inversion;
+
+		simple-audio-card,cpu {
+			sound-dai = <&mcasp0>;
+			system-clock-frequency = <24576000>;
+		};
+
+		link0_codec: simple-audio-card,codec {
+			sound-dai = <&tlv320aic3106>;
+			system-clock-frequency = <24576000>;
+		};
+	};
 };
 
 &pmx_core {
 	status = "okay";
+
+	mcasp0_pins: pinmux_mcasp0_pins {
+		pinctrl-single,bits = <
+			/* AHCLKX AFSX ACLKX */
+			0x00 0x00101010 0x00f0f0f0
+			/* ARX13 ARX14 */
+			0x04 0x00000110 0x00000ff0
+		>;
+	};
 };
 
 &serial2 {
@@ -68,3 +109,37 @@
 	cd-gpios = <&gpio 64 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
+
+&i2c0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c0_pins>;
+	clock-frequency = <100000>;
+	status = "okay";
+
+	tlv320aic3106: tlv320aic3106@18 {
+		#sound-dai-cells = <0>;
+		compatible = "ti,tlv320aic3106";
+		reg = <0x18>;
+		status = "okay";
+
+		ai3x-micbias-vg = <MICBIAS_2_5V>;
+	};
+};
+
+&mcasp0 {
+	#sound-dai-cells = <0>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcasp0_pins>;
+	status = "okay";
+
+	op-mode = <0>;   /* DAVINCI_MCASP_IIS_MODE */
+	tdm-slots = <2>;
+	serial-dir = <   /* 0: INACTIVE, 1: TX, 2: RX */
+		0 0 0 0
+		0 0 0 0
+		0 0 0 0
+		0 1 2 0
+	>;
+	tx-num-evt = <32>;
+	rx-num-evt = <32>;
+};
-- 
2.9.2

--
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 related	[flat|nested] 30+ messages in thread

* [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-10 20:08 ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-10 20:08 UTC (permalink / raw)
  To: linux-arm-kernel

The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
audio. This relies on the 'dummy' regulator as the codec is always on.
Quality is good with arecord -pipe- aplay on Line In/Line Out.
The MIC path doesn't seem to work yet.

Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
---
 arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
index dbcca0b..35b31d9 100644
--- a/arch/arm/boot/dts/da850-lcdk.dts
+++ b/arch/arm/boot/dts/da850-lcdk.dts
@@ -6,6 +6,7 @@
 /dts-v1/;
 #include "da850.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/sound/tlv320aic31xx-micbias.h>
 
 / {
 	model = "DA850/AM1808/OMAP-L138 LCDK";
@@ -23,10 +24,50 @@
 		device_type = "memory";
 		reg = <0xc0000000 0x08000000>;
 	};
+
+	sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,name = "DA850/OMAP-L138 LCDK";
+		simple-audio-card,widgets =
+			"Microphone", "Mic Jack",
+			"Line", "Line In",
+			"Line", "Line Out";
+		simple-audio-card,routing =
+			"MIC3L", "Mic Jack",
+			"MIC3R", "Mic Jack",
+			"Mic Jack", "Mic Bias",
+			"LINE1L", "Line In",
+			"LINE1R", "Line In",
+			"Line Out", "LLOUT",
+			"Line Out", "RLOUT";
+		simple-audio-card,format = "dsp_b";
+		simple-audio-card,bitclock-master = <&link0_codec>;
+		simple-audio-card,frame-master = <&link0_codec>;
+		simple-audio-card,bitclock-inversion;
+
+		simple-audio-card,cpu {
+			sound-dai = <&mcasp0>;
+			system-clock-frequency = <24576000>;
+		};
+
+		link0_codec: simple-audio-card,codec {
+			sound-dai = <&tlv320aic3106>;
+			system-clock-frequency = <24576000>;
+		};
+	};
 };
 
 &pmx_core {
 	status = "okay";
+
+	mcasp0_pins: pinmux_mcasp0_pins {
+		pinctrl-single,bits = <
+			/* AHCLKX AFSX ACLKX */
+			0x00 0x00101010 0x00f0f0f0
+			/* ARX13 ARX14 */
+			0x04 0x00000110 0x00000ff0
+		>;
+	};
 };
 
 &serial2 {
@@ -68,3 +109,37 @@
 	cd-gpios = <&gpio 64 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 };
+
+&i2c0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c0_pins>;
+	clock-frequency = <100000>;
+	status = "okay";
+
+	tlv320aic3106: tlv320aic3106 at 18 {
+		#sound-dai-cells = <0>;
+		compatible = "ti,tlv320aic3106";
+		reg = <0x18>;
+		status = "okay";
+
+		ai3x-micbias-vg = <MICBIAS_2_5V>;
+	};
+};
+
+&mcasp0 {
+	#sound-dai-cells = <0>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcasp0_pins>;
+	status = "okay";
+
+	op-mode = <0>;   /* DAVINCI_MCASP_IIS_MODE */
+	tdm-slots = <2>;
+	serial-dir = <   /* 0: INACTIVE, 1: TX, 2: RX */
+		0 0 0 0
+		0 0 0 0
+		0 0 0 0
+		0 1 2 0
+	>;
+	tx-num-evt = <32>;
+	rx-num-evt = <32>;
+};
-- 
2.9.2

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

* [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-10 20:08   ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-10 20:08 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel
  Cc: linux-kernel, Rob Herring, Mark Rutland, Russell King,
	Sekhar Nori, Kevin Hilman, Karl Beldan, Karl Beldan

This is the minimal set of additional modules required to support audio
on the LCDK.

Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
---
 arch/arm/configs/davinci_all_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig
index 9980d1d..0357e39 100644
--- a/arch/arm/configs/davinci_all_defconfig
+++ b/arch/arm/configs/davinci_all_defconfig
@@ -128,6 +128,10 @@ CONFIG_LOGO=y
 CONFIG_SOUND=m
 CONFIG_SND=m
 CONFIG_SND_SOC=m
+CONFIG_SND_EDMA_SOC=m
+CONFIG_SND_DAVINCI_SOC_MCASP=m
+CONFIG_SND_SOC_TLV320AIC3X=m
+CONFIG_SND_SIMPLE_CARD=m
 CONFIG_HID=m
 CONFIG_HID_A4TECH=m
 CONFIG_HID_APPLE=m
-- 
2.9.2

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

* [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-10 20:08   ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-10 20:08 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Mark Rutland,
	Russell King, Sekhar Nori, Kevin Hilman, Karl Beldan,
	Karl Beldan

This is the minimal set of additional modules required to support audio
on the LCDK.

Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
---
 arch/arm/configs/davinci_all_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig
index 9980d1d..0357e39 100644
--- a/arch/arm/configs/davinci_all_defconfig
+++ b/arch/arm/configs/davinci_all_defconfig
@@ -128,6 +128,10 @@ CONFIG_LOGO=y
 CONFIG_SOUND=m
 CONFIG_SND=m
 CONFIG_SND_SOC=m
+CONFIG_SND_EDMA_SOC=m
+CONFIG_SND_DAVINCI_SOC_MCASP=m
+CONFIG_SND_SOC_TLV320AIC3X=m
+CONFIG_SND_SIMPLE_CARD=m
 CONFIG_HID=m
 CONFIG_HID_A4TECH=m
 CONFIG_HID_APPLE=m
-- 
2.9.2

--
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 related	[flat|nested] 30+ messages in thread

* [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-10 20:08   ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-10 20:08 UTC (permalink / raw)
  To: linux-arm-kernel

This is the minimal set of additional modules required to support audio
on the LCDK.

Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
---
 arch/arm/configs/davinci_all_defconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig
index 9980d1d..0357e39 100644
--- a/arch/arm/configs/davinci_all_defconfig
+++ b/arch/arm/configs/davinci_all_defconfig
@@ -128,6 +128,10 @@ CONFIG_LOGO=y
 CONFIG_SOUND=m
 CONFIG_SND=m
 CONFIG_SND_SOC=m
+CONFIG_SND_EDMA_SOC=m
+CONFIG_SND_DAVINCI_SOC_MCASP=m
+CONFIG_SND_SOC_TLV320AIC3X=m
+CONFIG_SND_SIMPLE_CARD=m
 CONFIG_HID=m
 CONFIG_HID_A4TECH=m
 CONFIG_HID_APPLE=m
-- 
2.9.2

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

* Re: [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-17  6:49   ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17  6:49 UTC (permalink / raw)
  To: Karl Beldan, devicetree, linux-arm-kernel
  Cc: linux-kernel, Rob Herring, Mark Rutland, Russell King,
	Kevin Hilman, Karl Beldan, Peter Ujfalusi

+ Peter

On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
> audio. This relies on the 'dummy' regulator as the codec is always on.
> Quality is good with arecord -pipe- aplay on Line In/Line Out.
> The MIC path doesn't seem to work yet.
> 
> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> ---
>  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 75 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
> index dbcca0b..35b31d9 100644
> --- a/arch/arm/boot/dts/da850-lcdk.dts
> +++ b/arch/arm/boot/dts/da850-lcdk.dts
> @@ -6,6 +6,7 @@
>  /dts-v1/;
>  #include "da850.dtsi"
>  #include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/sound/tlv320aic31xx-micbias.h>
>  
>  / {
>  	model = "DA850/AM1808/OMAP-L138 LCDK";
> @@ -23,10 +24,50 @@
>  		device_type = "memory";
>  		reg = <0xc0000000 0x08000000>;
>  	};
> +
> +	sound {
> +		compatible = "simple-audio-card";
> +		simple-audio-card,name = "DA850/OMAP-L138 LCDK";
> +		simple-audio-card,widgets =
> +			"Microphone", "Mic Jack",
> +			"Line", "Line In",
> +			"Line", "Line Out";
> +		simple-audio-card,routing =
> +			"MIC3L", "Mic Jack",
> +			"MIC3R", "Mic Jack",
> +			"Mic Jack", "Mic Bias",
> +			"LINE1L", "Line In",
> +			"LINE1R", "Line In",
> +			"Line Out", "LLOUT",
> +			"Line Out", "RLOUT";
> +		simple-audio-card,format = "dsp_b";
> +		simple-audio-card,bitclock-master = <&link0_codec>;
> +		simple-audio-card,frame-master = <&link0_codec>;
> +		simple-audio-card,bitclock-inversion;
> +
> +		simple-audio-card,cpu {
> +			sound-dai = <&mcasp0>;
> +			system-clock-frequency = <24576000>;
> +		};
> +
> +		link0_codec: simple-audio-card,codec {
> +			sound-dai = <&tlv320aic3106>;
> +			system-clock-frequency = <24576000>;
> +		};
> +	};
>  };
>  
>  &pmx_core {
>  	status = "okay";
> +
> +	mcasp0_pins: pinmux_mcasp0_pins {
> +		pinctrl-single,bits = <
> +			/* AHCLKX AFSX ACLKX */
> +			0x00 0x00101010 0x00f0f0f0
> +			/* ARX13 ARX14 */
> +			0x04 0x00000110 0x00000ff0
> +		>;
> +	};
>  };
>  
>  &serial2 {
> @@ -68,3 +109,37 @@
>  	cd-gpios = <&gpio 64 GPIO_ACTIVE_HIGH>;
>  	status = "okay";
>  };
> +
> +&i2c0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c0_pins>;
> +	clock-frequency = <100000>;
> +	status = "okay";
> +
> +	tlv320aic3106: tlv320aic3106@18 {
> +		#sound-dai-cells = <0>;
> +		compatible = "ti,tlv320aic3106";
> +		reg = <0x18>;
> +		status = "okay";
> +
> +		ai3x-micbias-vg = <MICBIAS_2_5V>;
> +	};
> +};
> +
> +&mcasp0 {
> +	#sound-dai-cells = <0>;
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&mcasp0_pins>;
> +	status = "okay";
> +
> +	op-mode = <0>;   /* DAVINCI_MCASP_IIS_MODE */
> +	tdm-slots = <2>;
> +	serial-dir = <   /* 0: INACTIVE, 1: TX, 2: RX */
> +		0 0 0 0
> +		0 0 0 0
> +		0 0 0 0
> +		0 1 2 0
> +	>;
> +	tx-num-evt = <32>;
> +	rx-num-evt = <32>;
> +};
> 

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

* Re: [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-17  6:49   ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17  6:49 UTC (permalink / raw)
  To: Karl Beldan, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Mark Rutland,
	Russell King, Kevin Hilman, Karl Beldan, Peter Ujfalusi

+ Peter

On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
> audio. This relies on the 'dummy' regulator as the codec is always on.
> Quality is good with arecord -pipe- aplay on Line In/Line Out.
> The MIC path doesn't seem to work yet.
> 
> Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
> ---
>  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 75 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
> index dbcca0b..35b31d9 100644
> --- a/arch/arm/boot/dts/da850-lcdk.dts
> +++ b/arch/arm/boot/dts/da850-lcdk.dts
> @@ -6,6 +6,7 @@
>  /dts-v1/;
>  #include "da850.dtsi"
>  #include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/sound/tlv320aic31xx-micbias.h>
>  
>  / {
>  	model = "DA850/AM1808/OMAP-L138 LCDK";
> @@ -23,10 +24,50 @@
>  		device_type = "memory";
>  		reg = <0xc0000000 0x08000000>;
>  	};
> +
> +	sound {
> +		compatible = "simple-audio-card";
> +		simple-audio-card,name = "DA850/OMAP-L138 LCDK";
> +		simple-audio-card,widgets =
> +			"Microphone", "Mic Jack",
> +			"Line", "Line In",
> +			"Line", "Line Out";
> +		simple-audio-card,routing =
> +			"MIC3L", "Mic Jack",
> +			"MIC3R", "Mic Jack",
> +			"Mic Jack", "Mic Bias",
> +			"LINE1L", "Line In",
> +			"LINE1R", "Line In",
> +			"Line Out", "LLOUT",
> +			"Line Out", "RLOUT";
> +		simple-audio-card,format = "dsp_b";
> +		simple-audio-card,bitclock-master = <&link0_codec>;
> +		simple-audio-card,frame-master = <&link0_codec>;
> +		simple-audio-card,bitclock-inversion;
> +
> +		simple-audio-card,cpu {
> +			sound-dai = <&mcasp0>;
> +			system-clock-frequency = <24576000>;
> +		};
> +
> +		link0_codec: simple-audio-card,codec {
> +			sound-dai = <&tlv320aic3106>;
> +			system-clock-frequency = <24576000>;
> +		};
> +	};
>  };
>  
>  &pmx_core {
>  	status = "okay";
> +
> +	mcasp0_pins: pinmux_mcasp0_pins {
> +		pinctrl-single,bits = <
> +			/* AHCLKX AFSX ACLKX */
> +			0x00 0x00101010 0x00f0f0f0
> +			/* ARX13 ARX14 */
> +			0x04 0x00000110 0x00000ff0
> +		>;
> +	};
>  };
>  
>  &serial2 {
> @@ -68,3 +109,37 @@
>  	cd-gpios = <&gpio 64 GPIO_ACTIVE_HIGH>;
>  	status = "okay";
>  };
> +
> +&i2c0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c0_pins>;
> +	clock-frequency = <100000>;
> +	status = "okay";
> +
> +	tlv320aic3106: tlv320aic3106@18 {
> +		#sound-dai-cells = <0>;
> +		compatible = "ti,tlv320aic3106";
> +		reg = <0x18>;
> +		status = "okay";
> +
> +		ai3x-micbias-vg = <MICBIAS_2_5V>;
> +	};
> +};
> +
> +&mcasp0 {
> +	#sound-dai-cells = <0>;
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&mcasp0_pins>;
> +	status = "okay";
> +
> +	op-mode = <0>;   /* DAVINCI_MCASP_IIS_MODE */
> +	tdm-slots = <2>;
> +	serial-dir = <   /* 0: INACTIVE, 1: TX, 2: RX */
> +		0 0 0 0
> +		0 0 0 0
> +		0 0 0 0
> +		0 1 2 0
> +	>;
> +	tx-num-evt = <32>;
> +	rx-num-evt = <32>;
> +};
> 

--
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] 30+ messages in thread

* [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-17  6:49   ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17  6:49 UTC (permalink / raw)
  To: linux-arm-kernel

+ Peter

On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
> audio. This relies on the 'dummy' regulator as the codec is always on.
> Quality is good with arecord -pipe- aplay on Line In/Line Out.
> The MIC path doesn't seem to work yet.
> 
> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> ---
>  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 75 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
> index dbcca0b..35b31d9 100644
> --- a/arch/arm/boot/dts/da850-lcdk.dts
> +++ b/arch/arm/boot/dts/da850-lcdk.dts
> @@ -6,6 +6,7 @@
>  /dts-v1/;
>  #include "da850.dtsi"
>  #include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/sound/tlv320aic31xx-micbias.h>
>  
>  / {
>  	model = "DA850/AM1808/OMAP-L138 LCDK";
> @@ -23,10 +24,50 @@
>  		device_type = "memory";
>  		reg = <0xc0000000 0x08000000>;
>  	};
> +
> +	sound {
> +		compatible = "simple-audio-card";
> +		simple-audio-card,name = "DA850/OMAP-L138 LCDK";
> +		simple-audio-card,widgets =
> +			"Microphone", "Mic Jack",
> +			"Line", "Line In",
> +			"Line", "Line Out";
> +		simple-audio-card,routing =
> +			"MIC3L", "Mic Jack",
> +			"MIC3R", "Mic Jack",
> +			"Mic Jack", "Mic Bias",
> +			"LINE1L", "Line In",
> +			"LINE1R", "Line In",
> +			"Line Out", "LLOUT",
> +			"Line Out", "RLOUT";
> +		simple-audio-card,format = "dsp_b";
> +		simple-audio-card,bitclock-master = <&link0_codec>;
> +		simple-audio-card,frame-master = <&link0_codec>;
> +		simple-audio-card,bitclock-inversion;
> +
> +		simple-audio-card,cpu {
> +			sound-dai = <&mcasp0>;
> +			system-clock-frequency = <24576000>;
> +		};
> +
> +		link0_codec: simple-audio-card,codec {
> +			sound-dai = <&tlv320aic3106>;
> +			system-clock-frequency = <24576000>;
> +		};
> +	};
>  };
>  
>  &pmx_core {
>  	status = "okay";
> +
> +	mcasp0_pins: pinmux_mcasp0_pins {
> +		pinctrl-single,bits = <
> +			/* AHCLKX AFSX ACLKX */
> +			0x00 0x00101010 0x00f0f0f0
> +			/* ARX13 ARX14 */
> +			0x04 0x00000110 0x00000ff0
> +		>;
> +	};
>  };
>  
>  &serial2 {
> @@ -68,3 +109,37 @@
>  	cd-gpios = <&gpio 64 GPIO_ACTIVE_HIGH>;
>  	status = "okay";
>  };
> +
> +&i2c0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c0_pins>;
> +	clock-frequency = <100000>;
> +	status = "okay";
> +
> +	tlv320aic3106: tlv320aic3106 at 18 {
> +		#sound-dai-cells = <0>;
> +		compatible = "ti,tlv320aic3106";
> +		reg = <0x18>;
> +		status = "okay";
> +
> +		ai3x-micbias-vg = <MICBIAS_2_5V>;
> +	};
> +};
> +
> +&mcasp0 {
> +	#sound-dai-cells = <0>;
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&mcasp0_pins>;
> +	status = "okay";
> +
> +	op-mode = <0>;   /* DAVINCI_MCASP_IIS_MODE */
> +	tdm-slots = <2>;
> +	serial-dir = <   /* 0: INACTIVE, 1: TX, 2: RX */
> +		0 0 0 0
> +		0 0 0 0
> +		0 0 0 0
> +		0 1 2 0
> +	>;
> +	tx-num-evt = <32>;
> +	rx-num-evt = <32>;
> +};
> 

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

* Re: [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
  2016-08-10 20:08   ` Karl Beldan
  (?)
@ 2016-08-17  8:50     ` Sekhar Nori
  -1 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17  8:50 UTC (permalink / raw)
  To: Karl Beldan, devicetree, linux-arm-kernel
  Cc: linux-kernel, Rob Herring, Mark Rutland, Russell King,
	Kevin Hilman, Karl Beldan

On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> This is the minimal set of additional modules required to support audio
> on the LCDK.
> 
> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>

This patch does not apply because Kevin already added some missing audio
modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
as modules"

Can you please rebase on master branch of my tree[1] and resend?

Regards,
Sekhar

[1]
https://git.kernel.org/cgit/linux/kernel/git/nsekhar/linux-davinci.git/log/

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

* Re: [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-17  8:50     ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17  8:50 UTC (permalink / raw)
  To: Karl Beldan, devicetree, linux-arm-kernel
  Cc: linux-kernel, Rob Herring, Mark Rutland, Russell King,
	Kevin Hilman, Karl Beldan

On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> This is the minimal set of additional modules required to support audio
> on the LCDK.
> 
> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>

This patch does not apply because Kevin already added some missing audio
modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
as modules"

Can you please rebase on master branch of my tree[1] and resend?

Regards,
Sekhar

[1]
https://git.kernel.org/cgit/linux/kernel/git/nsekhar/linux-davinci.git/log/

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

* [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-17  8:50     ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17  8:50 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> This is the minimal set of additional modules required to support audio
> on the LCDK.
> 
> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>

This patch does not apply because Kevin already added some missing audio
modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
as modules"

Can you please rebase on master branch of my tree[1] and resend?

Regards,
Sekhar

[1]
https://git.kernel.org/cgit/linux/kernel/git/nsekhar/linux-davinci.git/log/

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

* Re: [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
  2016-08-10 20:08 ` Karl Beldan
  (?)
@ 2016-08-17  9:54   ` Sekhar Nori
  -1 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17  9:54 UTC (permalink / raw)
  To: Karl Beldan, devicetree, linux-arm-kernel
  Cc: linux-kernel, Rob Herring, Mark Rutland, Russell King,
	Kevin Hilman, Karl Beldan, Peter Ujfalusi

On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
> audio. This relies on the 'dummy' regulator as the codec is always on.
> Quality is good with arecord -pipe- aplay on Line In/Line Out.
> The MIC path doesn't seem to work yet.

I tested the patch and I could not get the MIC to work as well. I
suggest dropping the MIC path parts till that is debugged and root caused.

> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> ---
>  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 75 insertions(+)

> +&i2c0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c0_pins>;
> +	clock-frequency = <100000>;
> +	status = "okay";
> +
> +	tlv320aic3106: tlv320aic3106@18 {
> +		#sound-dai-cells = <0>;
> +		compatible = "ti,tlv320aic3106";
> +		reg = <0x18>;
> +		status = "okay";
> +
> +		ai3x-micbias-vg = <MICBIAS_2_5V>;

It will be nice to add the codec regulators as well (and that in turn
needs the PMIC to be populated). Although I wont insist on that since
the regulators are optional properties.

Rest of the patch looks good to me.

Thanks,
Sekhar

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

* Re: [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-17  9:54   ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17  9:54 UTC (permalink / raw)
  To: Karl Beldan, devicetree, linux-arm-kernel
  Cc: linux-kernel, Rob Herring, Mark Rutland, Russell King,
	Kevin Hilman, Karl Beldan, Peter Ujfalusi

On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
> audio. This relies on the 'dummy' regulator as the codec is always on.
> Quality is good with arecord -pipe- aplay on Line In/Line Out.
> The MIC path doesn't seem to work yet.

I tested the patch and I could not get the MIC to work as well. I
suggest dropping the MIC path parts till that is debugged and root caused.

> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> ---
>  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 75 insertions(+)

> +&i2c0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c0_pins>;
> +	clock-frequency = <100000>;
> +	status = "okay";
> +
> +	tlv320aic3106: tlv320aic3106@18 {
> +		#sound-dai-cells = <0>;
> +		compatible = "ti,tlv320aic3106";
> +		reg = <0x18>;
> +		status = "okay";
> +
> +		ai3x-micbias-vg = <MICBIAS_2_5V>;

It will be nice to add the codec regulators as well (and that in turn
needs the PMIC to be populated). Although I wont insist on that since
the regulators are optional properties.

Rest of the patch looks good to me.

Thanks,
Sekhar

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

* [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-17  9:54   ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17  9:54 UTC (permalink / raw)
  To: linux-arm-kernel

On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
> audio. This relies on the 'dummy' regulator as the codec is always on.
> Quality is good with arecord -pipe- aplay on Line In/Line Out.
> The MIC path doesn't seem to work yet.

I tested the patch and I could not get the MIC to work as well. I
suggest dropping the MIC path parts till that is debugged and root caused.

> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> ---
>  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 75 insertions(+)

> +&i2c0 {
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&i2c0_pins>;
> +	clock-frequency = <100000>;
> +	status = "okay";
> +
> +	tlv320aic3106: tlv320aic3106 at 18 {
> +		#sound-dai-cells = <0>;
> +		compatible = "ti,tlv320aic3106";
> +		reg = <0x18>;
> +		status = "okay";
> +
> +		ai3x-micbias-vg = <MICBIAS_2_5V>;

It will be nice to add the codec regulators as well (and that in turn
needs the PMIC to be populated). Although I wont insist on that since
the regulators are optional properties.

Rest of the patch looks good to me.

Thanks,
Sekhar

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

* Re: [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-17 10:13       ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-17 10:13 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: devicetree, linux-arm-kernel, linux-kernel, Rob Herring,
	Mark Rutland, Russell King, Kevin Hilman, Karl Beldan

On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote:
> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> > This is the minimal set of additional modules required to support audio
> > on the LCDK.
> > 
> > Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> 
> This patch does not apply because Kevin already added some missing audio
> modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
> as modules"
> 
> Can you please rebase on master branch of my tree[1] and resend?
> 

I checked out your tree.
With Kevin's patch the needed modules get selected without needing 2/2.

However I don't know why he used:
 CONFIG_SND_DA850_SOC_EVM=m
instead of: 
 CONFIG_SND_DAVINCI_SOC_MCASP=m
 CONFIG_SND_SOC_TLV320AIC3X=m
The former seems to me to be pre-DT style config. I used the latter in
2/2 and thought that's what we'd start switching to ? Unless it is for
pre-DT compatibility ?

 
Karl

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

* Re: [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-17 10:13       ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-17 10:13 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Mark Rutland,
	Russell King, Kevin Hilman, Karl Beldan

On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote:
> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> > This is the minimal set of additional modules required to support audio
> > on the LCDK.
> > 
> > Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
> 
> This patch does not apply because Kevin already added some missing audio
> modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
> as modules"
> 
> Can you please rebase on master branch of my tree[1] and resend?
> 

I checked out your tree.
With Kevin's patch the needed modules get selected without needing 2/2.

However I don't know why he used:
 CONFIG_SND_DA850_SOC_EVM=m
instead of: 
 CONFIG_SND_DAVINCI_SOC_MCASP=m
 CONFIG_SND_SOC_TLV320AIC3X=m
The former seems to me to be pre-DT style config. I used the latter in
2/2 and thought that's what we'd start switching to ? Unless it is for
pre-DT compatibility ?

 
Karl
--
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] 30+ messages in thread

* [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-17 10:13       ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-17 10:13 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote:
> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> > This is the minimal set of additional modules required to support audio
> > on the LCDK.
> > 
> > Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> 
> This patch does not apply because Kevin already added some missing audio
> modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
> as modules"
> 
> Can you please rebase on master branch of my tree[1] and resend?
> 

I checked out your tree.
With Kevin's patch the needed modules get selected without needing 2/2.

However I don't know why he used:
 CONFIG_SND_DA850_SOC_EVM=m
instead of: 
 CONFIG_SND_DAVINCI_SOC_MCASP=m
 CONFIG_SND_SOC_TLV320AIC3X=m
The former seems to me to be pre-DT style config. I used the latter in
2/2 and thought that's what we'd start switching to ? Unless it is for
pre-DT compatibility ?

 
Karl

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

* Re: [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-17 10:33     ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-17 10:33 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: devicetree, linux-arm-kernel, linux-kernel, Rob Herring,
	Mark Rutland, Russell King, Kevin Hilman, Karl Beldan,
	Peter Ujfalusi

On Wed, Aug 17, 2016 at 03:24:42PM +0530, Sekhar Nori wrote:
> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> > The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
> > audio. This relies on the 'dummy' regulator as the codec is always on.
> > Quality is good with arecord -pipe- aplay on Line In/Line Out.
> > The MIC path doesn't seem to work yet.
> 
> I tested the patch and I could not get the MIC to work as well. I
> suggest dropping the MIC path parts till that is debugged and root caused.
> 

Ok.

> > Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> > ---
> >  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 75 insertions(+)
> 
> > +&i2c0 {
> > +	pinctrl-names = "default";
> > +	pinctrl-0 = <&i2c0_pins>;
> > +	clock-frequency = <100000>;
> > +	status = "okay";
> > +
> > +	tlv320aic3106: tlv320aic3106@18 {
> > +		#sound-dai-cells = <0>;
> > +		compatible = "ti,tlv320aic3106";
> > +		reg = <0x18>;
> > +		status = "okay";
> > +
> > +		ai3x-micbias-vg = <MICBIAS_2_5V>;
> 
> It will be nice to add the codec regulators as well (and that in turn
> needs the PMIC to be populated). Although I wont insist on that since
> the regulators are optional properties.
> 

In the patch comment I stated it relied on the dummy regulator as the
codec is always on but maybe I should have been more precise: it is not
out of convenience to keep things on, it is by HW design: I mentioned
it in the comment of "ARM: dts: da850: Add basic DTS for the LCDK":
 "the main PMIC, different and hard-wired on the LCDK (the LDOs and
 DCDCs are always on)" after reviewing the schematics.
I could add that in the patch comment.

Thanks for reviewing.

Rgds, 
Karl

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

* Re: [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-17 10:33     ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-17 10:33 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Mark Rutland,
	Russell King, Kevin Hilman, Karl Beldan, Peter Ujfalusi

On Wed, Aug 17, 2016 at 03:24:42PM +0530, Sekhar Nori wrote:
> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> > The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
> > audio. This relies on the 'dummy' regulator as the codec is always on.
> > Quality is good with arecord -pipe- aplay on Line In/Line Out.
> > The MIC path doesn't seem to work yet.
> 
> I tested the patch and I could not get the MIC to work as well. I
> suggest dropping the MIC path parts till that is debugged and root caused.
> 

Ok.

> > Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
> > ---
> >  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 75 insertions(+)
> 
> > +&i2c0 {
> > +	pinctrl-names = "default";
> > +	pinctrl-0 = <&i2c0_pins>;
> > +	clock-frequency = <100000>;
> > +	status = "okay";
> > +
> > +	tlv320aic3106: tlv320aic3106@18 {
> > +		#sound-dai-cells = <0>;
> > +		compatible = "ti,tlv320aic3106";
> > +		reg = <0x18>;
> > +		status = "okay";
> > +
> > +		ai3x-micbias-vg = <MICBIAS_2_5V>;
> 
> It will be nice to add the codec regulators as well (and that in turn
> needs the PMIC to be populated). Although I wont insist on that since
> the regulators are optional properties.
> 

In the patch comment I stated it relied on the dummy regulator as the
codec is always on but maybe I should have been more precise: it is not
out of convenience to keep things on, it is by HW design: I mentioned
it in the comment of "ARM: dts: da850: Add basic DTS for the LCDK":
 "the main PMIC, different and hard-wired on the LCDK (the LDOs and
 DCDCs are always on)" after reviewing the schematics.
I could add that in the patch comment.

Thanks for reviewing.

Rgds, 
Karl
--
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] 30+ messages in thread

* [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-17 10:33     ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-17 10:33 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Aug 17, 2016 at 03:24:42PM +0530, Sekhar Nori wrote:
> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> > The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
> > audio. This relies on the 'dummy' regulator as the codec is always on.
> > Quality is good with arecord -pipe- aplay on Line In/Line Out.
> > The MIC path doesn't seem to work yet.
> 
> I tested the patch and I could not get the MIC to work as well. I
> suggest dropping the MIC path parts till that is debugged and root caused.
> 

Ok.

> > Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> > ---
> >  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 75 insertions(+)
> 
> > +&i2c0 {
> > +	pinctrl-names = "default";
> > +	pinctrl-0 = <&i2c0_pins>;
> > +	clock-frequency = <100000>;
> > +	status = "okay";
> > +
> > +	tlv320aic3106: tlv320aic3106 at 18 {
> > +		#sound-dai-cells = <0>;
> > +		compatible = "ti,tlv320aic3106";
> > +		reg = <0x18>;
> > +		status = "okay";
> > +
> > +		ai3x-micbias-vg = <MICBIAS_2_5V>;
> 
> It will be nice to add the codec regulators as well (and that in turn
> needs the PMIC to be populated). Although I wont insist on that since
> the regulators are optional properties.
> 

In the patch comment I stated it relied on the dummy regulator as the
codec is always on but maybe I should have been more precise: it is not
out of convenience to keep things on, it is by HW design: I mentioned
it in the comment of "ARM: dts: da850: Add basic DTS for the LCDK":
 "the main PMIC, different and hard-wired on the LCDK (the LDOs and
 DCDCs are always on)" after reviewing the schematics.
I could add that in the patch comment.

Thanks for reviewing.

Rgds, 
Karl

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

* Re: [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
  2016-08-17 10:13       ` Karl Beldan
  (?)
@ 2016-08-17 10:38         ` Sekhar Nori
  -1 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17 10:38 UTC (permalink / raw)
  To: Karl Beldan
  Cc: devicetree, linux-arm-kernel, linux-kernel, Rob Herring,
	Mark Rutland, Russell King, Kevin Hilman, Karl Beldan,
	Peter Ujfalusi

On Wednesday 17 August 2016 03:43 PM, Karl Beldan wrote:
> On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote:
>> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
>>> This is the minimal set of additional modules required to support audio
>>> on the LCDK.
>>>
>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>
>> This patch does not apply because Kevin already added some missing audio
>> modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
>> as modules"
>>
>> Can you please rebase on master branch of my tree[1] and resend?
>>
> 
> I checked out your tree.
> With Kevin's patch the needed modules get selected without needing 2/2.
> 
> However I don't know why he used:
>  CONFIG_SND_DA850_SOC_EVM=m
> instead of: 
>  CONFIG_SND_DAVINCI_SOC_MCASP=m
>  CONFIG_SND_SOC_TLV320AIC3X=m
> The former seems to me to be pre-DT style config. I used the latter in
> 2/2 and thought that's what we'd start switching to ? Unless it is for
> pre-DT compatibility ?

I don't think this is related to DT. As you said,
CONFIG_SND_DA850_SOC_EVM selects CONFIG_SND_DAVINCI_SOC_MCASP and
CONFIG_SND_SOC_TLV320AIC3X anyway.

To be honest, I am okay either way. Copying Peter to see if he has any
preference.

Thanks,
Sekhar

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

* Re: [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-17 10:38         ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17 10:38 UTC (permalink / raw)
  To: Karl Beldan
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Mark Rutland,
	Russell King, Kevin Hilman, Karl Beldan, Peter Ujfalusi

On Wednesday 17 August 2016 03:43 PM, Karl Beldan wrote:
> On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote:
>> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
>>> This is the minimal set of additional modules required to support audio
>>> on the LCDK.
>>>
>>> Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
>>
>> This patch does not apply because Kevin already added some missing audio
>> modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
>> as modules"
>>
>> Can you please rebase on master branch of my tree[1] and resend?
>>
> 
> I checked out your tree.
> With Kevin's patch the needed modules get selected without needing 2/2.
> 
> However I don't know why he used:
>  CONFIG_SND_DA850_SOC_EVM=m
> instead of: 
>  CONFIG_SND_DAVINCI_SOC_MCASP=m
>  CONFIG_SND_SOC_TLV320AIC3X=m
> The former seems to me to be pre-DT style config. I used the latter in
> 2/2 and thought that's what we'd start switching to ? Unless it is for
> pre-DT compatibility ?

I don't think this is related to DT. As you said,
CONFIG_SND_DA850_SOC_EVM selects CONFIG_SND_DAVINCI_SOC_MCASP and
CONFIG_SND_SOC_TLV320AIC3X anyway.

To be honest, I am okay either way. Copying Peter to see if he has any
preference.

Thanks,
Sekhar
--
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] 30+ messages in thread

* [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-17 10:38         ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17 10:38 UTC (permalink / raw)
  To: linux-arm-kernel

On Wednesday 17 August 2016 03:43 PM, Karl Beldan wrote:
> On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote:
>> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
>>> This is the minimal set of additional modules required to support audio
>>> on the LCDK.
>>>
>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>
>> This patch does not apply because Kevin already added some missing audio
>> modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
>> as modules"
>>
>> Can you please rebase on master branch of my tree[1] and resend?
>>
> 
> I checked out your tree.
> With Kevin's patch the needed modules get selected without needing 2/2.
> 
> However I don't know why he used:
>  CONFIG_SND_DA850_SOC_EVM=m
> instead of: 
>  CONFIG_SND_DAVINCI_SOC_MCASP=m
>  CONFIG_SND_SOC_TLV320AIC3X=m
> The former seems to me to be pre-DT style config. I used the latter in
> 2/2 and thought that's what we'd start switching to ? Unless it is for
> pre-DT compatibility ?

I don't think this is related to DT. As you said,
CONFIG_SND_DA850_SOC_EVM selects CONFIG_SND_DAVINCI_SOC_MCASP and
CONFIG_SND_SOC_TLV320AIC3X anyway.

To be honest, I am okay either way. Copying Peter to see if he has any
preference.

Thanks,
Sekhar

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

* Re: [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
  2016-08-17 10:33     ` Karl Beldan
  (?)
@ 2016-08-17 11:32       ` Sekhar Nori
  -1 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17 11:32 UTC (permalink / raw)
  To: Karl Beldan
  Cc: devicetree, linux-arm-kernel, linux-kernel, Rob Herring,
	Mark Rutland, Russell King, Kevin Hilman, Karl Beldan,
	Peter Ujfalusi

On Wednesday 17 August 2016 04:03 PM, Karl Beldan wrote:
> On Wed, Aug 17, 2016 at 03:24:42PM +0530, Sekhar Nori wrote:
>> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
>>> The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
>>> audio. This relies on the 'dummy' regulator as the codec is always on.
>>> Quality is good with arecord -pipe- aplay on Line In/Line Out.
>>> The MIC path doesn't seem to work yet.
>>
>> I tested the patch and I could not get the MIC to work as well. I
>> suggest dropping the MIC path parts till that is debugged and root caused.
>>
> 
> Ok.
> 
>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>> ---
>>>  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
>>>  1 file changed, 75 insertions(+)
>>
>>> +&i2c0 {
>>> +	pinctrl-names = "default";
>>> +	pinctrl-0 = <&i2c0_pins>;
>>> +	clock-frequency = <100000>;
>>> +	status = "okay";
>>> +
>>> +	tlv320aic3106: tlv320aic3106@18 {
>>> +		#sound-dai-cells = <0>;
>>> +		compatible = "ti,tlv320aic3106";
>>> +		reg = <0x18>;
>>> +		status = "okay";
>>> +
>>> +		ai3x-micbias-vg = <MICBIAS_2_5V>;
>>
>> It will be nice to add the codec regulators as well (and that in turn
>> needs the PMIC to be populated). Although I wont insist on that since
>> the regulators are optional properties.
>>
> 
> In the patch comment I stated it relied on the dummy regulator as the
> codec is always on but maybe I should have been more precise: it is not
> out of convenience to keep things on, it is by HW design: I mentioned
> it in the comment of "ARM: dts: da850: Add basic DTS for the LCDK":
>  "the main PMIC, different and hard-wired on the LCDK (the LDOs and
>  DCDCs are always on)" after reviewing the schematics.
> I could add that in the patch comment.

I see. PMIC on the LCDK is not software configurable at all. I think
what you have in the patch comment is already okay. More explanation
wont harm though :)

Regards,
Sekhar

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

* Re: [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-17 11:32       ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17 11:32 UTC (permalink / raw)
  To: Karl Beldan
  Cc: Mark Rutland, devicetree, Karl Beldan, Kevin Hilman,
	linux-kernel, Russell King, Rob Herring, linux-arm-kernel

On Wednesday 17 August 2016 04:03 PM, Karl Beldan wrote:
> On Wed, Aug 17, 2016 at 03:24:42PM +0530, Sekhar Nori wrote:
>> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
>>> The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
>>> audio. This relies on the 'dummy' regulator as the codec is always on.
>>> Quality is good with arecord -pipe- aplay on Line In/Line Out.
>>> The MIC path doesn't seem to work yet.
>>
>> I tested the patch and I could not get the MIC to work as well. I
>> suggest dropping the MIC path parts till that is debugged and root caused.
>>
> 
> Ok.
> 
>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>> ---
>>>  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
>>>  1 file changed, 75 insertions(+)
>>
>>> +&i2c0 {
>>> +	pinctrl-names = "default";
>>> +	pinctrl-0 = <&i2c0_pins>;
>>> +	clock-frequency = <100000>;
>>> +	status = "okay";
>>> +
>>> +	tlv320aic3106: tlv320aic3106@18 {
>>> +		#sound-dai-cells = <0>;
>>> +		compatible = "ti,tlv320aic3106";
>>> +		reg = <0x18>;
>>> +		status = "okay";
>>> +
>>> +		ai3x-micbias-vg = <MICBIAS_2_5V>;
>>
>> It will be nice to add the codec regulators as well (and that in turn
>> needs the PMIC to be populated). Although I wont insist on that since
>> the regulators are optional properties.
>>
> 
> In the patch comment I stated it relied on the dummy regulator as the
> codec is always on but maybe I should have been more precise: it is not
> out of convenience to keep things on, it is by HW design: I mentioned
> it in the comment of "ARM: dts: da850: Add basic DTS for the LCDK":
>  "the main PMIC, different and hard-wired on the LCDK (the LDOs and
>  DCDCs are always on)" after reviewing the schematics.
> I could add that in the patch comment.

I see. PMIC on the LCDK is not software configurable at all. I think
what you have in the patch comment is already okay. More explanation
wont harm though :)

Regards,
Sekhar

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

* [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card
@ 2016-08-17 11:32       ` Sekhar Nori
  0 siblings, 0 replies; 30+ messages in thread
From: Sekhar Nori @ 2016-08-17 11:32 UTC (permalink / raw)
  To: linux-arm-kernel

On Wednesday 17 August 2016 04:03 PM, Karl Beldan wrote:
> On Wed, Aug 17, 2016 at 03:24:42PM +0530, Sekhar Nori wrote:
>> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
>>> The LCDK embeds a TLV320AIC3106 connected to the SoC McASP for analog
>>> audio. This relies on the 'dummy' regulator as the codec is always on.
>>> Quality is good with arecord -pipe- aplay on Line In/Line Out.
>>> The MIC path doesn't seem to work yet.
>>
>> I tested the patch and I could not get the MIC to work as well. I
>> suggest dropping the MIC path parts till that is debugged and root caused.
>>
> 
> Ok.
> 
>>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
>>> ---
>>>  arch/arm/boot/dts/da850-lcdk.dts | 75 ++++++++++++++++++++++++++++++++++++++++
>>>  1 file changed, 75 insertions(+)
>>
>>> +&i2c0 {
>>> +	pinctrl-names = "default";
>>> +	pinctrl-0 = <&i2c0_pins>;
>>> +	clock-frequency = <100000>;
>>> +	status = "okay";
>>> +
>>> +	tlv320aic3106: tlv320aic3106 at 18 {
>>> +		#sound-dai-cells = <0>;
>>> +		compatible = "ti,tlv320aic3106";
>>> +		reg = <0x18>;
>>> +		status = "okay";
>>> +
>>> +		ai3x-micbias-vg = <MICBIAS_2_5V>;
>>
>> It will be nice to add the codec regulators as well (and that in turn
>> needs the PMIC to be populated). Although I wont insist on that since
>> the regulators are optional properties.
>>
> 
> In the patch comment I stated it relied on the dummy regulator as the
> codec is always on but maybe I should have been more precise: it is not
> out of convenience to keep things on, it is by HW design: I mentioned
> it in the comment of "ARM: dts: da850: Add basic DTS for the LCDK":
>  "the main PMIC, different and hard-wired on the LCDK (the LDOs and
>  DCDCs are always on)" after reviewing the schematics.
> I could add that in the patch comment.

I see. PMIC on the LCDK is not software configurable at all. I think
what you have in the patch comment is already okay. More explanation
wont harm though :)

Regards,
Sekhar

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

* Re: [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-17 13:01           ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-17 13:01 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: devicetree, linux-arm-kernel, linux-kernel, Rob Herring,
	Mark Rutland, Russell King, Kevin Hilman, Karl Beldan,
	Peter Ujfalusi

On Wed, Aug 17, 2016 at 04:08:03PM +0530, Sekhar Nori wrote:
> On Wednesday 17 August 2016 03:43 PM, Karl Beldan wrote:
> > On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote:
> >> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> >>> This is the minimal set of additional modules required to support audio
> >>> on the LCDK.
> >>>
> >>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> >>
> >> This patch does not apply because Kevin already added some missing audio
> >> modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
> >> as modules"
> >>
> >> Can you please rebase on master branch of my tree[1] and resend?
> >>
> > 
> > I checked out your tree.
> > With Kevin's patch the needed modules get selected without needing 2/2.
> > 
> > However I don't know why he used:
> >  CONFIG_SND_DA850_SOC_EVM=m
> > instead of: 
> >  CONFIG_SND_DAVINCI_SOC_MCASP=m
> >  CONFIG_SND_SOC_TLV320AIC3X=m
> > The former seems to me to be pre-DT style config. I used the latter in
> > 2/2 and thought that's what we'd start switching to ? Unless it is for
> > pre-DT compatibility ?
> 
> I don't think this is related to DT. As you said,
> CONFIG_SND_DA850_SOC_EVM selects CONFIG_SND_DAVINCI_SOC_MCASP and
> CONFIG_SND_SOC_TLV320AIC3X anyway.
> 
> To be honest, I am okay either way. Copying Peter to see if he has any
> preference.
> 

Ok, I dropped 2/2 in v2 which will rely on Kevin's change.

Rgds, 
Karl

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

* Re: [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-17 13:01           ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-17 13:01 UTC (permalink / raw)
  To: Sekhar Nori
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Herring, Mark Rutland,
	Russell King, Kevin Hilman, Karl Beldan, Peter Ujfalusi

On Wed, Aug 17, 2016 at 04:08:03PM +0530, Sekhar Nori wrote:
> On Wednesday 17 August 2016 03:43 PM, Karl Beldan wrote:
> > On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote:
> >> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> >>> This is the minimal set of additional modules required to support audio
> >>> on the LCDK.
> >>>
> >>> Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
> >>
> >> This patch does not apply because Kevin already added some missing audio
> >> modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
> >> as modules"
> >>
> >> Can you please rebase on master branch of my tree[1] and resend?
> >>
> > 
> > I checked out your tree.
> > With Kevin's patch the needed modules get selected without needing 2/2.
> > 
> > However I don't know why he used:
> >  CONFIG_SND_DA850_SOC_EVM=m
> > instead of: 
> >  CONFIG_SND_DAVINCI_SOC_MCASP=m
> >  CONFIG_SND_SOC_TLV320AIC3X=m
> > The former seems to me to be pre-DT style config. I used the latter in
> > 2/2 and thought that's what we'd start switching to ? Unless it is for
> > pre-DT compatibility ?
> 
> I don't think this is related to DT. As you said,
> CONFIG_SND_DA850_SOC_EVM selects CONFIG_SND_DAVINCI_SOC_MCASP and
> CONFIG_SND_SOC_TLV320AIC3X anyway.
> 
> To be honest, I am okay either way. Copying Peter to see if he has any
> preference.
> 

Ok, I dropped 2/2 in v2 which will rely on Kevin's change.

Rgds, 
Karl
--
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] 30+ messages in thread

* [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK
@ 2016-08-17 13:01           ` Karl Beldan
  0 siblings, 0 replies; 30+ messages in thread
From: Karl Beldan @ 2016-08-17 13:01 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Aug 17, 2016 at 04:08:03PM +0530, Sekhar Nori wrote:
> On Wednesday 17 August 2016 03:43 PM, Karl Beldan wrote:
> > On Wed, Aug 17, 2016 at 02:20:51PM +0530, Sekhar Nori wrote:
> >> On Thursday 11 August 2016 01:38 AM, Karl Beldan wrote:
> >>> This is the minimal set of additional modules required to support audio
> >>> on the LCDK.
> >>>
> >>> Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
> >>
> >> This patch does not apply because Kevin already added some missing audio
> >> modules through commit "ARM: davinci_all_defconfig: enable DA850 audio
> >> as modules"
> >>
> >> Can you please rebase on master branch of my tree[1] and resend?
> >>
> > 
> > I checked out your tree.
> > With Kevin's patch the needed modules get selected without needing 2/2.
> > 
> > However I don't know why he used:
> >  CONFIG_SND_DA850_SOC_EVM=m
> > instead of: 
> >  CONFIG_SND_DAVINCI_SOC_MCASP=m
> >  CONFIG_SND_SOC_TLV320AIC3X=m
> > The former seems to me to be pre-DT style config. I used the latter in
> > 2/2 and thought that's what we'd start switching to ? Unless it is for
> > pre-DT compatibility ?
> 
> I don't think this is related to DT. As you said,
> CONFIG_SND_DA850_SOC_EVM selects CONFIG_SND_DAVINCI_SOC_MCASP and
> CONFIG_SND_SOC_TLV320AIC3X anyway.
> 
> To be honest, I am okay either way. Copying Peter to see if he has any
> preference.
> 

Ok, I dropped 2/2 in v2 which will rely on Kevin's change.

Rgds, 
Karl

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

end of thread, other threads:[~2016-08-17 13:01 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-10 20:08 [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card Karl Beldan
2016-08-10 20:08 ` Karl Beldan
2016-08-10 20:08 ` Karl Beldan
2016-08-10 20:08 ` [PATCH 2/2] ARM: davinci_all_defconfig: enable modules for sound on LCDK Karl Beldan
2016-08-10 20:08   ` Karl Beldan
2016-08-10 20:08   ` Karl Beldan
2016-08-17  8:50   ` Sekhar Nori
2016-08-17  8:50     ` Sekhar Nori
2016-08-17  8:50     ` Sekhar Nori
2016-08-17 10:13     ` Karl Beldan
2016-08-17 10:13       ` Karl Beldan
2016-08-17 10:13       ` Karl Beldan
2016-08-17 10:38       ` Sekhar Nori
2016-08-17 10:38         ` Sekhar Nori
2016-08-17 10:38         ` Sekhar Nori
2016-08-17 13:01         ` Karl Beldan
2016-08-17 13:01           ` Karl Beldan
2016-08-17 13:01           ` Karl Beldan
2016-08-17  6:49 ` [PATCH 1/2] ARM: dts: da850-lcdk: Audio support via simple-card Sekhar Nori
2016-08-17  6:49   ` Sekhar Nori
2016-08-17  6:49   ` Sekhar Nori
2016-08-17  9:54 ` Sekhar Nori
2016-08-17  9:54   ` Sekhar Nori
2016-08-17  9:54   ` Sekhar Nori
2016-08-17 10:33   ` Karl Beldan
2016-08-17 10:33     ` Karl Beldan
2016-08-17 10:33     ` Karl Beldan
2016-08-17 11:32     ` Sekhar Nori
2016-08-17 11:32       ` Sekhar Nori
2016-08-17 11:32       ` Sekhar Nori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.