diff mbox series

[1/2] ASoC: adau1977: Add MICBIAS example in DT bindings

Message ID 20190219141139.24216-2-bogdan.togorean@gmail.com
State Not Applicable, archived
Headers show
Series ASoC: adau1977: Add support for micbias in DT | expand

Checks

Context Check Description
robh/checkpatch success

Commit Message

Bogdan Togorean Feb. 19, 2019, 2:11 p.m. UTC
Add MICBIAS property to the optional devicetree bindings.

Signed-off-by: Bogdan Togorean <bogdan.togorean@gmail.com>
---
 Documentation/devicetree/bindings/sound/adi,adau1977.txt | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Rob Herring Feb. 22, 2019, 2:31 p.m. UTC | #1
On Tue, Feb 19, 2019 at 8:12 AM Bogdan Togorean
<bogdan.togorean@gmail.com> wrote:
>
> Add MICBIAS property to the optional devicetree bindings.
>
> Signed-off-by: Bogdan Togorean <bogdan.togorean@gmail.com>
> ---
>  Documentation/devicetree/bindings/sound/adi,adau1977.txt | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/sound/adi,adau1977.txt b/Documentation/devicetree/bindings/sound/adi,adau1977.txt
> index e79aeef73f28..87c16e6f2e7c 100644
> --- a/Documentation/devicetree/bindings/sound/adi,adau1977.txt
> +++ b/Documentation/devicetree/bindings/sound/adi,adau1977.txt
> @@ -23,6 +23,12 @@ Optional properties:
>   - DVDD-supply: supply voltage for the digital core, please consult
>                  Documentation/devicetree/bindings/regulator/regulator.txt
>
> +- adi,micbias: configures the voltage setting for the MICBIAS pin.
> +               Select 0/1/2/3/4/5/6/7/8 to specify MICBIAS voltage
> +               5V/5.5V/6V/6.5V/7V/7.5V/8V/8.5V/9V
> +               If not specified the default value will be "7" meaning 8.5 Volts.
> +               This property is only valid for the ADAU1977

There's no shortage of mic bias properties for codecs. We should
define a common property for this.

But looks like this is already applied, so what's one more...

Rob
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/sound/adi,adau1977.txt b/Documentation/devicetree/bindings/sound/adi,adau1977.txt
index e79aeef73f28..87c16e6f2e7c 100644
--- a/Documentation/devicetree/bindings/sound/adi,adau1977.txt
+++ b/Documentation/devicetree/bindings/sound/adi,adau1977.txt
@@ -23,6 +23,12 @@  Optional properties:
  - DVDD-supply: supply voltage for the digital core, please consult
                 Documentation/devicetree/bindings/regulator/regulator.txt
 
+- adi,micbias: configures the voltage setting for the MICBIAS pin.
+		Select 0/1/2/3/4/5/6/7/8 to specify MICBIAS voltage
+		5V/5.5V/6V/6.5V/7V/7.5V/8V/8.5V/9V
+		If not specified the default value will be "7" meaning 8.5 Volts.
+		This property is only valid for the ADAU1977
+
 For required properties on SPI, please consult
 Documentation/devicetree/bindings/spi/spi-bus.txt
 
@@ -40,6 +46,7 @@  Examples:
 		AVDD-supply = <&regulator>;
 		DVDD-supply = <&regulator_digital>;
 
+		adi,micbias = <3>;
 		reset_gpio = <&gpio 10 GPIO_ACTIVE_LOW>;
 	};