]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
mfd: as3722: documentation for as3722 adc-extcon
authorBibek Basu <bbasu@nvidia.com>
Thu, 26 Jun 2014 05:33:58 +0000 (11:03 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Wed, 18 Mar 2015 18:58:29 +0000 (11:58 -0700)
Add documentation for as3722 adc-extcon feature support

Change-Id: I626eafb737c4b84b9aa781e1b343ce42b259756f
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: http://git-master/r/428717
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Documentation/devicetree/bindings/mfd/as3722.txt

index a5e88c658dd8425d61193164232959a9a9a1f265..55b52ecda2a692efa386a365bfe6eea9a5457b6f 100644 (file)
@@ -168,6 +168,29 @@ functionality
 ams,system-power-controller: Boolean, to enable the power off functionality
         through this device.
 
+ADC-Extcon:
+===========
+AS3722 supports 10 bit ADC for measuring several voltages and currents to
+perform function like battery monitoring, temperature supervision, button press
+detection, etc. There are two convertor internally. ADC0 is binded to iio framework
+for all consumers of IIO. ADC1 is configured during boot for threshold setting and
+mode setting. Convertor works time multiplexed.
+Extcon is AS3722 USB comparator used on ADC1 convertor.
+Following are properties which is needed:
+    Required properties:
+    -------------------
+       - #io-channel-cells = Number of cells in an IIO specifier; Its set to 1 as as3722
+                            has multiple adc channels
+
+    Optional properties:
+    -------------------
+        - extcon-name: Name of extcon connection.
+       - ams,enable-adc1-continuous-mode: bool to select continious mode.
+       - ams,enable-low-voltage-range: boot to select low voltage range.
+       - ams,adc-channel: ADC channel to be used.
+       - ams,hi-threshold: higher threshold limit for detection.
+       - ams,low-threshold: lower threshold limit for detection.
+
 Example:
 --------
 #include <dt-bindings/mfd/as3722.h>