ASoC: pcm3168a: Document optional RST gpio
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 13 Nov 2019 12:47:33 +0000 (14:47 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 18 Nov 2019 13:09:13 +0000 (13:09 +0000)
On boards where the RST line is not pulled up, but it is connected to a
GPIO line this property must present in order to be able to enable the
codec.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20191113124734.27984-2-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/ti,pcm3168a.txt

index 5d9cb84c661d84115da207f4e0301ce503899712..f30aebc7603ad6d9d5adfc94ecd646bb764fa807 100644 (file)
@@ -25,6 +25,12 @@ Required properties:
 
 For required properties on SPI/I2C, consult SPI/I2C device tree documentation
 
+Optional properties:
+
+  - rst-gpios : Optional RST gpio line for the codec
+               RST = low: device power-down
+               RST = high: device is enabled
+
 Examples:
 
 i2c0: i2c0@0 {
@@ -34,6 +40,7 @@ i2c0: i2c0@0 {
        pcm3168a: audio-codec@44 {
                compatible = "ti,pcm3168a";
                reg = <0x44>;
+               rst-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
                clocks = <&clk_core CLK_AUDIO>;
                clock-names = "scki";
                VDD1-supply = <&supply3v3>;