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

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>

authored by

Peter Ujfalusi and committed by
Liam Girdwood
7cb8a1b5 ce37f5ea

+29
+21
Documentation/devicetree/bindings/sound/omap-mcpdm.txt
··· 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 + };
+8
sound/soc/omap/omap-mcpdm.c
··· 33 33 #include <linux/irq.h> 34 34 #include <linux/slab.h> 35 35 #include <linux/pm_runtime.h> 36 + #include <linux/of_device.h> 36 37 37 38 #include <sound/core.h> 38 39 #include <sound/pcm.h> ··· 508 507 return 0; 509 508 } 510 509 510 + static const struct of_device_id omap_mcpdm_of_match[] = { 511 + { .compatible = "ti,omap4-mcpdm", }, 512 + { } 513 + }; 514 + MODULE_DEVICE_TABLE(of, omap_mcpdm_of_match); 515 + 511 516 static struct platform_driver asoc_mcpdm_driver = { 512 517 .driver = { 513 518 .name = "omap-mcpdm", 514 519 .owner = THIS_MODULE, 520 + .of_match_table = omap_mcpdm_of_match, 515 521 }, 516 522 517 523 .probe = asoc_mcpdm_probe,