mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-09 15:24:32 +08:00
dcad9f0312
Modify the RT5640 driver to parse platform data from device tree. Write a DT binding document to describe those properties. Slight re-ordering of rt5640_i2c_probe() to better fit the DT parsing. Since ldo1_en is optional, guard usage of it with gpio_is_valid(), rather than open-coding an if (gpio) check. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@linaro.org>
31 lines
642 B
Plaintext
31 lines
642 B
Plaintext
RT5640 audio CODEC
|
|
|
|
This device supports I2C only.
|
|
|
|
Required properties:
|
|
|
|
- compatible : "realtek,rt5640".
|
|
|
|
- reg : The I2C address of the device.
|
|
|
|
- interrupts : The CODEC's interrupt output.
|
|
|
|
Optional properties:
|
|
|
|
- realtek,in1-differential
|
|
- realtek,in2-differential
|
|
Boolean. Indicate MIC1/2 input are differential, rather than single-ended.
|
|
|
|
- realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
|
|
|
|
Example:
|
|
|
|
rt5640 {
|
|
compatible = "realtek,rt5640";
|
|
reg = <0x1c>;
|
|
interrupt-parent = <&gpio>;
|
|
interrupts = <TEGRA_GPIO(W, 3) GPIO_ACTIVE_HIGH>;
|
|
realtek,ldo1-en-gpios =
|
|
<&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_HIGH>;
|
|
};
|