* [PATCH v2 0/2] ASoC: OMAP4 DMIC, McPDM device tree support
@ 2012-05-16 11:29 Peter Ujfalusi
2012-05-16 11:29 ` [PATCH v2 1/2] ASoC: omap-mcpdm: Add device tree bindings Peter Ujfalusi
2012-05-16 11:29 ` [PATCH v2 2/2] ASoC: omap-dmic: " Peter Ujfalusi
0 siblings, 2 replies; 5+ messages in thread
From: Peter Ujfalusi @ 2012-05-16 11:29 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown
Cc: Tony Lindgren, peter.ujfalusi, alsa-devel, Benoit Cousson,
devicetree-discuss
Hello,
Add DT support and the binding documentation for OMAP4+ DMIC, and McPDM ASoC dai
drivers.
Changes since v1:
- Ducumentation update: add properties for register address/size, interrupt
number (as Suggested by Mark and Tony).
I have not added Mark's acked-by since I think the changes are big enough from
v1.
Regards,
Peter
---
Peter Ujfalusi (2):
ASoC: omap-mcpdm: Add device tree bindings
ASoC: omap-dmic: Add device tree bindings
.../devicetree/bindings/sound/omap-dmic.txt | 21 ++++++++++++++++++++
.../devicetree/bindings/sound/omap-mcpdm.txt | 21 ++++++++++++++++++++
sound/soc/omap/omap-dmic.c | 8 +++++++
sound/soc/omap/omap-mcpdm.c | 8 +++++++
4 files changed, 58 insertions(+), 0 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/omap-dmic.txt
create mode 100644 Documentation/devicetree/bindings/sound/omap-mcpdm.txt
--
1.7.8.6
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] ASoC: omap-mcpdm: Add device tree bindings
2012-05-16 11:29 [PATCH v2 0/2] ASoC: OMAP4 DMIC, McPDM device tree support Peter Ujfalusi
@ 2012-05-16 11:29 ` Peter Ujfalusi
2012-05-16 11:45 ` Mark Brown
2012-05-16 11:29 ` [PATCH v2 2/2] ASoC: omap-dmic: " Peter Ujfalusi
1 sibling, 1 reply; 5+ messages in thread
From: Peter Ujfalusi @ 2012-05-16 11:29 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown
Cc: Tony Lindgren, peter.ujfalusi, alsa-devel, Benoit Cousson,
devicetree-discuss
Device tree support for OMAP4+ McPDM cpu dai driver.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
.../devicetree/bindings/sound/omap-mcpdm.txt | 21 ++++++++++++++++++++
sound/soc/omap/omap-mcpdm.c | 8 +++++++
2 files changed, 29 insertions(+), 0 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/omap-mcpdm.txt
diff --git a/Documentation/devicetree/bindings/sound/omap-mcpdm.txt b/Documentation/devicetree/bindings/sound/omap-mcpdm.txt
new file mode 100644
index 0000000..0741dff
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/omap-mcpdm.txt
@@ -0,0 +1,21 @@
+* Texas Instruments OMAP4+ McPDM
+
+Required properties:
+- compatible: "ti,omap4-mcpdm"
+- reg: Register location and size as an array:
+ <MPU access base address, size>,
+ <L3 interconnect address, size>;
+- interrupts: Interrupt number for McPDM
+- interrupt-parent: The parent interrupt controller
+- ti,hwmods: Name of the hwmod associated to the McPDM
+
+Example:
+
+mcpdm: mcpdm@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";
+};
diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c
index 3970556..59d47ab 100644
--- a/sound/soc/omap/omap-mcpdm.c
+++ b/sound/soc/omap/omap-mcpdm.c
@@ -33,6 +33,7 @@
#include <linux/irq.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
+#include <linux/of_device.h>
#include <sound/core.h>
#include <sound/pcm.h>
@@ -507,10 +508,17 @@ static int __devexit asoc_mcpdm_remove(struct platform_device *pdev)
return 0;
}
+static const struct of_device_id omap_mcpdm_of_match[] = {
+ { .compatible = "ti,omap4-mcpdm", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, omap_mcpdm_of_match);
+
static struct platform_driver asoc_mcpdm_driver = {
.driver = {
.name = "omap-mcpdm",
.owner = THIS_MODULE,
+ .of_match_table = omap_mcpdm_of_match,
},
.probe = asoc_mcpdm_probe,
--
1.7.8.6
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] ASoC: omap-dmic: Add device tree bindings
2012-05-16 11:29 [PATCH v2 0/2] ASoC: OMAP4 DMIC, McPDM device tree support Peter Ujfalusi
2012-05-16 11:29 ` [PATCH v2 1/2] ASoC: omap-mcpdm: Add device tree bindings Peter Ujfalusi
@ 2012-05-16 11:29 ` Peter Ujfalusi
2012-05-16 11:47 ` Mark Brown
1 sibling, 1 reply; 5+ messages in thread
From: Peter Ujfalusi @ 2012-05-16 11:29 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown
Cc: Tony Lindgren, peter.ujfalusi, alsa-devel, Benoit Cousson,
devicetree-discuss
Device tree support for OMAP4+ dmic cpu dai driver.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
.../devicetree/bindings/sound/omap-dmic.txt | 21 ++++++++++++++++++++
sound/soc/omap/omap-dmic.c | 8 +++++++
2 files changed, 29 insertions(+), 0 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/omap-dmic.txt
diff --git a/Documentation/devicetree/bindings/sound/omap-dmic.txt b/Documentation/devicetree/bindings/sound/omap-dmic.txt
new file mode 100644
index 0000000..fd8105f
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/omap-dmic.txt
@@ -0,0 +1,21 @@
+* Texas Instruments OMAP4+ Digital Microphone Module
+
+Required properties:
+- compatible: "ti,omap4-dmic"
+- reg: Register location and size as an array:
+ <MPU access base address, size>,
+ <L3 interconnect address, size>;
+- interrupts: Interrupt number for DMIC
+- interrupt-parent: The parent interrupt controller
+- ti,hwmods: Name of the hwmod associated with OMAP dmic IP
+
+Example:
+
+dmic: dmic@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";
+};
diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c
index 4dcb5a7..75f5dca 100644
--- a/sound/soc/omap/omap-dmic.c
+++ b/sound/soc/omap/omap-dmic.c
@@ -32,6 +32,7 @@
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/pm_runtime.h>
+#include <linux/of_device.h>
#include <plat/dma.h>
#include <sound/core.h>
@@ -528,10 +529,17 @@ static int __devexit asoc_dmic_remove(struct platform_device *pdev)
return 0;
}
+static const struct of_device_id omap_dmic_of_match[] = {
+ { .compatible = "ti,omap4-dmic", },
+ { }
+};
+MODULE_DEVICE_TABLE(of, omap_dmic_of_match);
+
static struct platform_driver asoc_dmic_driver = {
.driver = {
.name = "omap-dmic",
.owner = THIS_MODULE,
+ .of_match_table = omap_dmic_of_match,
},
.probe = asoc_dmic_probe,
.remove = __devexit_p(asoc_dmic_remove),
--
1.7.8.6
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] ASoC: omap-mcpdm: Add device tree bindings
2012-05-16 11:29 ` [PATCH v2 1/2] ASoC: omap-mcpdm: Add device tree bindings Peter Ujfalusi
@ 2012-05-16 11:45 ` Mark Brown
0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2012-05-16 11:45 UTC (permalink / raw)
To: Peter Ujfalusi
Cc: Tony Lindgren, devicetree-discuss, alsa-devel, Liam Girdwood,
Benoit Cousson
[-- Attachment #1.1: Type: text/plain, Size: 247 bytes --]
On Wed, May 16, 2012 at 02:29:55PM +0300, Peter Ujfalusi wrote:
> Device tree support for OMAP4+ McPDM cpu dai driver.
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] ASoC: omap-dmic: Add device tree bindings
2012-05-16 11:29 ` [PATCH v2 2/2] ASoC: omap-dmic: " Peter Ujfalusi
@ 2012-05-16 11:47 ` Mark Brown
0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2012-05-16 11:47 UTC (permalink / raw)
To: Peter Ujfalusi
Cc: Tony Lindgren, devicetree-discuss, alsa-devel, Liam Girdwood,
Benoit Cousson
[-- Attachment #1.1: Type: text/plain, Size: 181 bytes --]
On Wed, May 16, 2012 at 02:29:56PM +0300, Peter Ujfalusi wrote:
> Device tree support for OMAP4+ dmic cpu dai driver.
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-16 11:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 11:29 [PATCH v2 0/2] ASoC: OMAP4 DMIC, McPDM device tree support Peter Ujfalusi
2012-05-16 11:29 ` [PATCH v2 1/2] ASoC: omap-mcpdm: Add device tree bindings Peter Ujfalusi
2012-05-16 11:45 ` Mark Brown
2012-05-16 11:29 ` [PATCH v2 2/2] ASoC: omap-dmic: " Peter Ujfalusi
2012-05-16 11:47 ` Mark Brown
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).