Home
last modified time | relevance | path

Searched full:als (Results 1 – 25 of 58) sorted by relevance

123

/linux/Documentation/devicetree/bindings/leds/
H A Dleds-lm3532.txt31 Optional properties if ALS mode is used:
32 - ti,als-vmin - Minimum ALS voltage defined in Volts
33 - ti,als-vmax - Maximum ALS voltage defined in Volts
34 Per the data sheet the max ALS voltage is 2V and the min is 0V
41 - ti,als-avrg-time-us - Determines the length of time the device needs to
42 average the two ALS inputs. This is only used if
45 - ti,als-input-mode - Determines how the device uses the attached ALS
56 if the LED strings are controlled by the ALS.
59 0x01 - LED strings are ALS controlled
80 ti,als-vmin = <0>;
[all …]
/linux/drivers/iio/light/
H A DKconfig21 be called acpi-als.
80 tristate "APDS9160 combined als and proximity sensor"
113 tristate "Avago APDS9960 gesture/RGB/ALS/proximity sensor"
120 APDS9960 gesture/RGB/ALS/proximity sensor.
126 tristate "Broadcom APDS9999 ALS, RGB and proximity sensor"
130 ALS, RGB and proximity sensor with I2C interface.
132 This driver provides ambient light sensing (ALS/Lux), raw
251 tristate "Sharp GP2AP002 Proximity/ALS sensor"
255 Say Y here if you have a Sharp GP2AP002 proximity/ALS combo-chip
262 tristate "Sharp GP2AP020A00F Proximity/ALS sensor"
[all …]
H A Dhid-sensor-als.c30 struct hid_sensor_hub_attribute_info als[CHANNEL_SCAN_INDEX_MAX]; member
139 report_id = als_state->als[chan->scan_index].report_id; in als_read_raw()
140 min = als_state->als[chan->scan_index].logical_minimum; in als_read_raw()
144 report_id = als_state->als[chan->scan_index].report_id; in als_read_raw()
145 min = als_state->als[chan->scan_index].logical_minimum; in als_read_raw()
149 report_id = als_state->als[chan->scan_index].report_id; in als_read_raw()
150 min = als_state->als[chan->scan_index].logical_minimum; in als_read_raw()
154 report_id = als_state->als[chan->scan_index].report_id; in als_read_raw()
155 min = als_state->als[chan->scan_index].logical_minimum; in als_read_raw()
319 &st->als[i]); in als_parse_report()
[all …]
H A Dgp2ap020a00f.c59 #define GP2AP020A00F_ALS_REG 0x01 /* ALS related settings */
62 #define GP2AP020A00F_TL_L_REG 0x04 /* ALS: Threshold low LSB */
63 #define GP2AP020A00F_TL_H_REG 0x05 /* ALS: Threshold low MSB */
64 #define GP2AP020A00F_TH_L_REG 0x06 /* ALS: Threshold high LSB */
65 #define GP2AP020A00F_TH_H_REG 0x07 /* ALS: Threshold high MSB */
70 #define GP2AP020A00F_D0_L_REG 0x0c /* ALS result: Clear/Illuminance LSB */
71 #define GP2AP020A00F_D0_H_REG 0x0d /* ALS result: Clear/Illuminance MSB */
72 #define GP2AP020A00F_D1_L_REG 0x0e /* ALS result: IR LSB */
73 #define GP2AP020A00F_D1_H_REG 0x0f /* ALS result: IR LSB */
94 #define GP2AP020A00F_FLAG_A 0x02 /* ALS: interrupt result */
[all …]
H A Dtsl2591.c136 /* TSL2591 delay period between polls when checking for ALS valid flag */
174 * Period table is ALS persist cycle x integration time setting
176 * ALS cycles: 1, 2, 3, 5, 10, 20, 25, 30, 35, 40, 45, 50, 55, 60
337 * Sleep for ALS integration time to allow enough time or an ADC read in tsl2591_wait_adc_complete()
338 * cycle to complete. Check status after delay for ALS valid. in tsl2591_wait_adc_complete()
342 /* Check for status ALS valid flag for up to 100ms */ in tsl2591_wait_adc_complete()
348 dev_err(&client->dev, "Timed out waiting for valid ALS data\n"); in tsl2591_wait_adc_complete()
449 dev_err(&client->dev, "Failed to set als gain & int time\n"); in tsl2591_set_als_gain_int_time()
483 dev_err(&client->dev, "Failed to set als lower threshold\n"); in tsl2591_set_als_lower_threshold()
491 dev_err(&client->dev, "Failed to set als lower threshold\n"); in tsl2591_set_als_lower_threshold()
[all …]
H A Djsa1212.c91 /* JSA1212 ALS RNG REG bits */
118 bool als_en; /* ALS enable status */
123 /* ALS range idx to val mapping */
127 /* Enables or disables ALS function based on status */
175 dev_err(&data->client->dev, "als data read err\n"); in jsa1212_read_als_data()
404 dev_err(dev, "als resume failed\n"); in jsa1212_resume()
H A Dvl6180.c3 * vl6180.c - Support for STMicroelectronics VL6180 ALS, range and proximity
12 * ALS: < 1 Lux up to 100 kLux
356 /* one ALS count is 0.32 Lux @ gain 1, IT 100 ms */ in vl6180_read_raw()
648 /* Enable ALS and Range ready interrupts */ in vl6180_init()
667 /* Default ALS inter-measurement time: 10ms or 100000 mHz */ in vl6180_init()
674 /* ALS integration time: 100ms */ in vl6180_init()
680 /* ALS gain: 1 */ in vl6180_init()
770 MODULE_DESCRIPTION("STMicro VL6180 ALS, range and proximity sensor driver");
H A Dltr501.c26 #define LTR501_ALS_CONTR 0x80 /* ALS operation mode, SW reset */
29 #define LTR501_ALS_MEAS_RATE 0x85 /* ALS integ time, measurement rate*/
42 #define LTR501_ALS_THRESH_UP 0x97 /* 16 bit, ALS upper threshold */
43 #define LTR501_ALS_THRESH_LOW 0x99 /* 16 bit, ALS lower threshold */
44 #define LTR501_INTR_PRST 0x9e /* ps thresh, als thresh */
403 /* always read both ALS channels in given order */ in ltr501_read_als()
1461 dev_err(&client->dev, "ALS intr mode reg field init failed\n"); in ltr501_probe()
1475 dev_err(&client->dev, "ALS samp rate field init failed.\n"); in ltr501_probe()
1489 dev_err(&client->dev, "ALS prst reg field init failed\n"); in ltr501_probe()
H A Dus5182d.c47 * when ALS > DARK_TH --> ALS_Code = ALS - Upper(0x2A) * Dark
48 * when ALS < DARK_TH --> ALS_Code = ALS - Lower(0x29) * Dark
462 * us5182d_apply_scale - update the ALS scale
H A Dal3010.c119 * ALS ADC value is stored in two adjacent registers: in al3010_read_raw()
199 return dev_err_probe(dev, ret, "failed to init ALS\n"); in al3010_probe()
/linux/include/linux/
H A Dled-lm3530.h24 #define LM3530_ALS_AVRG_TIME_32ms (0) /* ALS Averaging Time */
42 /* ALS Resistor Select */
43 #define LM3530_ALS_IMPD_Z (0x00) /* ALS Impedance */
62 LM3530_BL_MODE_ALS, /* "als" */
66 /* ALS input select */
82 * @mode: mode of operation i.e. Manual, ALS or PWM
83 * @als_input_mode: select source of ALS input - ALS1/2 or average
86 * @als_avrg_time: ALS input averaging time
92 * @als_vmin: als input voltage calibrated for max brightness in mV
93 * @als_vmax: als input voltage calibrated for min brightness in mV
/linux/arch/s390/boot/
H A Dals.c12 static unsigned long als[] = { FACILITIES_ALS }; variable
36 for (i = 0; i < ARRAY_SIZE(als); i++) { in print_missing_facilities()
37 val = ~stfle_fac_list[i] & als[i]; in print_missing_facilities()
77 for (i = 0; i < ARRAY_SIZE(als); i++) { in verify_facilities()
78 if ((stfle_fac_list[i] & als[i]) != als[i]) in verify_facilities()
/linux/include/linux/platform_data/
H A Dtsl2772.h38 * @als_time: Integration time of the ALS channel ADCs in 2.73 ms
43 * @wait_time: Time between proximity and ALS cycles in 2.73
49 * @als_prox_config: The value of the ALS / Proximity configuration
51 * @als_cal_target: Known external ALS reading for calibration.
52 * @als_persistence: H/W Filters, Number of 'out of limits' ALS readings.
53 * @als_interrupt_en: Enable/Disable ALS interrupts
/linux/Documentation/misc-devices/
H A Dbh1770glc.rst21 ALS and proximity parts operates on their own, but they shares common I2C
23 but ALS side results are used to estimate reliability of the proximity sensor.
25 ALS produces 16 bit lux values. The chip contains interrupt logic to produce
30 8 bit. Driver supports only one channel. Driver uses ALS results to estimate
31 reliability of the proximity results. Thus ALS is always running while
/linux/Documentation/ABI/testing/
H A Dsysfs-class-backlight-driver-lm35336 Get the ALS output channel used as input in
7 ALS-current-control mode (0, 1), where:
19 Enable ALS-current-control mode (0, 1).
H A Dsysfs-class-led-driver-lm35336 Set the ALS output channel to use as input in
7 ALS-current-control mode (1, 2), where:
19 Enable ALS-current-control mode (0, 1).
H A Dsysfs-bus-iio-light-lm3533-als52 These values correspond to the ALS-mapper target registers for
53 ALS-mapper Y + 1.
H A Dsysfs-bus-iio-light-tsl27725 Causes an internal calibration of the als gain trim
H A Dsysfs-bus-iio-light-tsl25835 This property causes an internal calibration of the als gain trim
/linux/Documentation/devicetree/bindings/iio/light/
H A Dliteon,ltr390.yaml7 title: Lite-On LTR390 ALS and UV Sensor
10 The Lite-On LTR390 is an ALS (Ambient Light Sensor) and a UV sensor in a
H A Dcapella,cm3605.yaml18 This ALS and proximity sensor was one of the very first deployed in mobile
29 ASET line (drive low to activate the ALS, should be flagged
H A Dtsl2583.yaml7 title: AMS/TAOS Ambient Light Sensor (ALS)
H A Dsharp,gp2ap020a00f.yaml7 title: Sharp GP2AP020A00F I2C Proximity/ALS sensor
/linux/drivers/input/gameport/
H A Dns558.c151 { .id = "@P@0001" }, /* ALS 100 */
152 { .id = "@P@0020" }, /* ALS 200 */
153 { .id = "@P@1001" }, /* ALS 100+ */
154 { .id = "@P@2001" }, /* ALS 120 */
/linux/drivers/mfd/
H A Dlm3533-core.c48 .name = "lm3533-als",
384 if (!pdata->als) in lm3533_device_als_init()
387 lm3533_als_devs[0].platform_data = pdata->als; in lm3533_device_als_init()
388 lm3533_als_devs[0].pdata_size = sizeof(*pdata->als); in lm3533_device_als_init()
393 dev_err(lm3533->dev, "failed to add ALS device\n"); in lm3533_device_als_init()

123