1* UPISEMI us5182d I2C ALS and Proximity sensor
2
3Required properties:
4- compatible: must be "upisemi,usd5182"
5- reg: the I2C address of the device
6
7Optional properties:
8- upisemi,glass-coef: glass attenuation factor - compensation factor of
9                      resolution 1000 for material transmittance.
10- upisemi,dark-ths: array of 8 elements containing 16-bit thresholds (adc
11                    counts) corresponding to every scale.
12- upisemi,upper-dark-gain: 8-bit dark gain compensation factor(4 int and 4
13                           fractional bits - Q4.4) applied when light > threshold
14- upisemi,lower-dark-gain: 8-bit dark gain compensation factor(4 int and 4
15                           fractional bits - Q4.4) applied when light < threshold
16
17If the optional properties are not specified these factors will default to the
18values in the below example.
19The glass-coef defaults to no compensation for the covering material.
20The threshold array defaults to experimental values that work with US5182D
21sensor on evaluation board - roughly between 12-32 lux.
22There will be no dark-gain compensation by default when ALS > thresh
23(0 * dark-gain), and a 1.35 compensation factor when ALS < thresh.
24
25Example:
26
27    usd5182@39 {
28                compatible = "upisemi,usd5182";
29                reg = <0x39>;
30                upisemi,glass-coef = < 1000 >;
31                upisemi,dark-ths = /bits/ 16 <170 200 512 512 800 2000 4000 8000>;
32                upisemi,upper-dark-gain = /bits/ 8 <0x00>;
33                upisemi,lower-dark-gain = /bits/ 8 <0x16>;
34    };
35