Home
last modified time | relevance | path

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

123

/linux/Documentation/devicetree/bindings/iio/light/
H A Dliteon,ltr390.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.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
14 … https://optoelectronics.liteon.com/upload/download/DS86-2015-0004/LTR-390UV_Final_%20DS_V1%201.pdf
17 - Anshul Dalal <anshulusr@gmail.com>
22 - liteon,ltr390
31 The sensor pulls this pin low when the measured reading is greater than
34 vdd-supply: true
[all …]
H A 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 …]
H A Dams,as73211.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: AMS AS73211 JENCOLOR(R) Digital XYZ Sensor and AMS AS7331 UV Sensor
10 - Christian Eggers <ceggers@arri.de>
13 AMS AS73211 XYZ True Color Sensor with I2C Interface
14 …https://ams.com/documents/20143/36005/AS73211_DS000556_3-01.pdf/a65474c0-b302-c2fd-e30a-c98df87616…
15 AMS AS7331 UVA, UVB and UVC Sensor with I2C Interface
16 https://ams.com/documents/20143/9106314/AS7331_DS001047_4-00.pdf
21 - ams,as73211
[all …]
/linux/Documentation/devicetree/bindings/hwmon/
H A Dntc-thermistor.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 ---
3 $id: http://devicetree.org/schemas/hwmon/ntc-thermistor.yaml#
4 $schema: http://devicetree.org/meta-schemas/core.yaml#
9 - Linus Walleij <linus.walleij@linaro.org>
13 vary in resistance in an often non-linear way in relation to temperature.
16 temperature is non-linear, software drivers most often need to use a look
20 pull-up resistor or/and a pull-down resistor and a fixed voltage like this:
22 + e.g. 5V = pull-up voltage (puv)
24 +-+
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Domap443x.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
13 /* OMAP443x variants OPP50-OPPNT */
14 operating-points = <
15 /* kHz uV */
21 clock-latency = <300000>; /* From legacy driver */
24 #cooling-cells = <2>; /* min followed by max */
28 thermal-zones {
29 #include "omap4-cpu-thermal.dtsi"
37 compatible = "ti,omap4430-bandgap";
[all …]
H A Domap4460.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
13 operating-points = <
14 /* kHz uV */
19 clock-latency = <300000>; /* From legacy driver */
22 #cooling-cells = <2>; /* min followed by max */
26 thermal-zones {
27 #include "omap4-cpu-thermal.dtsi"
35 compatible = "ti,omap4460-bandgap";
39 #thermal-sensor-cells = <0>;
[all …]
H A Domap5.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
8 #include <dt-bindings/bus/ti-sysc.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/pinctrl/omap.h>
12 #include <dt-bindings/clock/omap5.h>
15 #address-cells = <2>;
16 #size-cells = <2>;
19 interrupt-parent = <&wakeupgen>;
[all …]
/linux/drivers/hwmon/
H A 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 …]
H A 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>
112 // Max possible value is -256 to +256 but datasheet indicated -40 to 125.
114 #define MIN_TEMP_LIMIT -40000
123 #define TMP51X_TEMP_CHANNEL_MASK(n) (GENMASK((n) - 1, 0) << 11)
185 // Set the shift based on the gain: 8 -> 1, 4 -> 2, 2 -> 3, 1 -> 4
188 return 5 - ffs(data->pga_gain); in tmp51x_get_pga_shift()
205 * on the pga gain setting. 1lsb = 10uV in tmp51x_get_value()
[all …]
H A Dina3221.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/
11 #include <linux/hwmon-sysfs.h>
54 #define INA3221_CONFIG_CHx_EN(x) BIT(14 - (x))
71 /* Alert Flags: SF is the summation-alert flag */
99 * struct ina3221_input - channel input source specific information
113 * struct ina3221_data - device specific information
123 * @single_shot: running in single-shot operating mode
143 return ina->summation_shunt_resistor != 0; in ina3221_is_enabled()
145 return pm_runtime_active(ina->pm_dev) && in ina3221_is_enabled()
[all …]
H A 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 = false; in ltc4261_update_device()
79 data->regs[i] = val; in ltc4261_update_device()
81 data->last_updated = jiffies; in ltc4261_update_device()
[all …]
/linux/drivers/media/pci/intel/ipu6/
H A Dipu6-fw-isys.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (C) 2013--2024 Intel Corporation */
30 /* Single device queue for high priority commands (bypass in-order queue) */
172 IPU6_FW_ISYS_FRAME_FORMAT_NV11 = 0, /* 12 bit YUV 411, Y, UV plane */
173 IPU6_FW_ISYS_FRAME_FORMAT_NV12, /* 12 bit YUV 420, Y, UV plane */
174 IPU6_FW_ISYS_FRAME_FORMAT_NV12_16, /* 16 bit YUV 420, Y, UV plane */
178 IPU6_FW_ISYS_FRAME_FORMAT_NV16, /* 16 bit YUV 422, Y, UV plane */
286 * struct ipu6_fw_isys_output_pin_payload_abi - ISYS output pin buffer
287 * @out_buf_id: Points to output pin buffer - buffer identifier
288 * @addr: Points to output pin buffer - CSS Virtual Address
[all …]
/linux/drivers/iio/light/
H A 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/arch/arm/boot/dts/st/
H A Dste-hrefv60plus.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2012 ST-Ericsson AB
6 #include "ste-href.dtsi"
9 model = "ST-Ericsson HREF (v60+) platform with Device Tree";
10 compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
12 thermal-zones {
13 chassis-thermal {
15 polling-delay = <20000>;
17 polling-delay-passive = <2000>;
19 thermal-sensors = <&therm1>, <&therm2>;
[all …]
H A Dste-href.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2012 ST-Ericsson AB
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/leds/common.h>
8 #include "ste-href-family-pinctrl.dtsi"
17 compatible = "simple-battery";
18 battery-type = "lithium-ion-polymer";
21 thermal-zones {
22 battery-thermal {
24 polling-delay = <0>;
[all …]
/linux/drivers/media/i2c/
H A 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 …]
H A Dov9650.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Omnivision OV9650/OV9652 CMOS Image Sensor driver
24 #include <media/media-entity.h>
25 #include <media/v4l2-async.h>
26 #include <media/v4l2-ctrls.h>
27 #include <media/v4l2-device.h>
28 #include <media/v4l2-event.h>
29 #include <media/v4l2-image-sizes.h>
30 #include <media/v4l2-subdev.h>
31 #include <media/v4l2-mediabus.h>
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6q-bosch-acc.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Support for the i.MX6-based Bosch ACC board.
8 * Copyright (C) 2019-2021 Bosch Thermotechnik GmbH, Matthias Winker <matthias.winker@bosch.com>
12 /dts-v1/;
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/leds/common.h>
20 compatible = "bosch,imx6q-acc", "fsl,imx6q";
37 backlight_lvds: backlight-lvds {
38 compatible = "pwm-backlight";
40 brightness-levels = <0 61 499 1706 4079 8022 13938 22237 33328 47623 65535>;
[all …]
H A 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 …]
/linux/Documentation/hwmon/
H A 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/drivers/media/usb/gspca/m5602/
H A 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/drivers/iio/gyro/
H A 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/drivers/media/usb/gspca/
H A 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 …]
/linux/drivers/media/platform/marvell/
H A Dmcam-core.h1 /* SPDX-License-Identifier: GPL-2.0 */
11 #include <linux/clk-provider.h>
13 #include <media/v4l2-common.h>
14 #include <media/v4l2-ctrls.h>
15 #include <media/v4l2-dev.h>
16 #include <media/videobuf2-v4l2.h>
155 struct v4l2_subdev *sensor; member
166 /* DMA buffers - vmalloc mode */
176 /* DMA buffers - DMA modes */
179 /* Mode-specific ops, set at open time */
[all …]
/linux/drivers/staging/media/ipu3/
H A Dipu3-abi.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 #include "include/uapi/intel-ipu3.h"
106 #define IMGU_REG_L1_PHYS (IMGU_REG_BASE + 0x304) /* 27-bit pfn */
121 /* For each definition there is signal pair : valid [bit 0]- accept [bit 1] */
151 #define IMGU_GP_STRMON_STAT_MOD_PORT_S2V(n) (1 << (((n) - 1) * 2 + 20))
154 #define IMGU_GP_STRMON_STAT_ACCS_PORT_ACC(n) (1 << (((n) - 1) * 2))
157 #define IMGU_GP_STRMON_STAT_ACCS2SP1_MON_PORT_ACC(n) (1 << (((n) - 1) * 2))
160 #define IMGU_GP_STRMON_STAT_ACCS2SP2_MON_PORT_ACC(n) (1 << (((n) - 1) * 2))
212 #define IMGU_GDC_LUT_MASK ((1 << 12) - 1) /* Range -1024..+1024 */
330 /* End Of Frame event, sent when in buffered sensor mode */
[all …]

123