diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-11-15 04:32:14 -0500 |
---|---|---|
committer | Liam Girdwood <lrg@ti.com> | 2012-05-22 12:33:19 -0400 |
commit | 7cb8a1b5bae163c7aa746ffc02a641df6ed32f73 (patch) | |
tree | a30c451156718e5b66df31ff9a5411ef9ccf6560 | |
parent | ce37f5ea4b77171952aacd829e8f346b78191a7b (diff) |
ASoC: omap-mcpdm: Add device tree bindings
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>
Signed-off-by: Liam Girdwood <lrg@ti.com>
-rw-r--r-- | Documentation/devicetree/bindings/sound/omap-mcpdm.txt | 21 | ||||
-rw-r--r-- | sound/soc/omap/omap-mcpdm.c | 8 |
2 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/omap-mcpdm.txt b/Documentation/devicetree/bindings/sound/omap-mcpdm.txt new file mode 100644 index 000000000000..0741dff048dd --- /dev/null +++ b/Documentation/devicetree/bindings/sound/omap-mcpdm.txt | |||
@@ -0,0 +1,21 @@ | |||
1 | * Texas Instruments OMAP4+ McPDM | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "ti,omap4-mcpdm" | ||
5 | - reg: Register location and size as an array: | ||
6 | <MPU access base address, size>, | ||
7 | <L3 interconnect address, size>; | ||
8 | - interrupts: Interrupt number for McPDM | ||
9 | - interrupt-parent: The parent interrupt controller | ||
10 | - ti,hwmods: Name of the hwmod associated to the McPDM | ||
11 | |||
12 | Example: | ||
13 | |||
14 | mcpdm: mcpdm@40132000 { | ||
15 | compatible = "ti,omap4-mcpdm"; | ||
16 | reg = <0x40132000 0x7f>, /* MPU private access */ | ||
17 | <0x49032000 0x7f>; /* L3 Interconnect */ | ||
18 | interrupts = <0 112 0x4>; | ||
19 | interrupt-parent = <&gic>; | ||
20 | ti,hwmods = "mcpdm"; | ||
21 | }; | ||
diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c index 39705561131a..59d47ab5b15d 100644 --- a/sound/soc/omap/omap-mcpdm.c +++ b/sound/soc/omap/omap-mcpdm.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/irq.h> | 33 | #include <linux/irq.h> |
34 | #include <linux/slab.h> | 34 | #include <linux/slab.h> |
35 | #include <linux/pm_runtime.h> | 35 | #include <linux/pm_runtime.h> |
36 | #include <linux/of_device.h> | ||
36 | 37 | ||
37 | #include <sound/core.h> | 38 | #include <sound/core.h> |
38 | #include <sound/pcm.h> | 39 | #include <sound/pcm.h> |
@@ -507,10 +508,17 @@ static int __devexit asoc_mcpdm_remove(struct platform_device *pdev) | |||
507 | return 0; | 508 | return 0; |
508 | } | 509 | } |
509 | 510 | ||
511 | static const struct of_device_id omap_mcpdm_of_match[] = { | ||
512 | { .compatible = "ti,omap4-mcpdm", }, | ||
513 | { } | ||
514 | }; | ||
515 | MODULE_DEVICE_TABLE(of, omap_mcpdm_of_match); | ||
516 | |||
510 | static struct platform_driver asoc_mcpdm_driver = { | 517 | static struct platform_driver asoc_mcpdm_driver = { |
511 | .driver = { | 518 | .driver = { |
512 | .name = "omap-mcpdm", | 519 | .name = "omap-mcpdm", |
513 | .owner = THIS_MODULE, | 520 | .owner = THIS_MODULE, |
521 | .of_match_table = omap_mcpdm_of_match, | ||
514 | }, | 522 | }, |
515 | 523 | ||
516 | .probe = asoc_mcpdm_probe, | 524 | .probe = asoc_mcpdm_probe, |