Home
last modified time | relevance | path

Searched +full:uv +full:- +full:sensor (Results 1 – 25 of 62) sorted by relevance

123

/Linux-v5.15/drivers/iio/light/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
11 tristate "ACPI Ambient Light Sensor"
18 Ambient Light Sensor.
21 be called acpi-als.
24 tristate "ADJD-S311-CR999 digital color sensor"
29 If you say yes here you get support for the Avago ADJD-S311-CR999
30 digital color light sensor.
36 tristate "ADUX1020 photometric sensor"
41 ADUX1020 photometric sensor.
47 tristate "AL3010 ambient light sensor"
[all …]
Dveml6070.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * veml6070.c - Support for Vishay VEML6070 UV A light sensor
5 * Copyright 2016 Peter Meerwald-Stadler <pmeerw@pmeerw.net>
7 * IIO driver for VEML6070 (7-bit I2C slave addresses 0x38 and 0x39)
45 mutex_lock(&data->lock); in veml6070_read()
48 ret = i2c_smbus_write_byte(data->client1, in veml6070_read()
49 data->config & ~VEML6070_COMMAND_SD); in veml6070_read()
55 ret = i2c_smbus_read_byte(data->client2); /* read MSB, address 0x39 */ in veml6070_read()
60 ret = i2c_smbus_read_byte(data->client1); /* read LSB, address 0x38 */ in veml6070_read()
66 ret = i2c_smbus_write_byte(data->client1, data->config); in veml6070_read()
[all …]
Dzopt2201.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * zopt2201.c - Support for IDT ZOPT2201 ambient light and UV B sensor
5 * Copyright 2017 Peter Meerwald-Stadler <pmeerw@pmeerw.net>
7 * Datasheet: https://www.idt.com/document/dst/zopt2201-datasheet
8 * 7-bit I2C slave addresses 0x53 (default) or 0x52 (programmed)
39 #define ZOPT2201_MAIN_CTRL_LS_MODE BIT(3) /* 0 .. ALS, 1 .. UV B */
105 unsigned int bits; /* sensor resolution in bits */
181 return i2c_smbus_write_byte_data(data->client, ZOPT2201_MAIN_CTRL, out); in zopt2201_enable_mode()
186 struct i2c_client *client = data->client; in zopt2201_read()
191 mutex_lock(&data->lock); in zopt2201_read()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/iio/light/
Dst,uvis25.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ST UVIS25 uv sensor
10 - Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
25 - compatible
26 - reg
29 - |
30 #include <dt-bindings/interrupt-controller/irq.h>
32 #address-cells = <1>;
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/hwmon/
Dntc_thermistor.txt2 -------------------------------
5 - "compatible" value : one of
23 - "pullup-uv" Pull up voltage in micro volts
24 - "pullup-ohm" Pull up resistor value in ohms
25 - "pulldown-ohm" Pull down resistor value in ohms
26 - "connected-positive" Always ON, If not specified.
28 - "io-channels" Channel node of ADC to be used for
32 - "#thermal-sensor-cells" Used to expose itself to thermal fw.
35 https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/
40 pullup-uv = <1800000>;
[all …]
/Linux-v5.15/arch/arm/boot/dts/
Domap443x.dtsi4 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
16 /* OMAP443x variants OPP50-OPPNT */
17 operating-points = <
18 /* kHz uV */
24 clock-latency = <300000>; /* From legacy driver */
27 #cooling-cells = <2>; /* min followed by max */
31 thermal-zones {
32 #include "omap4-cpu-thermal.dtsi"
40 compatible = "ti,omap4430-bandgap";
43 #thermal-sensor-cells = <0>;
[all …]
Domap4460.dtsi4 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
16 operating-points = <
17 /* kHz uV */
22 clock-latency = <300000>; /* From legacy driver */
25 #cooling-cells = <2>; /* min followed by max */
29 thermal-zones {
30 #include "omap4-cpu-thermal.dtsi"
38 compatible = "ti,omap4460-bandgap";
42 #thermal-sensor-cells = <0>;
45 abb_mpu: regulator-abb-mpu {
[all …]
Dste-hrefv60plus.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2012 ST-Ericsson AB
6 #include "ste-href-ab8500.dtsi"
7 #include "ste-href.dtsi"
10 model = "ST-Ericsson HREF (v60+) platform with Device Tree";
11 compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
13 thermal-zones {
14 chassis-thermal {
16 polling-delay = <20000>;
18 polling-delay-passive = <2000>;
[all …]
Dimx6dl-b1x5pv2.dtsi1 // SPDX-License-Identifier: GPL-2.0 or MIT
6 // Copyright 2018-2021 General Electric Company
7 // Copyright 2018-2021 Collabora
9 #include <dt-bindings/input/input.h>
10 #include "imx6dl-qmx6.dtsi"
14 stdout-path = &uart3;
20 operating-points = <
21 /* kHz uV */
25 fsl,soc-operating-points = <
26 /* ARM kHz SOC-PU uV */
[all …]
Domap36xx.dtsi4 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
11 #include <dt-bindings/bus/ti-sysc.h>
12 #include <dt-bindings/media/omap3-isp.h>
24 operating-points-v2 = <&cpu0_opp_table>;
26 vbb-supply = <&abb_mpu_iva>;
27 clock-latency = <300000>; /* From omap-cpufreq driver */
28 #cooling-cells = <2>;
32 cpu0_opp_table: opp-table {
33 compatible = "operating-points-v2-ti-cpu";
36 opp50-300000000 {
[all …]
/Linux-v5.15/drivers/hwmon/
Dltc2990.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/hwmon-sysfs.h>
71 /* Return the converted value from the given register in uV or mC */
101 return -EINVAL; in ltc2990_get_value()
117 /* Vx-Vy, 19.42uV/LSB */ in ltc2990_get_value()
121 /* Vcc, 305.18uV/LSB, 2.5V offset */ in ltc2990_get_value()
128 /* Vx, 305.18uV/LSB */ in ltc2990_get_value()
132 return -EINVAL; /* won't happen, keep compiler happy */ in ltc2990_get_value()
146 ret = ltc2990_get_value(data->i2c, attr->index, &value); in ltc2990_value_show()
163 (ltc2990_attrs_ena_0[data->mode[0]] & in ltc2990_attrs_visible()
[all …]
Dtmp513.c1 // SPDX-License-Identifier: GPL-2.0
7 * Local Temperature Sensor and Current Shunt Monitor
12 * and Local Temperature Sensor and Current Shunt Monitor
15 * Copyright (C) 2019 Eric Tremblay <etremblay@distech-controls.com>
110 // Max possible value is -256 to +256 but datasheet indicated -40 to 125.
112 #define MIN_TEMP_LIMIT -40000
179 return 5 - ffs(data->pga_gain); in tmp51x_get_pga_shift()
196 * on the pga gain setting. 1lsb = 10uV in tmp51x_get_value()
198 *val = sign_extend32(regval, 17 - tmp51x_get_pga_shift(data)); in tmp51x_get_value()
199 *val = DIV_ROUND_CLOSEST(*val * 10000, data->shunt_uohms); in tmp51x_get_value()
[all …]
Dina3221.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/
10 #include <linux/hwmon-sysfs.h>
53 #define INA3221_CONFIG_CHx_EN(x) BIT(14 - (x))
70 /* Alert Flags: SF is the summation-alert flag */
98 * struct ina3221_input - channel input source specific information
110 * struct ina3221_data - device specific information
118 * @single_shot: running in single-shot operating mode
136 return ina->summation_shunt_resistor != 0; in ina3221_is_enabled()
138 return pm_runtime_active(ina->pm_dev) && in ina3221_is_enabled()
[all …]
Dltc4261.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 #include <linux/hwmon-sysfs.h>
58 struct i2c_client *client = data->client; in ltc4261_update_device()
61 mutex_lock(&data->update_lock); in ltc4261_update_device()
63 if (time_after(jiffies, data->last_updated + HZ / 4) || !data->valid) { in ltc4261_update_device()
66 /* Read registers -- 0x00 to 0x09 */ in ltc4261_update_device()
67 for (i = 0; i < ARRAY_SIZE(data->regs); i++) { in ltc4261_update_device()
76 data->valid = 0; in ltc4261_update_device()
79 data->regs[i] = val; in ltc4261_update_device()
81 data->last_updated = jiffies; in ltc4261_update_device()
[all …]
/Linux-v5.15/arch/arm64/boot/dts/rockchip/
Drk3399-gru-kevin.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Gru-Kevin Rev 6+ board device tree source
5 * Copyright 2016-2017 Google, Inc
8 /dts-v1/;
9 #include "rk3399-gru-chromebook.dtsi"
10 #include <dt-bindings/input/linux-event-codes.h>
13 * Kevin-specific things
21 compatible = "google,kevin-rev15", "google,kevin-rev14",
22 "google,kevin-rev13", "google,kevin-rev12",
23 "google,kevin-rev11", "google,kevin-rev10",
[all …]
/Linux-v5.15/Documentation/hwmon/
Dtmp513.rst1 .. SPDX-License-Identifier: GPL-2.0
22 Eric Tremblay <etremblay@distech-controls.com>
25 -----------
28 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors
29 that include remote sensors, a local temperature sensor, and a high-side current
31 temperatures, on-chip temperatures, and system voltage/power/current
35 -40 to + 125 degrees with a resolution of 0.0625 degree C.
44 **temp[1-4]_input**
46 **temp[1-4]_crit**
48 **temp[1-4]_crit_alarm**
[all …]
/Linux-v5.15/drivers/media/i2c/
Dov772x.c1 // SPDX-License-Identifier: GPL-2.0
12 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net>
26 #include <linux/v4l2-mediabus.h>
31 #include <media/v4l2-ctrls.h>
32 #include <media/v4l2-device.h>
33 #include <media/v4l2-event.h>
34 #include <media/v4l2-fwnode.h>
35 #include <media/v4l2-image-sizes.h>
36 #include <media/v4l2-subdev.h>
41 #define GAIN 0x00 /* AGC - Gain control gain setting */
[all …]
Dov9650.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Omnivision OV9650/OV9652 CMOS Image Sensor driver
25 #include <media/media-entity.h>
26 #include <media/v4l2-async.h>
27 #include <media/v4l2-ctrls.h>
28 #include <media/v4l2-device.h>
29 #include <media/v4l2-event.h>
30 #include <media/v4l2-image-sizes.h>
31 #include <media/v4l2-subdev.h>
32 #include <media/v4l2-mediabus.h>
[all …]
/Linux-v5.15/Documentation/admin-guide/media/
Dipu3.rst1 .. SPDX-License-Identifier: GPL-2.0
24 ImgU). The CIO2 driver is available as drivers/media/pci/intel/ipu3/ipu3-cio2*
36 Both of the drivers implement V4L2, Media Controller and V4L2 sub-device
38 MIPI CSI-2 interfaces through V4L2 sub-device sensor drivers.
44 interface to the user space. There is a video node for each CSI-2 receiver,
47 The CIO2 contains four independent capture channel, each with its own MIPI CSI-2
48 receiver and DMA engine. Each channel is modelled as a V4L2 sub-device exposed
49 to userspace as a V4L2 sub-device node and has two pads:
53 .. flat-table::
55 * - pad
[all …]
/Linux-v5.15/drivers/misc/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
27 See Documentation/misc-devices/ad525x_dpot.rst for the
40 module will be called ad525x_dpot-i2c.
51 module will be called ad525x_dpot-spi.
65 This option enables device driver support for in-band access to the
78 website <https://www-03.ibm.com/systems/info/x86servers/serverproven/compat/us/>
180 tristate "CS5535/CS5536 Geode Multi-Function General Purpose Timer (MFGPT) support"
187 than the generic PIT, and are suitable for use as high-res timers.
203 tristate "CS5535/CS5536 high-res timer (MFGPT) events"
209 generic PIT, and are suitable for use as high-res timers.
[all …]
/Linux-v5.15/drivers/media/usb/gspca/m5602/
Dm5602_ov9650.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Driver for the ov9650 sensor
41 {SENSOR, OV9650_COM7, OV9650_REGISTER_RESET},
43 {SENSOR, OV9650_CLKRC, 0x80},
45 {SENSOR, OV9650_OFON, 0x40}
67 {SENSOR, OV9650_COM7, OV9650_REGISTER_RESET},
68 /* One extra reset is needed in order to make the sensor behave
70 {SENSOR, OV9650_COM7, OV9650_REGISTER_RESET},
73 {SENSOR, OV9650_CLKRC, 0x80},
75 {SENSOR, OV9650_OFON, 0x40},
[all …]
/Linux-v5.15/drivers/staging/media/atomisp/pci/
Dsh_css_defs.h1 /* SPDX-License-Identifier: GPL-2.0 */
21 /*#include "vamem.h"*/ /* Cannot include for VAMEM properties this file is visible on ISP -> pipeli…
32 /* UV offset: 1:uv=-128...127, 0:uv=0...255 */
39 #define SH_CSS_BAYER_MAXVAL ((1U << SH_CSS_BAYER_BITS) - 1)
53 #define SH_CSS_MACC2_COEF_SHIFT 13 /* [s[exp].[13-exp]] for ISP2 */
58 * factors. The BDS factor is used in pre-processor expressions so we cannot
84 /*--------------- sRGB Gamma -----------------
85 CCM : YCgCo[0,8191] -> RGB[0,4095]
86 sRGB Gamma : RGB [0,4095] -> RGB[0,8191]
87 CSC : RGB [0,8191] -> YUV[0,8191]
[all …]
/Linux-v5.15/drivers/iio/gyro/
Dadis16260.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ADIS16260/ADIS16265 Programmable Digital Gyroscope Sensor Driver
20 #define ADIS16260_GYRO_OUT 0x04 /* X-axis gyroscope output */
33 #define ADIS16260_MSC_CTRL 0x34 /* Control, data ready, self-test settings */
50 /* Internal self-test enable */
175 ret = adis_write_reg_16(&adis16260->adis, ADIS16260_SLP_CNT, val); in adis16260_stop_device()
177 dev_err(&indio_dev->dev, "problem with turning device off: SLP_CNT"); in adis16260_stop_device()
192 const struct adis16260_chip_info *info = adis16260->info; in adis16260_read_raw()
193 struct adis *adis = &adis16260->adis; in adis16260_read_raw()
203 switch (chan->type) { in adis16260_read_raw()
[all …]
/Linux-v5.15/drivers/media/usb/stkwebcam/
Dstk-sensor.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* stk-sensor.c: Driver for ov96xx sensor (used in some Syntek webcams)
4 * Copyright 2007-2008 Jaime Velasco Juan <jsagarribay@gmail.com>
11 * Copyright 2006-7 Jonathan Corbet <corbet@lwn.net>
16 /* Controlling the sensor via the STK1125 vendor specific control interface:
17 * The camera uses an OmniVision sensor and the stk1125 provides an
18 * SCCB(i2c)-USB bridge which let us program the sensor.
19 * In my case the sensor id is 0x9652, it can be read from sensor's register
21 * - read register #R:
27 * - write value V to register #R
[all …]
/Linux-v5.15/drivers/media/usb/gspca/
Dov519.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2008-2011 Jean-François Moine <moinejf@free.fr>
8 * This module is adapted from the ov51x-jpeg package, which itself
13 * Copyright (c) 1999-2006 Mark W. McClelland
20 * ov51x-jpeg original copyright is:
22 * Copyright (c) 2004-2007 Romain Beauxis <toots@rastageeks.org>
38 MODULE_AUTHOR("Jean-Francois Moine <http://moinejf.free.fr>");
46 * are getting "Failed to read sensor ID..." */
84 /* Determined by sensor type */
97 s8 sensor; /* Type of image sensor chip (SEN_*) */ member
[all …]

123