Commit 5ce56832 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

ASoC: wm8962: Add device tree support

Add device tree support.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a49f0d1e
WM8962 audio CODEC
This device supports I2C only.
Required properties:
- compatible : "wlf,wm8962"
- reg : the I2C address of the device.
Example:
codec: wm8962@1a {
compatible = "wlf,wm8962";
reg = <0x1a>;
};
...@@ -3758,10 +3758,17 @@ static const struct i2c_device_id wm8962_i2c_id[] = { ...@@ -3758,10 +3758,17 @@ static const struct i2c_device_id wm8962_i2c_id[] = {
}; };
MODULE_DEVICE_TABLE(i2c, wm8962_i2c_id); MODULE_DEVICE_TABLE(i2c, wm8962_i2c_id);
static const struct of_device_id wm8962_of_match[] = {
{ .compatible = "wlf,wm8962", },
{ }
};
MODULE_DEVICE_TABLE(of, wm8962_of_match);
static struct i2c_driver wm8962_i2c_driver = { static struct i2c_driver wm8962_i2c_driver = {
.driver = { .driver = {
.name = "wm8962", .name = "wm8962",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.of_match_table = wm8962_of_match,
.pm = &wm8962_pm, .pm = &wm8962_pm,
}, },
.probe = wm8962_i2c_probe, .probe = wm8962_i2c_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment