diff options
author | Joshua Cha <joshuac@nvidia.com> | 2013-03-27 17:49:18 +0900 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-04-11 17:14:17 -0700 |
commit | 981322cf0afccf45f3d43c8b8849f2de8f2dc2a7 (patch) | |
tree | 82b702a60b3ab38fca8d5ddd70c8a9ec5b7598d8 /Documentation | |
parent | b40efa54b1495a8ff3673f735be750434b49a18e (diff) |
input: misc: cm3217: Add cm3217 device tree support
Add device tree based initialization support for Capella cm3217 light sensor.
Bug 1173064
Bug 1260291
Change-Id: Ib3a6b3cf988b3a52dec57b53b28cc2b403baedb0
Signed-off-by: Joshua Cha <joshuac@nvidia.com>
Reviewed-on: http://git-master/r/214930
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/input/capella-cm3217.txt | 16 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/vendor-prefixes.txt | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/capella-cm3217.txt b/Documentation/devicetree/bindings/input/capella-cm3217.txt new file mode 100644 index 000000000000..d67f9ba820d2 --- /dev/null +++ b/Documentation/devicetree/bindings/input/capella-cm3217.txt @@ -0,0 +1,16 @@ +* Capella CM3217 light sensor + +Required properties: +- compatible: "capella,cm3217" +- reg : the I2C address of CM3217 +- levels : threshold ADC value array for each illuminance levels +- golden_adc : golden ADC value. if adc raw value on step = 0.3 lux, set this to 3. + +Example: + +cm3217@10 { + compatible = "capella,cm3217"; + reg = <0x10>; + levels = <10 160 225 320 640 1280 2600 5800 8000 10240>; + golden_adc = <3>; +}; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 82ac057a24a9..d7564379c98a 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -8,6 +8,7 @@ amcc Applied Micro Circuits Corporation (APM, formally AMCC) apm Applied Micro Circuits Corporation (APM) arm ARM Ltd. atmel Atmel Corporation +capella Capella Microsystems, Inc. cavium Cavium, Inc. chrp Common Hardware Reference Platform cortina Cortina Systems, Inc. |