diff options
Diffstat (limited to 'Documentation')
-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 */ + }; + |