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

ASoC: pxa: add DT bindings for pxa2xx-pcm

The bindings do not carry any resources, as the module only registers
the ASoC platform driver.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Daniel Mack and committed by
Mark Brown
c529ca4a a671468d

+26 -2
+15
Documentation/devicetree/bindings/sound/mrvl,pxa2xx-pcm.txt
··· 1 + DT bindings for ARM PXA2xx PCM platform driver 2 + 3 + This is just a dummy driver that registers the PXA ASoC platform driver. 4 + It does not have any resources assigned. 5 + 6 + Required properties: 7 + 8 + - compatible 'mrvl,pxa-pcm-audio' 9 + 10 + Example: 11 + 12 + pxa_pcm_audio: snd_soc_pxa_audio { 13 + compatible = "mrvl,pxa-pcm-audio"; 14 + }; 15 +
+11 -2
sound/soc/pxa/pxa2xx-pcm.c
··· 13 13 #include <linux/dma-mapping.h> 14 14 #include <linux/module.h> 15 15 #include <linux/dmaengine.h> 16 + #include <linux/of.h> 16 17 17 18 #include <sound/core.h> 18 19 #include <sound/soc.h> ··· 134 133 return 0; 135 134 } 136 135 136 + #ifdef CONFIG_OF 137 + static const struct of_device_id snd_soc_pxa_audio_match[] = { 138 + { .compatible = "mrvl,pxa-pcm-audio" }, 139 + { } 140 + }; 141 + #endif 142 + 137 143 static struct platform_driver pxa_pcm_driver = { 138 144 .driver = { 139 - .name = "pxa-pcm-audio", 140 - .owner = THIS_MODULE, 145 + .name = "pxa-pcm-audio", 146 + .owner = THIS_MODULE, 147 + .of_match_table = of_match_ptr(snd_soc_pxa_audio_match), 141 148 }, 142 149 143 150 .probe = pxa2xx_soc_platform_probe,