devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: DTS: omap5-uevm: Enable audio (for 3.17)
@ 2014-07-10 11:24 Peter Ujfalusi
  2014-07-10 11:24 ` [PATCH 1/3] ARM: DTS: omap5-uevm: Enable palmas clk32kgaudio clock Peter Ujfalusi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Peter Ujfalusi @ 2014-07-10 11:24 UTC (permalink / raw)
  To: bcousson, tony; +Cc: linux-omap, devicetree, linux-arm-kernel

Hi,

This set is to enable audio (finally) on the omap5-uevm. We have been waiting
for the palmas 32K clock driver to make it to upstream, which it did and it is
already in linux-next.

With the three patch we can have audio working on omap5-uevm with linux-next.

Regards,
Peter
---
Peter Ujfalusi (3):
  ARM: DTS: omap5-uevm: Enable palmas clk32kgaudio clock
  ARM: DTS: omap5-uevm: Add node for twl6040 audio codec
  ARM: DTS: omap5-uevm: Enable basic audio (McPDM <-> twl6040)

 arch/arm/boot/dts/omap5-uevm.dts | 68 ++++++++++++++++++++++++++++++++++++----
 1 file changed, 62 insertions(+), 6 deletions(-)

-- 
2.0.0


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

* [PATCH 1/3] ARM: DTS: omap5-uevm: Enable palmas clk32kgaudio clock
  2014-07-10 11:24 [PATCH 0/3] ARM: DTS: omap5-uevm: Enable audio (for 3.17) Peter Ujfalusi
@ 2014-07-10 11:24 ` Peter Ujfalusi
  2014-07-10 11:24 ` [PATCH 2/3] ARM: DTS: omap5-uevm: Add node for twl6040 audio codec Peter Ujfalusi
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Ujfalusi @ 2014-07-10 11:24 UTC (permalink / raw)
  To: bcousson, tony; +Cc: linux-omap, devicetree, linux-arm-kernel

clk32kg-audio clock is needed for twl6040 codec.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/boot/dts/omap5-uevm.dts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts
index 1e1b05768cec..9166d479ac1b 100644
--- a/arch/arm/boot/dts/omap5-uevm.dts
+++ b/arch/arm/boot/dts/omap5-uevm.dts
@@ -306,6 +306,11 @@
 			ti,wakeup;
 		};
 
+		clk32kgaudio: palmas_clk32k@1 {
+			compatible = "ti,palmas-clk32kgaudio";
+			#clock-cells = <0>;
+		};
+
 		palmas_pmic {
 			compatible = "ti,palmas-pmic";
 			interrupt-parent = <&palmas>;
-- 
2.0.0


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

* [PATCH 2/3] ARM: DTS: omap5-uevm: Add node for twl6040 audio codec
  2014-07-10 11:24 [PATCH 0/3] ARM: DTS: omap5-uevm: Enable audio (for 3.17) Peter Ujfalusi
  2014-07-10 11:24 ` [PATCH 1/3] ARM: DTS: omap5-uevm: Enable palmas clk32kgaudio clock Peter Ujfalusi
@ 2014-07-10 11:24 ` Peter Ujfalusi
  2014-07-10 11:24 ` [PATCH 3/3] ARM: DTS: omap5-uevm: Enable basic audio (McPDM <-> twl6040) Peter Ujfalusi
  2014-07-15  7:21 ` [PATCH 0/3] ARM: DTS: omap5-uevm: Enable audio (for 3.17) Tony Lindgren
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Ujfalusi @ 2014-07-10 11:24 UTC (permalink / raw)
  To: bcousson, tony; +Cc: linux-omap, devicetree, linux-arm-kernel

The board uses twl6040 as audio codec. Move the corresponding  pinctrl as
well under the node.
twl6040 needs 32k clock from palams.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/boot/dts/omap5-uevm.dts | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts
index 9166d479ac1b..c9286166fad5 100644
--- a/arch/arm/boot/dts/omap5-uevm.dts
+++ b/arch/arm/boot/dts/omap5-uevm.dts
@@ -105,7 +105,6 @@
 &omap5_pmx_core {
 	pinctrl-names = "default";
 	pinctrl-0 = <
-			&twl6040_pins
 			&mcpdm_pins
 			&mcbsp1_pins
 			&mcbsp2_pins
@@ -494,6 +493,25 @@
 			};
 		};
 	};
+
+	twl6040: twl@4b {
+		compatible = "ti,twl6040";
+		reg = <0x4b>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&twl6040_pins>;
+
+		interrupts = <GIC_SPI 119 IRQ_TYPE_NONE>; /* IRQ_SYS_2N cascaded to gic */
+		interrupt-parent = <&gic>;
+		ti,audpwron-gpio = <&gpio5 13 0>;  /* gpio line 141 */
+
+		vio-supply = <&smps7_reg>;
+		v2v1-supply = <&smps9_reg>;
+		enable-active-high;
+
+		clocks = <&clk32kgaudio>;
+		clock-names = "clk32k";
+	};
 };
 
 &i2c5 {
-- 
2.0.0


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

* [PATCH 3/3] ARM: DTS: omap5-uevm: Enable basic audio (McPDM <-> twl6040)
  2014-07-10 11:24 [PATCH 0/3] ARM: DTS: omap5-uevm: Enable audio (for 3.17) Peter Ujfalusi
  2014-07-10 11:24 ` [PATCH 1/3] ARM: DTS: omap5-uevm: Enable palmas clk32kgaudio clock Peter Ujfalusi
  2014-07-10 11:24 ` [PATCH 2/3] ARM: DTS: omap5-uevm: Add node for twl6040 audio codec Peter Ujfalusi
@ 2014-07-10 11:24 ` Peter Ujfalusi
  2014-07-15  7:21 ` [PATCH 0/3] ARM: DTS: omap5-uevm: Enable audio (for 3.17) Tony Lindgren
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Ujfalusi @ 2014-07-10 11:24 UTC (permalink / raw)
  To: bcousson, tony; +Cc: linux-omap, devicetree, linux-arm-kernel

The board uses twl6040 codec connected via McPDM link. McBSP1 and McBSP2 can
be used for FM/BT.
At the same time move the pinctrl handling to the correct place - under the
corresponding nodes.
Audio connectors on the board:
Headset in/out
Stereo Line out
Stereo Line in.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/boot/dts/omap5-uevm.dts | 43 +++++++++++++++++++++++++++++++++++-----
 1 file changed, 38 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts
index c9286166fad5..159720d6c956 100644
--- a/arch/arm/boot/dts/omap5-uevm.dts
+++ b/arch/arm/boot/dts/omap5-uevm.dts
@@ -100,14 +100,33 @@
 			};
 		};
 	};
+
+	sound: sound {
+		compatible = "ti,abe-twl6040";
+		ti,model = "omap5-uevm";
+
+		ti,mclk-freq = <19200000>;
+
+		ti,mcpdm = <&mcpdm>;
+
+		ti,twl6040 = <&twl6040>;
+
+		/* Audio routing */
+		ti,audio-routing =
+			"Headset Stereophone", "HSOL",
+			"Headset Stereophone", "HSOR",
+			"Line Out", "AUXL",
+			"Line Out", "AUXR",
+			"HSMIC", "Headset Mic",
+			"Headset Mic", "Headset Mic Bias",
+			"AFML", "Line In",
+			"AFMR", "Line In";
+	};
 };
 
 &omap5_pmx_core {
 	pinctrl-names = "default";
 	pinctrl-0 = <
-			&mcpdm_pins
-			&mcbsp1_pins
-			&mcbsp2_pins
 			&usbhost_pins
 			&led_gpio_pins
 	>;
@@ -528,8 +547,22 @@
 	};
 };
 
-&mcbsp3 {
-	status = "disabled";
+&mcpdm {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcpdm_pins>;
+	status = "okay";
+};
+
+&mcbsp1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcbsp1_pins>;
+	status = "okay";
+};
+
+&mcbsp2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mcbsp2_pins>;
+	status = "okay";
 };
 
 &usbhshost {
-- 
2.0.0


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

* Re: [PATCH 0/3] ARM: DTS: omap5-uevm: Enable audio (for 3.17)
  2014-07-10 11:24 [PATCH 0/3] ARM: DTS: omap5-uevm: Enable audio (for 3.17) Peter Ujfalusi
                   ` (2 preceding siblings ...)
  2014-07-10 11:24 ` [PATCH 3/3] ARM: DTS: omap5-uevm: Enable basic audio (McPDM <-> twl6040) Peter Ujfalusi
@ 2014-07-15  7:21 ` Tony Lindgren
  3 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2014-07-15  7:21 UTC (permalink / raw)
  To: Peter Ujfalusi; +Cc: bcousson, linux-omap, devicetree, linux-arm-kernel

* Peter Ujfalusi <peter.ujfalusi@ti.com> [140710 04:26]:
> Hi,
> 
> This set is to enable audio (finally) on the omap5-uevm. We have been waiting
> for the palmas 32K clock driver to make it to upstream, which it did and it is
> already in linux-next.
> 
> With the three patch we can have audio working on omap5-uevm with linux-next.
> 
> Regards,
> Peter
> ---
> Peter Ujfalusi (3):
>   ARM: DTS: omap5-uevm: Enable palmas clk32kgaudio clock
>   ARM: DTS: omap5-uevm: Add node for twl6040 audio codec
>   ARM: DTS: omap5-uevm: Enable basic audio (McPDM <-> twl6040)
> 
>  arch/arm/boot/dts/omap5-uevm.dts | 68 ++++++++++++++++++++++++++++++++++++----
>  1 file changed, 62 insertions(+), 6 deletions(-)

Applying into omap-for-v3.17/dt thanks.

Tony

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

end of thread, other threads:[~2014-07-15  7:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-10 11:24 [PATCH 0/3] ARM: DTS: omap5-uevm: Enable audio (for 3.17) Peter Ujfalusi
2014-07-10 11:24 ` [PATCH 1/3] ARM: DTS: omap5-uevm: Enable palmas clk32kgaudio clock Peter Ujfalusi
2014-07-10 11:24 ` [PATCH 2/3] ARM: DTS: omap5-uevm: Add node for twl6040 audio codec Peter Ujfalusi
2014-07-10 11:24 ` [PATCH 3/3] ARM: DTS: omap5-uevm: Enable basic audio (McPDM <-> twl6040) Peter Ujfalusi
2014-07-15  7:21 ` [PATCH 0/3] ARM: DTS: omap5-uevm: Enable audio (for 3.17) 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).