aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2017-11-29 12:13:53 -0500
committerMark Brown <broonie@kernel.org>2017-11-30 07:26:33 -0500
commit943293232ca45988ba0aa693b51025c58e1189ca (patch)
tree5dd80612d8e06e12a2395f3e00226e04d488aa85
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
ASoC: tlv320aic3x: 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 title & first paragraph for clarity & accuracy -- 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/tlv320aic3x.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/sound/tlv320aic3x.txt b/Documentation/devicetree/bindings/sound/tlv320aic3x.txt
index ba5b45c483f5..9796c4639262 100644
--- a/Documentation/devicetree/bindings/sound/tlv320aic3x.txt
+++ b/Documentation/devicetree/bindings/sound/tlv320aic3x.txt
@@ -17,7 +17,7 @@ Required properties:
17 17
18Optional properties: 18Optional properties:
19 19
20- gpio-reset - gpio pin number used for codec reset 20- reset-gpios - GPIO specification for the active low RESET input.
21- ai3x-gpio-func - <array of 2 int> - AIC3X_GPIO1 & AIC3X_GPIO2 Functionality 21- ai3x-gpio-func - <array of 2 int> - AIC3X_GPIO1 & AIC3X_GPIO2 Functionality
22 - Not supported on tlv320aic3104 22 - Not supported on tlv320aic3104
23- ai3x-micbias-vg - MicBias Voltage required. 23- ai3x-micbias-vg - MicBias Voltage required.
@@ -34,6 +34,10 @@ Optional properties:
34- AVDD-supply, IOVDD-supply, DRVDD-supply, DVDD-supply : power supplies for the 34- AVDD-supply, IOVDD-supply, DRVDD-supply, DVDD-supply : power supplies for the
35 device as covered in Documentation/devicetree/bindings/regulator/regulator.txt 35 device as covered in Documentation/devicetree/bindings/regulator/regulator.txt
36 36
37Deprecated properties:
38
39- gpio-reset - gpio pin number used for codec reset
40
37CODEC output pins: 41CODEC output pins:
38 * LLOUT 42 * LLOUT
39 * RLOUT 43 * RLOUT
@@ -61,10 +65,14 @@ The pins can be used in referring sound node's audio-routing property.
61 65
62Example: 66Example:
63 67
68#include <dt-bindings/gpio/gpio.h>
69
64tlv320aic3x: tlv320aic3x@1b { 70tlv320aic3x: tlv320aic3x@1b {
65 compatible = "ti,tlv320aic3x"; 71 compatible = "ti,tlv320aic3x";
66 reg = <0x1b>; 72 reg = <0x1b>;
67 73
74 reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
75
68 AVDD-supply = <&regulator>; 76 AVDD-supply = <&regulator>;
69 IOVDD-supply = <&regulator>; 77 IOVDD-supply = <&regulator>;
70 DRVDD-supply = <&regulator>; 78 DRVDD-supply = <&regulator>;