| /linux/Documentation/devicetree/bindings/leds/ |
| H A D | leds-lm3532.txt | 31 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/leds/ |
| H A D | leds-lm3532.c | 99 * @config: value of ALS configuration register 102 * @als_avrg_time: ALS averaging time 103 * @als_input_mode: ALS input mode for brightness control 104 * @als_vmin: Minimum ALS voltage 105 * @als_vmax: Maximum ALS voltage 106 * @zone_lo: values of ALS lo ZB(Zone Boundary) registers 107 * @zone_hi: values of ALS hi ZB(Zone Boundary) registers 154 * @als_data: Pointer to the als data struct 449 struct lm3532_als_data *als = priv->als_data; in lm3532_als_configure() local 455 als_vmin = als->als_vmin; in lm3532_als_configure() [all …]
|
| H A D | leds-lm3530.c | 54 /* ALS Config Register Options */ 65 /* ALS Resistor Select */ 91 { "als", LM3530_BL_MODE_ALS }, 100 * @mode: mode of operation - manual, ALS, PWM 117 * @config : value of ALS configuration register 118 * @imp_sel : value of ALS resistor select register 119 * @zone : values of ALS ZB(Zone Boundary) registers 156 struct lm3530_als_data *als) in lm3530_als_configure() argument 176 als->zones[i] = (((als_vmin + LM3530_ALS_OFFSET_mV) + in lm3530_als_configure() 179 als->config = in lm3530_als_configure() [all …]
|
| /linux/include/linux/ |
| H A D | led-lm3530.h | 24 #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 D | als.c | 12 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 D | tsl2772.h | 38 * @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 D | bh1770glc.rst | 21 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
|
| H A D | apds990x.rst | 19 APDS990x is a combined ambient light and proximity sensor. ALS and proximity 20 functionality are highly connected. ALS measurement path must be running 23 ALS produces raw measurement values for two channels: Clear channel 34 ALS contains 4 different gain steps. Driver automatically
|
| /linux/drivers/iio/light/ |
| H A D | gp2ap020a00f.c | 59 #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 D | jsa1212.c | 92 /* JSA1212 ALS RNG REG bits */ 119 bool als_en; /* ALS enable status */ 124 /* ALS range idx to val mapping */ 128 /* Enables or disables ALS function based on status */ 176 dev_err(&data->client->dev, "als data read err\n"); in jsa1212_read_als_data() 405 dev_err(dev, "als resume failed\n"); in jsa1212_resume()
|
| H A D | isl76682.c | 58 u32 als; member 85 /* Need to wait for conversion time if ALS/IR mode enabled */ in isl76682_get() 110 if (chan->type == IIO_LIGHT && val2 != isl76682_range_table[i].als) in isl76682_write_raw() 153 *val2 = isl76682_range_table[i].als; in isl76682_read_raw()
|
| H A D | tsl2772.c | 301 ALS, enumerator 309 [tsl2571] = ALS, 314 [tsl2572] = ALS, 837 * Obtain and lock both ALS and PROX resources, determine and save device state 1148 /* ALS filter values are 1, 2, 3, 5, 10, 15, ..., 60 */ in tsl2772_write_event_value() 1211 /* ALS filter values are 1, 2, 3, 5, 10, 15, ..., 60 */ in tsl2772_read_event_value() 1457 [ALS] = { 1487 TSL2772_DEVICE_INFO(ALS), 1512 [ALS] = { 1562 .info = &tsl2772_device_info[ALS],
|
| H A D | al3010.c | 119 * ALS ADC value is stored in two adjacent registers: in al3010_read_raw() 198 return dev_err_probe(dev, ret, "failed to init ALS\n"); in al3010_probe()
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-backlight-driver-lm3533 | 6 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 D | sysfs-class-led-driver-lm3533 | 6 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 D | sysfs-bus-iio-light-lm3533-als | 52 These values correspond to the ALS-mapper target registers for 53 ALS-mapper Y + 1.
|
| H A D | sysfs-bus-iio-light-tsl2772 | 5 Causes an internal calibration of the als gain trim
|
| H A D | sysfs-bus-iio-light-tsl2583 | 5 This property causes an internal calibration of the als gain trim
|
| /linux/drivers/misc/ |
| H A D | bh1770glc.c | 24 #define BH1770_ALS_CONTROL 0x80 /* ALS operation mode control */ 30 #define BH1770_ALS_MEAS_RATE 0x86 /* ALS meas. rate at stand alone mode */ 33 #define BH1770_ALS_DATA_0 0x8c /* ALS DATA low byte */ 34 #define BH1770_ALS_DATA_1 0x8d /* ALS DATA high byte */ 43 #define BH1770_ALS_TH_UP_0 0x96 /* ALS upper threshold low byte */ 44 #define BH1770_ALS_TH_UP_1 0x97 /* ALS upper threshold high byte */ 45 #define BH1770_ALS_TH_LOW_0 0x98 /* ALS lower threshold low byte */ 46 #define BH1770_ALS_TH_LOW_1 0x99 /* ALS lower threshold high byte */ 397 * ALS is started always since proximity needs als results in bh1770_chip_on() 399 * Let's assume dark until the first ALS measurement is ready. in bh1770_chip_on() [all …]
|
| H A D | apds9802als.c | 3 * apds9802als.c - apds9802 ALS Driver 231 dev_info(&client->dev, "ALS chip found\n"); in apds9802als_probe() 307 MODULE_DESCRIPTION("Avago apds9802als ALS Driver");
|
| H A D | Kconfig | 335 tristate "Medfield Avago APDS9802 ALS Sensor module" 338 If you say yes here you get support for the ALS APDS9802 ambient 375 tristate "BH1770GLC / SFH7770 combined ALS - Proximity sensor" 385 tristate "APDS990X combined als and proximity sensors"
|
| /linux/Documentation/devicetree/bindings/iio/light/ |
| H A D | liteon,ltr390.yaml | 7 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 D | capella,cm3605.yaml | 18 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
|
| /linux/drivers/input/gameport/ |
| H A D | ns558.c | 151 { .id = "@P@0001", .driver_data = 0 }, /* ALS 100 */ 152 { .id = "@P@0020", .driver_data = 0 }, /* ALS 200 */ 153 { .id = "@P@1001", .driver_data = 0 }, /* ALS 100+ */ 154 { .id = "@P@2001", .driver_data = 0 }, /* ALS 120 */
|
| /linux/drivers/mfd/ |
| H A D | lm3533-core.c | 48 .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()
|