Searched +full:dark +full:- +full:ths (Results 1 – 4 of 4) sorted by relevance
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/light/ |
| D | us5182d.txt | 4 - compatible: must be "upisemi,usd5182" 5 - reg: the I2C address of the device 8 - upisemi,glass-coef: glass attenuation factor - compensation factor of 11 - upisemi,dark-ths: array of 8 elements containing 16-bit thresholds (adc 14 - upisemi,upper-dark-gain: 8-bit dark gain compensation factor(4 int and 4 15 fractional bits - Q4.4) applied when light > threshold 17 - upisemi,lower-dark-gain: 8-bit dark gain compensation factor(4 int and 4 18 fractional bits - Q4.4) applied when light < threshold 20 - upisemi,continuous: This chip has two power modes: one-shot (chip takes one 22 chip takes continuous measurements). The one-shot mode is [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/light/ |
| D | upisemi,us5182.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jonathan Cameron <jic23@kernel.org> 19 upisemi,glass-coef: 22 glass attenuation factor - compensation factor of resolution 1000 26 upisemi,dark-ths: 27 $ref: /schemas/types.yaml#/definitions/uint16-array 31 16-bit thresholds (adc counts) corresponding to every scale. 33 upisemi,upper-dark-gain: [all …]
|
| /kernel/linux/linux-5.10/drivers/iio/light/ |
| D | us5182d.c | 1 // SPDX-License-Identifier: GPL-2.0-only 46 * Registers for tuning the auto dark current cancelling feature. 47 * DARK_TH(reg 0x27,0x28) - threshold (counts) for auto dark cancelling. 48 * when ALS > DARK_TH --> ALS_Code = ALS - Upper(0x2A) * Dark 49 * when ALS < DARK_TH --> ALS_Code = ALS - Lower(0x29) * Dark 56 /* Thresholds for events: px low (0x08-l, 0x09-h), px high (0x0a-l 0x0b-h) */ 101 * roughly between 12-32 lux 124 /* Dark gain tuning */ 202 ret = i2c_smbus_read_byte_data(data->client, US5182D_REG_CFG0); in us5182d_oneshot_en() 212 return i2c_smbus_write_byte_data(data->client, US5182D_REG_CFG0, ret); in us5182d_oneshot_en() [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/light/ |
| D | us5182d.c | 1 // SPDX-License-Identifier: GPL-2.0-only 46 * Registers for tuning the auto dark current cancelling feature. 47 * DARK_TH(reg 0x27,0x28) - threshold (counts) for auto dark cancelling. 48 * when ALS > DARK_TH --> ALS_Code = ALS - Upper(0x2A) * Dark 49 * when ALS < DARK_TH --> ALS_Code = ALS - Lower(0x29) * Dark 56 /* Thresholds for events: px low (0x08-l, 0x09-h), px high (0x0a-l 0x0b-h) */ 101 * roughly between 12-32 lux 124 /* Dark gain tuning */ 202 ret = i2c_smbus_read_byte_data(data->client, US5182D_REG_CFG0); in us5182d_oneshot_en() 212 return i2c_smbus_write_byte_data(data->client, US5182D_REG_CFG0, ret); in us5182d_oneshot_en() [all …]
|