Home
last modified time | relevance | path

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

1234

/openbmc/linux/drivers/iio/light/
H A 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 …]
H A 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 …]
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 …]
/openbmc/linux/Documentation/devicetree/bindings/iio/light/
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 …]
/openbmc/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 …]
/openbmc/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 Domap36xx.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
8 #include <dt-bindings/bus/ti-sysc.h>
9 #include <dt-bindings/media/omap3-isp.h>
21 operating-points-v2 = <&cpu0_opp_table>;
23 vbb-supply = <&abb_mpu_iva>;
24 clock-latency = <300000>; /* From omap-cpufreq driver */
25 #cooling-cells = <2>;
29 cpu0_opp_table: opp-table {
30 compatible = "operating-points-v2-ti-cpu";
[all …]
/openbmc/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>
115 // Max possible value is -256 to +256 but datasheet indicated -40 to 125.
117 #define MIN_TEMP_LIMIT -40000
181 // Set the shift based on the gain: 8 -> 1, 4 -> 2, 2 -> 3, 1 -> 4
184 return 5 - ffs(data->pga_gain); in tmp51x_get_pga_shift()
201 * on the pga gain setting. 1lsb = 10uV in tmp51x_get_value()
205 16 - tmp51x_get_pga_shift(data) : 15); 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/
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 …]
/openbmc/u-boot/arch/arm/dts/
H A Domap36xx.dtsi4 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
11 #include <dt-bindings/bus/ti-sysc.h>
12 #include <dt-bindings/media/omap3-isp.h>
24 operating-points = <
25 /* kHz uV */
30 clock-latency = <300000>; /* From legacy driver */
36 compatible = "ti,omap3-uart";
40 dma-names = "tx", "rx";
42 clock-frequency = <48000000>;
45 abb_mpu_iva: regulator-abb-mpu {
[all …]
H A 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 …]
H A Domap34xx.dtsi4 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
11 #include <dt-bindings/media/omap3-isp.h>
18 /* OMAP343x/OMAP35xx variants OPP1-5 */
19 operating-points = <
20 /* kHz uV */
27 clock-latency = <300000>; /* From legacy driver */
33 compatible = "ti,omap3-padconf", "pinctrl-single";
35 #address-cells = <1>;
36 #size-cells = <0>;
37 #pinctrl-cells = <1>;
[all …]
/openbmc/linux/arch/arm64/boot/dts/rockchip/
H A 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 …]
/openbmc/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-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 …]
/openbmc/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 …]
/openbmc/linux/arch/arm/boot/dts/nxp/imx/
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 …]
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 …]
/openbmc/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 …]
/openbmc/linux/Documentation/admin-guide/media/
H A 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::
54 :header-rows: 1
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A 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 …]
/openbmc/phosphor-power/phosphor-power-supply/
H A Dpower_supply.hpp11 #include <xyz/openbmc_project/Sensor/Value/server.hpp>
30 // The D-Bus property name to update with the CCIN value.
41 // For IBM power supplies, the SN is 6-byte header + 6-byte serial.
53 constexpr auto IBMCFFPS_DD_NAME = "ibm-cffps";
54 constexpr auto ACBEL_FSG032_DD_NAME = "acbel-fsg032";
62 using SensorInterface = sdbusplus::xyz::openbmc_project::Sensor::server::Value;
85 * @param[in] invpath - String for inventory path to use
86 * @param[in] i2cbus - The bus number this power supply is on
87 * @param[in] i2caddr - The 16-bit I2C address of the power supply
88 * @param[in] driver - i2c driver name for power supply
[all …]
/openbmc/linux/drivers/misc/
H A 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/>
189 called smpro-errmon.
199 called smpro-misc.
202 tristate "CS5535/CS5536 Geode Multi-Function General Purpose Timer (MFGPT) support"
209 than the generic PIT, and are suitable for use as high-res timers.
[all …]
/openbmc/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 …]

1234