Home
last modified time | relevance | path

Searched +full:proximity +full:- +full:close +full:- +full:hysteresis (Results 1 – 7 of 7) sorted by relevance

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/light/
H A Dsharp,gp2ap002.yaml1 # 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:
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/light/
H A Dgp2ap002.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * GP2AP002A00F Ambient Light and Proximity Sensor
5 * GP2AP002S00F Proximity Sensor
14 * https://lore.kernel.org/lkml/1315556546-7445-1-git-send-email-dg77.kim@samsung.com/
17 * https://lore.kernel.org/linux-input/20190125175045.22576-1-pawel.mikolaj.chmiel@gmail.com/
18 * Based partly on code from the Samsung GT-S7710 by <mjchen@sta.samsung.com>
42 /* ------------------------------------------------------------------------ */
45 /* ------------------------------------------------------------------------ */
52 /* ------------------------------------------------------------------------ */
53 /* VO :Proximity sensing result(0: no detection, 1: detection) */
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dste-ux500-samsung-golden.dts1 // SPDX-License-Identifier: GPL-2.0-only
2 /dts-v1/;
4 #include "ste-db8500.dtsi"
5 #include "ste-ab8505.dtsi"
6 #include "ste-dbx5x0-pinctrl.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
13 * You need an intermediate, device-tree compatible bootloader
16 * There is a port of (mainline) U-Boot, see
[all …]
H A Dste-ux500-samsung-skomer.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung XCover 2 GT-S7710 also known as Skomer.
6 /dts-v1/;
7 #include "ste-db8500.dtsi"
8 #include "ste-ab8505.dtsi"
9 #include "ste-dbx5x0-pinctrl.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
15 model = "Samsung XCover 2 (GT-S7710)";
[all …]
H A Ds5pv210-aries.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
32 reserved-memory {
33 #address-cells = <1>;
34 #size-cells = <1>;
38 compatible = "shared-dma-pool";
39 no-map;
44 compatible = "shared-dma-pool";
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/proximity/
H A Dsx9500.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Driver for Semtech's SX9500 capacitive proximity/button solution.
77 #define SX9500_CHAN_MASK GENMASK(SX9500_NUM_CHANNELS - 1, 0)
86 * Last reading of the proximity status for each channel. We
171 regmap_reg_range(SX9500_REG_IRQ_MSK + 1, SX9500_REG_PROX_CTRL0 - 1),
172 regmap_reg_range(SX9500_REG_PROX_CTRL8 + 1, SX9500_REG_SENSOR_SEL - 1),
173 regmap_reg_range(SX9500_REG_OFFSET_LSB + 1, SX9500_REG_RESET - 1),
212 return regmap_update_bits(data->regmap, reg, bitmask, bitmask); in sx9500_inc_users()
218 (*counter)--; in sx9500_dec_users()
223 return regmap_update_bits(data->regmap, reg, bitmask, 0); in sx9500_dec_users()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/
H A Dindustrialio-core.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #define pr_fmt(fmt) "iio-core: " fmt
28 #include <linux/iio/iio-opaque.h>
63 [IIO_PROXIMITY] = "proximity",
169 [IIO_CHAN_INFO_HYSTERESIS] = "hysteresis",
190 return iio_dev_opaque->debugfs_dentry; in iio_get_debugfs_dentry()
196 * iio_find_channel_from_si() - get channel from its scan index
205 for (i = 0; i < indio_dev->num_channels; i++) in iio_find_channel_from_si()
206 if (indio_dev->channels[i].scan_index == si) in iio_find_channel_from_si()
207 return &indio_dev->channels[i]; in iio_find_channel_from_si()
[all …]