Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d8394ca authored by Greg Hackmann's avatar Greg Hackmann Committed by Amit Pundir
Browse files

BACKPORT: staging: goldfish: audio: add devicetree bindings



Introduce devicetree bindings to the Goldfish staging audio driver.

Signed-off-by: default avatarGreg Hackmann <ghackmann@google.com>
Signed-off-by: default avatarJin Qian <jinqian@android.com>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 283ded10312a3b75e384313f6f529ec2c636cf2c)

Change-Id: Ib75d3a4cac7353084a8da18a96fb298a759bacc0
parent 3ad8b042
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
Android Goldfish Audio

Android goldfish audio device generated by android emulator.

Required properties:

- compatible : should contain "google,goldfish-audio" to match emulator
- reg        : <registers mapping>
- interrupts : <interrupt mapping>

Example:

	goldfish_audio@9030000 {
		compatible = "google,goldfish-audio";
		reg = <0x9030000 0x100>;
		interrupts = <0x4>;
	};
+8 −1
Original line number Diff line number Diff line
@@ -344,11 +344,18 @@ static int goldfish_audio_remove(struct platform_device *pdev)
	return 0;
}

static const struct of_device_id goldfish_audio_of_match[] = {
	{ .compatible = "google,goldfish-audio", },
	{},
};
MODULE_DEVICE_TABLE(of, goldfish_audio_of_match);

static struct platform_driver goldfish_audio_driver = {
	.probe		= goldfish_audio_probe,
	.remove		= goldfish_audio_remove,
	.driver = {
		.name = "goldfish_audio"
		.name = "goldfish_audio",
		.of_match_table = goldfish_audio_of_match,
	}
};