Lines Matching +full:proximity +full:- +full:far +full:- +full:hysteresis
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
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
20 - sharp,gp2ap002a00f
21 - sharp,gp2ap002s00f
28 description: an interrupt for proximity, usually a GPIO line
30 vdd-supply:
33 vio-supply:
36 io-channels:
40 io-channel-names:
43 sharp,proximity-far-hysteresis:
46 Hysteresis setting for "far" object detection, this setting is
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:
53 Hysteresis setting for "close" object detection, this setting is
54 device-unique and adjust the optical setting for proximity detection
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>;