Lines Matching +full:light +full:- +full:sensor
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/iio/light/sharp,gp2ap002.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Sharp GP2AP002A00F and GP2AP002S00F proximity and ambient light sensors
10 - Linus Walleij <linus.walleij@linaro.org>
13 Proximity and ambient light sensor with IR LED for the proximity
14 sensing and an analog output for light intensity. The ambient light
15 sensor output is not available on the GP2AP002S00F variant.
20 - sharp,gp2ap002a00f
21 - sharp,gp2ap002s00f
30 vdd-supply:
33 vio-supply:
36 io-channels:
38 description: ALSOUT ADC channel to read the ambient light
40 io-channel-names:
43 sharp,proximity-far-hysteresis:
47 device-unique and adjust the optical setting for proximity detection
48 of a "far away" object in front of the sensor.
50 sharp,proximity-close-hysteresis:
54 device-unique and adjust the optical setting for proximity detection
55 of a "close" object in front of the sensor.
58 - compatible
59 - reg
60 - interrupts
61 - sharp,proximity-far-hysteresis
62 - sharp,proximity-close-hysteresis
67 - |
68 #include <dt-bindings/interrupt-controller/irq.h>
71 #address-cells = <1>;
72 #size-cells = <0>;
74 light-sensor@44 {
78 vdd-supply = <&vdd_regulator>;
79 vio-supply = <&vio_regulator>;
80 io-channels = <&adc_channel>;
81 io-channel-names = "alsout";
82 sharp,proximity-far-hysteresis = /bits/ 8 <0x2f>;
83 sharp,proximity-close-hysteresis = /bits/ 8 <0x0f>;