Some amplifier may not have a GPIO to control the power, but instead simply rely on the regulator to power up and down the amplifier. In order to support those setups, let's make the GPIO optional. Signed-off-by: Mylène Josserand <mylene.josserand@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Signed-off-by: Mark Brown <broonie@kernel.org>
17 lines
486 B
Text
17 lines
486 B
Text
Simple Amplifier Audio Driver
|
|
|
|
Required properties:
|
|
- compatible : "dioo,dio2125" or "simple-audio-amplifier"
|
|
|
|
Optional properties:
|
|
- enable-gpios : the gpio connected to the enable pin of the simple amplifier
|
|
- VCC-supply : power supply for the device, as covered
|
|
in Documentation/devicetree/bindings/regulator/regulator.txt
|
|
|
|
Example:
|
|
|
|
amp: analog-amplifier {
|
|
compatible = "simple-audio-amplifier";
|
|
VCC-supply = <®ulator>;
|
|
enable-gpios = <&gpio GPIOH_3 0>;
|
|
};
|