summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorSri Krishna chowdary <schowdary@nvidia.com>2014-02-19 19:00:13 +0530
committerSachin Nikam <snikam@nvidia.com>2014-03-03 01:27:36 -0800
commitdd8d439a09c0bf12e31c8a6cbd47b2df238bd087 (patch)
treec8c7a2b5f5b08c3618af090c6f6bcf3818323796 /Documentation
parent5a2fc3db0734e778b8e460cb4a001eca0b5d1b63 (diff)
staging: iio: light: max44005: configure gain
- Add support to configure gain from dt - Also get als_resolution from dt - Add als_resolution sysfs - Add dt bindings for max44005 Bug 1462476 Change-Id: I58f05a0971cf063ab14f4cd331b30e537cf989a5 Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com> Reviewed-on: http://git-master/r/369337 (cherry picked from commit 0928174f846de5e6ffce0dee31c3a538ea8fadfe) Reviewed-on: http://git-master/r/374281 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/staging/iio/light/max44006-als.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/staging/iio/light/max44006-als.txt b/Documentation/devicetree/bindings/staging/iio/light/max44006-als.txt
new file mode 100644
index 000000000000..8eef8f3208f7
--- /dev/null
+++ b/Documentation/devicetree/bindings/staging/iio/light/max44006-als.txt
@@ -0,0 +1,20 @@
+* MAX44006 ambient light sensor
+
+Required properties:
+- compatible: must be "maxim,max44006"
+- reg: i2c address of the device. It should be 0x44.
+- vcc-supply: regulator supply for the chip
+
+Optional propertied:
+- maxim,gain: integer value specifying the gain factor per lsb.
+- maxim,als-resolution: conversion factor from sensor raw units to lux.
+
+Example:
+
+ max44006@44 {
+ compatible = "maxim,max44006";
+ reg = <0x44>;
+ vcc-supply = <&palmas_smps8>;
+ maxim,gain = <1>;
+ maxim,als-resolution = "0.75";
+ };