summaryrefslogtreecommitdiff
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorYunfan Zhang <yunfanz@nvidia.com>2013-12-10 10:47:50 +0800
committerNitin Kumbhar <nkumbhar@nvidia.com>2013-12-18 01:19:31 -0800
commit15a16c16fd940d1a01caa432742d2c6483f79b05 (patch)
treed4a308107d54457191487b63200578cfd8cd9099 /Documentation/devicetree
parent23d7de2c8bbd92c7ec50148448cd4600c6a30d1f (diff)
iio:light:jsa1127: add integration time DT support
1)add intergration time DT support 2)clean up DT parsing(naming and API) 3)add binding doc Bug 1422148 Change-Id: I0068792f9c3afa972702352a3b512b3fd4ca1c77 Signed-off-by: Yunfan Zhang <yunfanz@nvidia.com> Reviewed-on: http://git-master/r/340211 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r--Documentation/devicetree/bindings/input/solteam-jsa1127.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/solteam-jsa1127.txt b/Documentation/devicetree/bindings/input/solteam-jsa1127.txt
new file mode 100644
index 000000000000..8fb44222656a
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/solteam-jsa1127.txt
@@ -0,0 +1,29 @@
+* Solteam Opto Light Sensor JSA-1127
+
+Required properties:
+- compatible: should be from the list below
+ "solteam-opto,jsa1127"
+- reg: I2C Address
+- solteam-opt,rint: resistor for adjusting integration time
+- solteam-opt,integration-time: integration time
+- solteam-opt,use-internal-integration-time: switch to en/disable
+ using internal integration time
+ 0: disable
+ 1: enable
+- solteam-opt,tint-coeff: integration time coefficient
+- solteam-opt,noisy: noisy option will make driver report values in
+ random variations to make ALS's applications working normally
+ 0: disable
+ 1: enable
+
+Example:
+
+jsa1127@39 {
+ compatible = "solteam-opto,jsa1127";
+ reg = <0x39>;
+ solteam-opt,rint = <100>;
+ solteam-opt,integration-time = <200>;
+ solteam-opt,use-internal-integration-timing = <1>;
+ solteam-opt,tint-coeff = <22>;
+ solteam-opt,noisy = <1>;
+};