diff options
author | Jacek Anaszewski <j.anaszewski@samsung.com> | 2013-06-17 13:21:21 +0200 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:34:07 +0900 |
commit | b3affb48d86701c5fa1dc10221200cab8a3fdff8 (patch) | |
tree | ed30a3f6d70c6bd149a3924872bd09560fc70b57 /Documentation | |
parent | 99e398b0dcbb34fe8db1b8e7bdfc3cb170d9e60a (diff) | |
download | linux-3.10-b3affb48d86701c5fa1dc10221200cab8a3fdff8.tar.gz linux-3.10-b3affb48d86701c5fa1dc10221200cab8a3fdff8.tar.bz2 linux-3.10-b3affb48d86701c5fa1dc10221200cab8a3fdff8.zip |
iio: Add driver for the gp2ap002a00f light/proximity sensor
Add a new driver for the ambient light/proximity sensor
device. The driver exposes three channels: light_clear
light_ir and proximity. It also supports high and low
ambient light threshold event and proximity detection
event.
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/iio/light/gp2ap002a00f.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/light/gp2ap002a00f.txt b/Documentation/devicetree/bindings/iio/light/gp2ap002a00f.txt new file mode 100644 index 00000000000..23face7094b --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/gp2ap002a00f.txt @@ -0,0 +1,20 @@ +* Sharp GP2AP002A00F I2C Proximity/Opto sensor + +Required properties: + + - compatible : should be "sharp,gp2ap002a00f" + - reg : the I2C address of the light sensor + - interrupt-parent : phandle to the parent interrupt controller + - interrupts : should be INT interrupt pin + - vled-supply : VLED power supply, as covered + in Documentation/devicetree/bindings/regulator/regulator.txt + +Example: + +gp2ap002a00f@39 { + compatible = "sharp,gp2ap002a00f"; + reg = <0x39>; + interrupt-parent = <&gpx0>; + interrupts = <2 0>; + vled-supply = <...>; +}; |