diff options
author | steven <skao@nvidia.com> | 2014-04-14 17:02:22 +0800 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-05-27 18:45:53 -0700 |
commit | f79ae4b3c61c55df53e015e256c2c01b7c6e54b3 (patch) | |
tree | c78b90782e7f2cc830ac295a94c29bfbaaf03808 /Documentation/devicetree/bindings | |
parent | bf107f4559d461bcb6840dff65a914826197d469 (diff) |
staging: iio: cm3217: add optional value in DT.
Add below optional value can be overrid by DT for project.
If no add in DT will load default value.
1)integration-time.
Default:"480000"
2)max-range.
Default:"78643.2"
3)resolution.
Default:"307"
4)power-consumed.
Default:"1670"
Bug 1496947
Change-Id: I8718bf5636042bc801574c8e4177a12e5a948540
Signed-off-by: steven <skao@nvidia.com>
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/395755
Reviewed-on: http://git-master/r/411415
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Diffstat (limited to 'Documentation/devicetree/bindings')
-rw-r--r-- | Documentation/devicetree/bindings/staging/iio/light/cm3217-als.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/staging/iio/light/cm3217-als.txt b/Documentation/devicetree/bindings/staging/iio/light/cm3217-als.txt new file mode 100644 index 000000000000..2694b20bc1db --- /dev/null +++ b/Documentation/devicetree/bindings/staging/iio/light/cm3217-als.txt @@ -0,0 +1,28 @@ +* Capella CM3217 ambient light sensor + +Required properties: +- compatible: must be "capella,cm3217" +- reg: i2c address of the device. It should be 0x10. +- vdd-supply: regulator supply for the chip + +Optional propertied: +- illuminance,integration-time: minimum sampling period in nano seconds. + default: ""480000"" +- illuminance,max-range: maximum range of this sensor's value in SI units. + default: "78643.2" +- illuminance,resolution: conversion factor from sensor raw units to lux. + default: "307" +- illuminance,power-consumed: rough estimate of this sensor's power consumption in mA. + default: "1670" + +Example: + cm3217@10 { + compatible = "capella,cm3217"; + reg = <0x10>; + vdd-supply = <&palmas_smps9>; + illuminance,integration-time = "480000"; + illuminance,max-range = "78643.2"; + illuminance,resolution = "7675"; + illuminance,power-consumed = "1670"; /* milli Watt */ + }; + |