-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: alc5623: Add device tree binding
Let the ALC5623 codec be instantiated from DT. Add a simple binding for the additional control register and the jack detect register. Also, add a prompt to the Kconfig entry for this CODEC, so that it can be selected. Since kirkwood-t5325.c will no longer be used, we need to be able to enable the CODEC in the mvebu_v5_defconfig etc. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Jason Cooper <jason@lakedaemon.net> Signed-off-by: Mark Brown <broonie@linaro.org>
- Loading branch information
Andrew Lunn
authored and
Mark Brown
committed
May 20, 2014
1 parent
c9eaa44
commit 7d6d478
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ALC5621/ALC5622/ALC5623 audio Codec | ||
|
||
Required properties: | ||
|
||
- compatible: "realtek,alc5623" | ||
- reg: the I2C address of the device. | ||
|
||
Optional properties: | ||
|
||
- add-ctrl: Default register value for Reg-40h, Additional Control | ||
Register. If absent or has the value of 0, the | ||
register is untouched. | ||
|
||
- jack-det-ctrl: Default register value for Reg-5Ah, Jack Detect | ||
Control Register. If absent or has value 0, the | ||
register is untouched. | ||
|
||
Example: | ||
|
||
alc5621: alc5621@1a { | ||
compatible = "alc5621"; | ||
reg = <0x1a>; | ||
add-ctrl = <0x3700>; | ||
jack-det-ctrl = <0x4810>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters