aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2017-11-29 12:13:52 -0500
committerMark Brown <broonie@kernel.org>2017-11-30 07:22:07 -0500
commitf00e0030bcbf49936d265330f6e0b8c739ad90c3 (patch)
treeabd90c9b35f5f548f09c7c0265d8d2cad3931acb
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
ASoC: tlv320aic31xx: Rename property for reset GPIO
The property used to specify a GPIO intended for reset is "reset-gpios", but this binding uses "gpio-reset". It is not compatible with newer methods used to fetch GPIO pins and to prevent the spread of this error to other bindings let's rename to be more standard. We also standardize the pin as active-low, different device trees have marked the GPIO different ways, luckily the driver currently uses the low-level GPIO set function which does not respect the active-low flag, but future changes may change this. This is an active-low reset, mark it as such. Lastly, add an example of use for this property. [Rewrote the title & first paragraph of the commit message for clarity -- broonie] Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/sound/tlv320aic31xx.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/sound/tlv320aic31xx.txt b/Documentation/devicetree/bindings/sound/tlv320aic31xx.txt
index 6fbba562eaa7..5b3c33bb99e5 100644
--- a/Documentation/devicetree/bindings/sound/tlv320aic31xx.txt
+++ b/Documentation/devicetree/bindings/sound/tlv320aic31xx.txt
@@ -22,7 +22,7 @@ Required properties:
22 22
23Optional properties: 23Optional properties:
24 24
25- gpio-reset - gpio pin number used for codec reset 25- reset-gpios - GPIO specification for the active low RESET input.
26- ai31xx-micbias-vg - MicBias Voltage setting 26- ai31xx-micbias-vg - MicBias Voltage setting
27 1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V 27 1 or MICBIAS_2_0V - MICBIAS output is powered to 2.0V
28 2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V 28 2 or MICBIAS_2_5V - MICBIAS output is powered to 2.5V
@@ -30,6 +30,10 @@ Optional properties:
30 If this node is not mentioned or if the value is unknown, then 30 If this node is not mentioned or if the value is unknown, then
31 micbias is set to 2.0V. 31 micbias is set to 2.0V.
32 32
33Deprecated properties:
34
35- gpio-reset - gpio pin number used for codec reset
36
33CODEC output pins: 37CODEC output pins:
34 * HPL 38 * HPL
35 * HPR 39 * HPR
@@ -48,6 +52,7 @@ CODEC input pins:
48The pins can be used in referring sound node's audio-routing property. 52The pins can be used in referring sound node's audio-routing property.
49 53
50Example: 54Example:
55#include <dt-bindings/gpio/gpio.h>
51#include <dt-bindings/sound/tlv320aic31xx-micbias.h> 56#include <dt-bindings/sound/tlv320aic31xx-micbias.h>
52 57
53tlv320aic31xx: tlv320aic31xx@18 { 58tlv320aic31xx: tlv320aic31xx@18 {
@@ -56,6 +61,8 @@ tlv320aic31xx: tlv320aic31xx@18 {
56 61
57 ai31xx-micbias-vg = <MICBIAS_OFF>; 62 ai31xx-micbias-vg = <MICBIAS_OFF>;
58 63
64 reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
65
59 HPVDD-supply = <&regulator>; 66 HPVDD-supply = <&regulator>;
60 SPRVDD-supply = <&regulator>; 67 SPRVDD-supply = <&regulator>;
61 SPLVDD-supply = <&regulator>; 68 SPLVDD-supply = <&regulator>;