* [PATCH 1/7] arm/dts: omap4: Add entry for OMAP McPDM IP
2012-06-08 14:01 [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
@ 2012-06-08 14:01 ` Peter Ujfalusi
2012-06-08 14:02 ` [PATCH 2/7] arm/dts: omap4: Add entry for OMAP DMIC IP Peter Ujfalusi
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Peter Ujfalusi @ 2012-06-08 14:01 UTC (permalink / raw)
To: linux-arm-kernel
McPDM is used on OMAP4 based boards to communicate with an external audio
codec (twl6040).
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
arch/arm/boot/dts/omap4.dtsi | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
index 359c497..4c43f3b 100644
--- a/arch/arm/boot/dts/omap4.dtsi
+++ b/arch/arm/boot/dts/omap4.dtsi
@@ -272,5 +272,14 @@
ti,hwmods = "mmc5";
ti,needs-special-reset;
};
+
+ mcpdm: mcpdm at 40132000 {
+ compatible = "ti,omap4-mcpdm";
+ reg = <0x40132000 0x7f>, /* MPU private access */
+ <0x49032000 0x7f>; /* L3 Interconnect */
+ interrupts = <0 112 0x4>;
+ interrupt-parent = <&gic>;
+ ti,hwmods = "mcpdm";
+ };
};
};
--
1.7.8.6
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/7] arm/dts: omap4: Add entry for OMAP DMIC IP
2012-06-08 14:01 [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
2012-06-08 14:01 ` [PATCH 1/7] arm/dts: omap4: Add entry for OMAP McPDM IP Peter Ujfalusi
@ 2012-06-08 14:02 ` Peter Ujfalusi
2012-06-08 14:02 ` [PATCH 3/7] arm/dts: omap4-sdp: Add fixed regulator to represent VBAT Peter Ujfalusi
` (5 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Peter Ujfalusi @ 2012-06-08 14:02 UTC (permalink / raw)
To: linux-arm-kernel
DMIC IP is used to connect up to 6 digital microphones directly to OMAP.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
arch/arm/boot/dts/omap4.dtsi | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi
index 4c43f3b..fb0287d 100644
--- a/arch/arm/boot/dts/omap4.dtsi
+++ b/arch/arm/boot/dts/omap4.dtsi
@@ -281,5 +281,14 @@
interrupt-parent = <&gic>;
ti,hwmods = "mcpdm";
};
+
+ dmic: dmic at 4012e000 {
+ compatible = "ti,omap4-dmic";
+ reg = <0x4012e000 0x7f>, /* MPU private access */
+ <0x4902e000 0x7f>; /* L3 Interconnect */
+ interrupts = <0 114 0x4>;
+ interrupt-parent = <&gic>;
+ ti,hwmods = "dmic";
+ };
};
};
--
1.7.8.6
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/7] arm/dts: omap4-sdp: Add fixed regulator to represent VBAT
2012-06-08 14:01 [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
2012-06-08 14:01 ` [PATCH 1/7] arm/dts: omap4: Add entry for OMAP McPDM IP Peter Ujfalusi
2012-06-08 14:02 ` [PATCH 2/7] arm/dts: omap4: Add entry for OMAP DMIC IP Peter Ujfalusi
@ 2012-06-08 14:02 ` Peter Ujfalusi
2012-06-08 14:02 ` [PATCH 4/7] arm/dts: omap4-sdp: Add support for twl6040 Peter Ujfalusi
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Peter Ujfalusi @ 2012-06-08 14:02 UTC (permalink / raw)
To: linux-arm-kernel
There are devices connected to VBAT.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
arch/arm/boot/dts/omap4-sdp.dts | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap4-sdp.dts b/arch/arm/boot/dts/omap4-sdp.dts
index e55d42a..4b51611 100644
--- a/arch/arm/boot/dts/omap4-sdp.dts
+++ b/arch/arm/boot/dts/omap4-sdp.dts
@@ -38,6 +38,14 @@
regulator-boot-on;
};
+ vbat: fixedregulator at 2 {
+ compatible = "regulator-fixed";
+ regulator-name = "VBAT";
+ regulator-min-microvolt = <3750000>;
+ regulator-max-microvolt = <3750000>;
+ regulator-boot-on;
+ };
+
leds {
compatible = "gpio-leds";
debug0 {
--
1.7.8.6
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/7] arm/dts: omap4-sdp: Add support for twl6040
2012-06-08 14:01 [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
` (2 preceding siblings ...)
2012-06-08 14:02 ` [PATCH 3/7] arm/dts: omap4-sdp: Add fixed regulator to represent VBAT Peter Ujfalusi
@ 2012-06-08 14:02 ` Peter Ujfalusi
2012-06-08 14:02 ` [PATCH 5/7] arm/dts: omap4-sdp: Enable audio support via device tree Peter Ujfalusi
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Peter Ujfalusi @ 2012-06-08 14:02 UTC (permalink / raw)
To: linux-arm-kernel
The twl6040 provides the audio and vibra support on OMAP4 SDP boards.
It is connected to i2c1 bus with 0x4b address.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
arch/arm/boot/dts/omap4-sdp.dts | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap4-sdp.dts b/arch/arm/boot/dts/omap4-sdp.dts
index 4b51611..f09d1f5 100644
--- a/arch/arm/boot/dts/omap4-sdp.dts
+++ b/arch/arm/boot/dts/omap4-sdp.dts
@@ -99,6 +99,31 @@
interrupts = <0 7 4>; /* IRQ_SYS_1N cascaded to gic */
interrupt-parent = <&gic>;
};
+
+ twl6040: twl at 4b {
+ compatible = "ti,twl6040";
+ reg = <0x4b>;
+ /* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
+ interrupts = <0 119 4>; /* IRQ_SYS_2N cascaded to gic */
+ interrupt-parent = <&gic>;
+ ti,audpwron-gpio = <&gpio4 31 0>; /* gpio line 127 */
+
+ vio-supply = <&v1v8>;
+ v2v1-supply = <&v2v1>;
+ enable-active-high;
+
+ /* regulators for vibra motor */
+ vddvibl-supply = <&vbat>;
+ vddvibr-supply = <&vbat>;
+
+ vibra {
+ /* Vibra driver, motor resistance parameters */
+ ti,vibldrv-res = <8>;
+ ti,vibrdrv-res = <3>;
+ ti,viblmotor-res = <10>;
+ ti,vibrmotor-res = <10>;
+ };
+ };
};
/include/ "twl6030.dtsi"
--
1.7.8.6
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 5/7] arm/dts: omap4-sdp: Enable audio support via device tree
2012-06-08 14:01 [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
` (3 preceding siblings ...)
2012-06-08 14:02 ` [PATCH 4/7] arm/dts: omap4-sdp: Add support for twl6040 Peter Ujfalusi
@ 2012-06-08 14:02 ` Peter Ujfalusi
2012-06-08 14:02 ` [PATCH 6/7] arm/dts: omap4-panda: Audio support for PandaBoard 4430 Peter Ujfalusi
` (2 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Peter Ujfalusi @ 2012-06-08 14:02 UTC (permalink / raw)
To: linux-arm-kernel
On OMAP4 SDP the audio setup includes the twl6040 codec and digital
microphones.
Since OMAP4 SDP is a reference board it has all possible audio interfaces
connected. This information is passed via the ti,audio-routing
property.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
arch/arm/boot/dts/omap4-sdp.dts | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap4-sdp.dts b/arch/arm/boot/dts/omap4-sdp.dts
index f09d1f5..964f8ec 100644
--- a/arch/arm/boot/dts/omap4-sdp.dts
+++ b/arch/arm/boot/dts/omap4-sdp.dts
@@ -88,6 +88,41 @@
gpios = <&gpio5 11 0>; /* 139 */
};
};
+
+ sound {
+ compatible = "ti,abe-twl6040";
+ ti,model = "SDP4430";
+
+ ti,jack-detection = <1>;
+ ti,mclk-freq = <38400000>;
+
+ ti,mcpdm = <&mcpdm>;
+ ti,dmic = <&dmic>;
+
+ ti,twl6040 = <&twl6040>;
+
+ /* Audio routing */
+ ti,audio-routing =
+ "Headset Stereophone", "HSOL",
+ "Headset Stereophone", "HSOR",
+ "Earphone Spk", "EP",
+ "Ext Spk", "HFL",
+ "Ext Spk", "HFR",
+ "Line Out", "AUXL",
+ "Line Out", "AUXR",
+ "Vibrator", "VIBRAL",
+ "Vibrator", "VIBRAR",
+ "HSMIC", "Headset Mic",
+ "Headset Mic", "Headset Mic Bias",
+ "MAINMIC", "Main Handset Mic",
+ "Main Handset Mic", "Main Mic Bias",
+ "SUBMIC", "Sub Handset Mic",
+ "Sub Handset Mic", "Main Mic Bias",
+ "AFML", "Line In",
+ "AFMR", "Line In",
+ "DMic", "Digital Mic",
+ "Digital Mic", "Digital Mic1 Bias";
+ };
};
&i2c1 {
--
1.7.8.6
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 6/7] arm/dts: omap4-panda: Audio support for PandaBoard 4430
2012-06-08 14:01 [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
` (4 preceding siblings ...)
2012-06-08 14:02 ` [PATCH 5/7] arm/dts: omap4-sdp: Enable audio support via device tree Peter Ujfalusi
@ 2012-06-08 14:02 ` Peter Ujfalusi
2012-06-08 14:02 ` [PATCH 7/7] arm/dts: New dts file for PandaBoardES (4460) Peter Ujfalusi
2012-07-09 12:19 ` [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
7 siblings, 0 replies; 10+ messages in thread
From: Peter Ujfalusi @ 2012-06-08 14:02 UTC (permalink / raw)
To: linux-arm-kernel
PandaBoard uses twl6040 connected via McPDM for audio.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
arch/arm/boot/dts/omap4-panda.dts | 37 +++++++++++++++++++++++++++++++++++++
1 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap4-panda.dts b/arch/arm/boot/dts/omap4-panda.dts
index 1efe0c5..f57f5e8 100644
--- a/arch/arm/boot/dts/omap4-panda.dts
+++ b/arch/arm/boot/dts/omap4-panda.dts
@@ -32,6 +32,30 @@
linux,default-trigger = "mmc0";
};
};
+
+ sound: sound {
+ compatible = "ti,abe-twl6040";
+ ti,model = "PandaBoard";
+
+ ti,mclk-freq = <38400000>;
+
+ ti,mcpdm = <&mcpdm>;
+
+ ti,twl6040 = <&twl6040>;
+
+ /* Audio routing */
+ ti,audio-routing =
+ "Headset Stereophone", "HSOL",
+ "Headset Stereophone", "HSOR",
+ "Ext Spk", "HFL",
+ "Ext Spk", "HFR",
+ "Line Out", "AUXL",
+ "Line Out", "AUXR",
+ "HSMIC", "Headset Mic",
+ "Headset Mic", "Headset Mic Bias",
+ "AFML", "Line In",
+ "AFMR", "Line In";
+ };
};
&i2c1 {
@@ -43,6 +67,19 @@
interrupts = <0 7 4>; /* IRQ_SYS_1N cascaded to gic */
interrupt-parent = <&gic>;
};
+
+ twl6040: twl at 4b {
+ compatible = "ti,twl6040";
+ reg = <0x4b>;
+ /* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
+ interrupts = <0 119 4>; /* IRQ_SYS_2N cascaded to gic */
+ interrupt-parent = <&gic>;
+ ti,audpwron-gpio = <&gpio4 31 0>; /* gpio line 127 */
+
+ vio-supply = <&v1v8>;
+ v2v1-supply = <&v2v1>;
+ enable-active-high;
+ };
};
/include/ "twl6030.dtsi"
--
1.7.8.6
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 7/7] arm/dts: New dts file for PandaBoardES (4460)
2012-06-08 14:01 [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
` (5 preceding siblings ...)
2012-06-08 14:02 ` [PATCH 6/7] arm/dts: omap4-panda: Audio support for PandaBoard 4430 Peter Ujfalusi
@ 2012-06-08 14:02 ` Peter Ujfalusi
2012-07-09 12:19 ` [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
7 siblings, 0 replies; 10+ messages in thread
From: Peter Ujfalusi @ 2012-06-08 14:02 UTC (permalink / raw)
To: linux-arm-kernel
The 4430 and 4460 version of PandaBoard mostly the same with
exception at least in audio setup.
Use the omap4-panda.dts file as a base and only override the differences
between the revisions.
For audio it is the name of the sound card and the routing information.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
arch/arm/boot/dts/omap4-pandaES.dts | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/boot/dts/omap4-pandaES.dts
diff --git a/arch/arm/boot/dts/omap4-pandaES.dts b/arch/arm/boot/dts/omap4-pandaES.dts
new file mode 100644
index 0000000..d4ba43a
--- /dev/null
+++ b/arch/arm/boot/dts/omap4-pandaES.dts
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+/include/ "omap4-panda.dts"
+
+/* Audio routing is differnet between PandaBoard4430 and PandaBoardES */
+&sound {
+ ti,model = "PandaBoardES";
+
+ /* Audio routing */
+ ti,audio-routing =
+ "Headset Stereophone", "HSOL",
+ "Headset Stereophone", "HSOR",
+ "Ext Spk", "HFL",
+ "Ext Spk", "HFR",
+ "Line Out", "AUXL",
+ "Line Out", "AUXR",
+ "AFML", "Line In",
+ "AFMR", "Line In";
+};
--
1.7.8.6
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard)
2012-06-08 14:01 [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
` (6 preceding siblings ...)
2012-06-08 14:02 ` [PATCH 7/7] arm/dts: New dts file for PandaBoardES (4460) Peter Ujfalusi
@ 2012-07-09 12:19 ` Peter Ujfalusi
2012-07-09 12:50 ` Tony Lindgren
7 siblings, 1 reply; 10+ messages in thread
From: Peter Ujfalusi @ 2012-07-09 12:19 UTC (permalink / raw)
To: linux-arm-kernel
Hello,
On 06/08/2012 04:01 PM, Peter Ujfalusi wrote:
> Hello,
>
> The following series enable the audio functionality on OMAP4 based devices using
> twl6040 as audio codec.
>
> The series adds the needed bindings in the dts for the OMAP IPs, twl6040 MFD
> device and for the audio connection on the board.
>
> To be able to differentiate between PandaBoard and PandaBoardES (they have a bit
> different audio configuration) a new dts file has been created which only
> changes the audio properties different between the two boards.
>
> Patches for the drivers involved and the documentation related to dts sections
> has been either in 3.5 or heading for 3.6.
Probably this series has been overlooked, since I have not received feedback
on it.
Should I resend the series? Which tree should I use to rebase it?
Thank you,
P?ter
>
> Regards,
> Peter
> ---
> Peter Ujfalusi (7):
> arm/dts: omap4: Add entry for OMAP McPDM IP
> arm/dts: omap4: Add entry for OMAP DMIC IP
> arm/dts: omap4-sdp: Add fixed regulator to represent VBAT
> arm/dts: omap4-sdp: Add support for twl6040
> arm/dts: omap4-sdp: Enable audio support via device tree
> arm/dts: omap4-panda: Audio support for PandaBoard 4430
> arm/dts: New dts file for PandaBoardES (4460)
>
> arch/arm/boot/dts/omap4-panda.dts | 37 +++++++++++++++++++
> arch/arm/boot/dts/omap4-pandaES.dts | 24 ++++++++++++
> arch/arm/boot/dts/omap4-sdp.dts | 68 +++++++++++++++++++++++++++++++++++
> arch/arm/boot/dts/omap4.dtsi | 18 +++++++++
> 4 files changed, 147 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/boot/dts/omap4-pandaES.dts
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard)
2012-07-09 12:19 ` [PATCH 0/7] arm/dts: Audio support for OMAP4 devices (SDP, PandaBoard) Peter Ujfalusi
@ 2012-07-09 12:50 ` Tony Lindgren
0 siblings, 0 replies; 10+ messages in thread
From: Tony Lindgren @ 2012-07-09 12:50 UTC (permalink / raw)
To: linux-arm-kernel
* Peter Ujfalusi <peter.ujfalusi@ti.com> [120709 05:24]:
> Hello,
>
> On 06/08/2012 04:01 PM, Peter Ujfalusi wrote:
> > Hello,
> >
> > The following series enable the audio functionality on OMAP4 based devices using
> > twl6040 as audio codec.
> >
> > The series adds the needed bindings in the dts for the OMAP IPs, twl6040 MFD
> > device and for the audio connection on the board.
> >
> > To be able to differentiate between PandaBoard and PandaBoardES (they have a bit
> > different audio configuration) a new dts file has been created which only
> > changes the audio properties different between the two boards.
> >
> > Patches for the drivers involved and the documentation related to dts sections
> > has been either in 3.5 or heading for 3.6.
>
> Probably this series has been overlooked, since I have not received feedback
> on it.
> Should I resend the series? Which tree should I use to rebase it?
Hmm yeah looks good to me. I guess I was waiting for Benoit to apply or ack
them. I'll apply them into devel-dt branch.
Regards,
Tony
> Thank you,
> P?ter
>
> >
> > Regards,
> > Peter
> > ---
> > Peter Ujfalusi (7):
> > arm/dts: omap4: Add entry for OMAP McPDM IP
> > arm/dts: omap4: Add entry for OMAP DMIC IP
> > arm/dts: omap4-sdp: Add fixed regulator to represent VBAT
> > arm/dts: omap4-sdp: Add support for twl6040
> > arm/dts: omap4-sdp: Enable audio support via device tree
> > arm/dts: omap4-panda: Audio support for PandaBoard 4430
> > arm/dts: New dts file for PandaBoardES (4460)
> >
> > arch/arm/boot/dts/omap4-panda.dts | 37 +++++++++++++++++++
> > arch/arm/boot/dts/omap4-pandaES.dts | 24 ++++++++++++
> > arch/arm/boot/dts/omap4-sdp.dts | 68 +++++++++++++++++++++++++++++++++++
> > arch/arm/boot/dts/omap4.dtsi | 18 +++++++++
> > 4 files changed, 147 insertions(+), 0 deletions(-)
> > create mode 100644 arch/arm/boot/dts/omap4-pandaES.dts
> >
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread