]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ASoC: omap-mcpdm: Add device tree bindings
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 15 Nov 2011 09:32:14 +0000 (11:32 +0200)
committerLiam Girdwood <lrg@ti.com>
Tue, 22 May 2012 16:33:19 +0000 (17:33 +0100)
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>
Documentation/devicetree/bindings/sound/omap-mcpdm.txt [new file with mode: 0644]
sound/soc/omap/omap-mcpdm.c

diff --git a/Documentation/devicetree/bindings/sound/omap-mcpdm.txt b/Documentation/devicetree/bindings/sound/omap-mcpdm.txt
new file mode 100644 (file)
index 0000000..0741dff
--- /dev/null
@@ -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";
+};
index 39705561131a6c10f4a62a486a31208ccbe075a4..59d47ab5b15d72dd996cb13b4a06f274d961d7df 100644 (file)
@@ -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,