From 981322cf0afccf45f3d43c8b8849f2de8f2dc2a7 Mon Sep 17 00:00:00 2001 From: Joshua Cha Date: Wed, 27 Mar 2013 17:49:18 +0900 Subject: 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 Reviewed-on: http://git-master/r/214930 Reviewed-by: Riham Haidar Tested-by: Riham Haidar --- .../devicetree/bindings/input/capella-cm3217.txt | 16 ++++++++++++++++ Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 17 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/capella-cm3217.txt (limited to 'Documentation') 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. -- cgit v1.2.3