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

staging: goldfish: audio: add devicetree bindings

Introduce devicetree bindings to the Goldfish staging audio driver.

Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Jin Qian <jinqian@android.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Greg Hackmann and committed by
Greg Kroah-Hartman
283ded10 76134b3f

+25 -1
+17
Documentation/devicetree/bindings/goldfish/audio.txt
··· 1 + Android Goldfish Audio 2 + 3 + Android goldfish audio device generated by android emulator. 4 + 5 + Required properties: 6 + 7 + - compatible : should contain "google,goldfish-audio" to match emulator 8 + - reg : <registers mapping> 9 + - interrupts : <interrupt mapping> 10 + 11 + Example: 12 + 13 + goldfish_audio@9030000 { 14 + compatible = "google,goldfish-audio"; 15 + reg = <0x9030000 0x100>; 16 + interrupts = <0x4>; 17 + };
+8 -1
drivers/staging/goldfish/goldfish_audio.c
··· 344 344 return 0; 345 345 } 346 346 347 + static const struct of_device_id goldfish_audio_of_match[] = { 348 + { .compatible = "google,goldfish-audio", }, 349 + {}, 350 + }; 351 + MODULE_DEVICE_TABLE(of, goldfish_audio_of_match); 352 + 347 353 static struct platform_driver goldfish_audio_driver = { 348 354 .probe = goldfish_audio_probe, 349 355 .remove = goldfish_audio_remove, 350 356 .driver = { 351 - .name = "goldfish_audio" 357 + .name = "goldfish_audio", 358 + .of_match_table = goldfish_audio_of_match, 352 359 } 353 360 }; 354 361