Commit 023e30fb authored by Adriana Reus's avatar Adriana Reus Committed by Jonathan Cameron

Documentation: devicetree: Add property for controlling power saving mode for the us5182 als sensor

Add a property to allow changing the default power-saving mode.
By default, at read raw the chip will activate and provide
one measurent, then it will shut itself down. However, the
chip can also work in "continuous" mode which may be more reliable
but is also more power consuming.
Signed-off-by: default avatarAdriana Reus <adriana.reus@intel.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent c3304c21
...@@ -7,13 +7,24 @@ Required properties: ...@@ -7,13 +7,24 @@ Required properties:
Optional properties: Optional properties:
- upisemi,glass-coef: glass attenuation factor - compensation factor of - upisemi,glass-coef: glass attenuation factor - compensation factor of
resolution 1000 for material transmittance. resolution 1000 for material transmittance.
- upisemi,dark-ths: array of 8 elements containing 16-bit thresholds (adc - upisemi,dark-ths: array of 8 elements containing 16-bit thresholds (adc
counts) corresponding to every scale. counts) corresponding to every scale.
- upisemi,upper-dark-gain: 8-bit dark gain compensation factor(4 int and 4 - upisemi,upper-dark-gain: 8-bit dark gain compensation factor(4 int and 4
fractional bits - Q4.4) applied when light > threshold fractional bits - Q4.4) applied when light > threshold
- upisemi,lower-dark-gain: 8-bit dark gain compensation factor(4 int and 4 - upisemi,lower-dark-gain: 8-bit dark gain compensation factor(4 int and 4
fractional bits - Q4.4) applied when light < threshold fractional bits - Q4.4) applied when light < threshold
- upisemi,continuous: This chip has two power modes: one-shot (chip takes one
measurement and then shuts itself down) and continuous (
chip takes continuous measurements). The one-shot mode is
more power-friendly but the continuous mode may be more
reliable. If this property is specified the continuous
mode will be used instead of the default one-shot one for
raw reads.
If the optional properties are not specified these factors will default to the If the optional properties are not specified these factors will default to the
values in the below example. values in the below example.
The glass-coef defaults to no compensation for the covering material. The glass-coef defaults to no compensation for the covering material.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment