-
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.
This patch adds device tree support to the Nokia N900 audio driver and adds documentation for the DT binding. Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Mark Brown <broonie@linaro.org>
- Loading branch information
Sebastian Reichel
authored and
Mark Brown
committed
May 1, 2014
1 parent
f29b542
commit d052a3d
Showing
2 changed files
with
80 additions
and
0 deletions.
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,27 @@ | ||
* Nokia N900 audio setup | ||
|
||
Required properties: | ||
- compatible: Should contain "nokia,n900-audio" | ||
- nokia,cpu-dai: phandle for the McBSP node | ||
- nokia,audio-codec: phandles for the main TLV320AIC3X node and the | ||
auxiliary TLV320AIC3X node (in this order) | ||
- nokia,headphone-amplifier: phandle for the TPA6130A2 node | ||
- tvout-selection-gpios: GPIO for tvout selection | ||
- jack-detection-gpios: GPIO for jack detection | ||
- eci-switch-gpios: GPIO for ECI (Enhancement Control Interface) switch | ||
- speaker-amplifier-gpios: GPIO for speaker amplifier | ||
|
||
Example: | ||
|
||
sound { | ||
compatible = "nokia,n900-audio"; | ||
|
||
nokia,cpu-dai = <&mcbsp2>; | ||
nokia,audio-codec = <&tlv320aic3x>, <&tlv320aic3x_aux>; | ||
nokia,headphone-amplifier = <&tpa6130a2>; | ||
|
||
tvout-selection-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>; /* 40 */ | ||
jack-detection-gpios = <&gpio6 17 GPIO_ACTIVE_HIGH>; /* 177 */ | ||
eci-switch-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* 182 */ | ||
speaker-amplifier-gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH>; | ||
}; |
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