ASoC: wm8962: Add device tree support
Subsystems (4)
PATCH 1/1 ASoC: wm8962: Add device tree support
From: Fabio Estevam <[email protected]>
Add device tree support.
Signed-off-by Fabio Estevam <[email protected]>
--- Documentation/devicetree/bindings/sound/wm8962.txt | 16 ++++++++++++++++ sound/soc/codecs/wm8962.c | 7 +++++++ 2 files changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/wm8962.txt
Documentation/devicetree/bindings/sound/wm8962.txt new file +16 -0
@@ -0,0 +1,16 @@ +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>; +};
sound/soc/codecs/wm8962.c +7 -0
@@ -3758,10 +3758,17 @@ static const struct i2c_device_id 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 = { .driver = { .name ="wm8962" , .owner =THIS_MODULE , + .of_match_table = wm8962_of_match, .pm = &wm8962_pm, }, .probe = wm8962_i2c_probe,
Signature · 1 line
1.7.9.5
Mark Brown
AppliedQuoted 3 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Add device tree support.
Applied, thanks.