From 15a16c16fd940d1a01caa432742d2c6483f79b05 Mon Sep 17 00:00:00 2001 From: Yunfan Zhang Date: Tue, 10 Dec 2013 10:47:50 +0800 Subject: 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 Reviewed-on: http://git-master/r/340211 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Nitin Kumbhar --- .../devicetree/bindings/input/solteam-jsa1127.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/solteam-jsa1127.txt (limited to 'Documentation/devicetree') 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>; +}; -- cgit v1.2.3