Lines Matching full:proximity

4  * light and proximity sensor
45 #define VCNL4010_PROX_RATE 0x82 /* Proximity rate */
46 #define VCNL4000_LED_CURRENT 0x83 /* IR LED current for proximity mode */
51 #define VCNL4000_PS_RESULT_HI 0x87 /* Proximity result register, MSB */
52 #define VCNL4000_PS_RESULT_LO 0x88 /* Proximity result register, LSB */
53 #define VCNL4000_PS_MEAS_FREQ 0x89 /* Proximity test signal frequency */
55 #define VCNL4000_PS_MOD_ADJ 0x8a /* Proximity modulator timing adjustment */
63 #define VCNL4200_PS_CONF1 0x03 /* Proximity configuration */
64 #define VCNL4200_PS_CONF3 0x04 /* Proximity configuration */
65 #define VCNL4040_PS_THDL_LM 0x06 /* Proximity threshold low */
66 #define VCNL4040_PS_THDH_LM 0x07 /* Proximity threshold high */
69 #define VCNL4200_PS_DATA 0x08 /* Proximity data */
79 #define VCNL4000_PS_RDY BIT(5) /* proximity data ready? */
81 #define VCNL4000_PS_OD BIT(3) /* start on-demand proximity measurement */
83 #define VCNL4000_PROX_EN BIT(1) /* start proximity measurement */
91 #define VCNL4040_PS_CONF2_PS_IT GENMASK(3, 1) /* Proximity integration time */
92 #define VCNL4040_CONF1_PS_PERS GENMASK(5, 4) /* Proximity interrupt persistence setting */
93 #define VCNL4040_PS_CONF2_PS_HD BIT(11) /* Proximity high definition */
94 #define VCNL4040_PS_CONF2_PS_INT GENMASK(9, 8) /* Proximity interrupt mode */
95 #define VCNL4040_PS_CONF3_MPS GENMASK(6, 5) /* Proximity multi pulse number */
96 #define VCNL4040_PS_MS_LED_I GENMASK(10, 8) /* Proximity current */
97 #define VCNL4040_PS_IF_AWAY BIT(8) /* Proximity event cross low threshold */
98 #define VCNL4040_PS_IF_CLOSE BIT(9) /* Proximity event cross high threshold */
106 #define VCNL4010_INT_PROX_EN BIT(3) /* Enable on proximity data ready */
111 #define VCNL4010_INT_PROXIMITY 3 /* Proximity data ready */
207 u8 ps_int; /* proximity interrupt mode */
403 /* Use 16 bits proximity sensor readings */ in vcnl4200_init()
414 /* Align proximity sensor sample rate to 16 bits data width */ in vcnl4200_init()
1425 /* Enable periodic measurement of proximity data. */ in vcnl4010_config_threshold()
1429 * Enable interrupts on threshold, for proximity data by in vcnl4010_config_threshold()
1984 dev_dbg(&client->dev, "%s Ambient light/proximity sensor, Rev: %02x\n", in vcnl4000_probe()
1987 if (device_property_read_u32(&client->dev, "proximity-near-level", in vcnl4000_probe()
2121 MODULE_DESCRIPTION("Vishay VCNL4000 proximity/ambient light sensor driver");