Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: omap-dmic: Add device tree bindings

Device tree support for OMAP4+ dmic 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>

authored by

Peter Ujfalusi and committed by
Liam Girdwood
2ec1be37 7cb8a1b5

+29
+21
Documentation/devicetree/bindings/sound/omap-dmic.txt
··· 1 + * Texas Instruments OMAP4+ Digital Microphone Module 2 + 3 + Required properties: 4 + - compatible: "ti,omap4-dmic" 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 DMIC 9 + - interrupt-parent: The parent interrupt controller 10 + - ti,hwmods: Name of the hwmod associated with OMAP dmic IP 11 + 12 + Example: 13 + 14 + dmic: dmic@4012e000 { 15 + compatible = "ti,omap4-dmic"; 16 + reg = <0x4012e000 0x7f>, /* MPU private access */ 17 + <0x4902e000 0x7f>; /* L3 Interconnect */ 18 + interrupts = <0 114 0x4>; 19 + interrupt-parent = <&gic>; 20 + ti,hwmods = "dmic"; 21 + };
+8
sound/soc/omap/omap-dmic.c
··· 32 32 #include <linux/io.h> 33 33 #include <linux/slab.h> 34 34 #include <linux/pm_runtime.h> 35 + #include <linux/of_device.h> 35 36 #include <plat/dma.h> 36 37 37 38 #include <sound/core.h> ··· 529 528 return 0; 530 529 } 531 530 531 + static const struct of_device_id omap_dmic_of_match[] = { 532 + { .compatible = "ti,omap4-dmic", }, 533 + { } 534 + }; 535 + MODULE_DEVICE_TABLE(of, omap_dmic_of_match); 536 + 532 537 static struct platform_driver asoc_dmic_driver = { 533 538 .driver = { 534 539 .name = "omap-dmic", 535 540 .owner = THIS_MODULE, 541 + .of_match_table = omap_dmic_of_match, 536 542 }, 537 543 .probe = asoc_dmic_probe, 538 544 .remove = __devexit_p(asoc_dmic_remove),