/openbmc/linux/drivers/media/usb/gspca/ |
H A D | sonixb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2009-2011 Jean-François Moine <http://moinejf.free.fr> 14 0x10 high nibble red gain low nibble blue gain 15 0x11 low nibble green gain 17 0x05 red gain 0-127 18 0x06 blue gain 0-127 19 0x07 green gain 0-127 21 0x08-0x0f i2c / 3wire registers 24 0x15 hsize (hsize = register-value * 16) 25 0x16 vsize (vsize = register-value * 16) [all …]
|
H A D | sq930x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2010 Jean-François Moine <http://moinejf.free.fr> 6 * Copyright (C) 2006 -2008 Gerard Klaver <gerard at gkall dot hobby dot nl> 16 MODULE_AUTHOR("Jean-Francois Moine <http://moinejf.free.fr>\n" 26 struct { /* exposure/gain control cluster */ 28 struct v4l2_ctrl *gain; member 33 u8 sensor; member 199 {0x30, 0x0040}, /* reserved - def 0x0005 */ 200 {0x31, 0x0000}, /* reserved - def 0x002a */ 201 {0x34, 0x0100}, /* reserved - def 0x0100 */ [all …]
|
/openbmc/linux/drivers/media/usb/gspca/stv06xx/ |
H A D | stv06xx_pb0100.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher 4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland 8 * P/N 861037: Sensor HDCS1000 ASIC STV0600 9 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600 10 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express 11 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam 12 * P/N 861075-0040: Sensor HDCS1000 ASIC 13 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB 14 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web [all …]
|
H A D | stv06xx_pb0100.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher 4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland 8 * P/N 861037: Sensor HDCS1000 ASIC STV0600 9 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600 10 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express 11 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam 12 * P/N 861075-0040: Sensor HDCS1000 ASIC 13 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB 14 * P/N 861040-0000: Sensor ST VV6410 ASIC STV0610 - QuickCam Web [all …]
|
H A D | stv06xx_hdcs.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher 4 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland 7 * Copyright (c) 2008 Chia-I Wu 9 * P/N 861037: Sensor HDCS1000 ASIC STV0600 10 * P/N 861050-0010: Sensor HDCS1000 ASIC STV0600 11 * P/N 861050-0020: Sensor Photobit PB100 ASIC STV0600-1 - QuickCam Express 12 * P/N 861055: Sensor ST VV6410 ASIC STV0610 - LEGO cam 13 * P/N 861075-0040: Sensor HDCS1000 ASIC 14 * P/N 961179-0700: Sensor ST VV6410 ASIC STV0602 - Dexxa WebCam USB [all …]
|
/openbmc/linux/Documentation/userspace-api/media/drivers/ |
H A D | ccs.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 5 MIPI CCS camera sensor driver 8 The MIPI CCS camera sensor driver is a generic driver for `MIPI CCS 9 <https://www.mipi.org/specifications/camera-command-set>`_ compliant 10 camera sensors. It exposes three sub-devices representing the pixel array, 16 Pixel Array sub-device 17 ---------------------- 19 The pixel array sub-device represents the camera sensor's pixel matrix, as well 26 ------ 28 The binner sub-device represents the binning functionality on the sensor. For [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-isl29501 | 4 Contact: linux-iio@vger.kernel.org 6 This sensor has an automatic gain control (agc) loop 8 level by controlling programmable gain amplifiers. The 9 criteria for optimal gain is determined by the sensor. 11 Return the actual gain value as an integer in [0; 65536] 14 The agc gain read when measuring crosstalk shall be 22 Contact: linux-iio@vger.kernel.org 24 The sensor is able to perform correction of distance 44 Finally, the c constant is set by the sensor 47 The value stored in sensor is displayed when read from.
|
/openbmc/linux/drivers/iio/imu/st_lsm6dsx/ |
H A D | st_lsm6dsx_shub.c | 5 * slave devices using accelerometer sensor as trigger for i2c 61 .gain = 1500, 120 .gain = 146, 124 .gain = 292, 128 .gain = 438, 132 .gain = 584, 158 struct st_lsm6dsx_sensor *sensor; in st_lsm6dsx_shub_wait_complete() local 161 sensor = iio_priv(hw->iio_devs[ST_LSM6DSX_ID_ACC]); in st_lsm6dsx_shub_wait_complete() 162 odr = (hw->enable_mask & BIT(ST_LSM6DSX_ID_ACC)) ? sensor->odr : 12500; in st_lsm6dsx_shub_wait_complete() 169 * st_lsm6dsx_shub_read_output - read i2c controller register [all …]
|
H A D | st_lsm6dsx.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * STMicroelectronics st_lsm6dsx sensor driver 27 #define ST_LSM6DS3TRC_DEV_NAME "lsm6ds3tr-c" 29 #define ST_LSM9DS1_DEV_NAME "lsm9ds1-imu" 150 u32 gain; member 163 * struct st_lsm6dsx_fifo_ops - ST IMU FIFO settings 168 * @max_size: Sensor max fifo length in FIFO words. 172 int (*update_fifo)(struct st_lsm6dsx_sensor *sensor, bool enable); 187 * struct st_lsm6dsx_hw_ts_settings - ST IMU hw timer settings 203 * struct st_lsm6dsx_shub_settings - ST IMU hw i2c controller settings [all …]
|
/openbmc/phosphor-hwmon/ |
H A D | sensor.cpp | 3 #include "sensor.hpp" 11 #include <phosphor-logging/elog-errors.hpp> 13 #include <xyz/openbmc_project/Sensor/Device/error.hpp> 24 namespace sensor namespace 31 Sensor::Sensor(const SensorSet::key_type& sensor, in Sensor() argument 34 _sensor(sensor), _ioAccess(ioAccess), _devPath(devPath), _scale(0), in Sensor() 37 auto chip = env::getEnv("GPIOCHIP", sensor); in Sensor() 38 auto access = env::getEnv("GPIO", sensor); in Sensor() 50 auto gain = env::getEnv("GAIN", sensor); in Sensor() local 51 if (!gain.empty()) in Sensor() [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | ext-ctrls-image-source.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _image-source-controls: 9 The Image Source control class is intended for low-level control of 15 .. _image-source-control-id: 28 same sub-device. 36 Analogue gain is gain affecting all colour components in the pixel 37 matrix. The gain operation is performed in the analogue domain 59 non-sensitive. 64 .. flat-table:: struct v4l2_area 65 :header-rows: 0 [all …]
|
/openbmc/linux/drivers/media/i2c/ccs/ |
H A D | ccs-quirk.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/media/i2c/ccs/ccs-quirk.c 8 * Copyright (C) 2011--2012 Nokia Corporation 15 #include "ccs-limits.h" 17 static int ccs_write_addr_8s(struct ccs_sensor *sensor, in ccs_write_addr_8s() argument 20 struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); in ccs_write_addr_8s() 23 for (; len > 0; len--, regs++) { in ccs_write_addr_8s() 24 rval = ccs_write_addr(sensor, regs->reg, regs->val); in ccs_write_addr_8s() 26 dev_err(&client->dev, in ccs_write_addr_8s() 28 rval, regs->reg, regs->val); in ccs_write_addr_8s() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/light/ |
H A D | amstaos,tsl2563.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: AMS TAOS TSL2563 ambient light sensor 10 - Sebastian Reichel <sre@kernel.org> 13 Ambient light sensor with an i2c interface. 18 - amstaos,tsl2560 19 - amstaos,tsl2561 20 - amstaos,tsl2562 21 - amstaos,tsl2563 [all …]
|
H A 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# 7 title: UPISEMI us5182d I2C ALS and Proximity sensor 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. [all …]
|
/openbmc/phosphor-hwmon/test/ |
H A D | sensor_unittest.cpp | 4 #include "sensor.hpp" 59 /* Always calls GAIN and OFFSET, can use ON_CALL instead of EXPECT_CALL */ in TEST_F() 65 auto sensor = in TEST_F() local 66 std::make_unique<sensor::Sensor>(sensorKey, hwmonio_mock.get(), path); in TEST_F() 67 EXPECT_FALSE(sensor == nullptr); in TEST_F() 96 /* Always calls GAIN and OFFSET, can use ON_CALL instead of EXPECT_CALL */ in TEST_F() 102 auto sensor = in TEST_F() local 103 std::make_unique<sensor::Sensor>(sensorKey, hwmonio_mock.get(), path); in TEST_F() 104 EXPECT_FALSE(sensor == nullptr); in TEST_F() 109 /* Construct a sensor that has a gain and offset, then verify they are used in TEST_F() [all …]
|
/openbmc/linux/drivers/iio/light/ |
H A D | rohm-bu27034.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * BU27034 ROHM Ambient Light Sensor 6 * https://fscdn.rohm.com/en/products/databook/datasheet/ic/sensor/light/bu27034nuc-e.pdf 21 #include <linux/iio/iio-gts-helper.h> 55 * inevitable even if the sensor clock would be perfectly phase-locked to CPU 56 * clock - which we can't say is the case. 59 * risk of losing a sample because things can in a rainy-day scenario be 72 * Downside is that the time-stamps would be very inaccurate as the wake-up 73 * would not really be tied to the sensor toggling the valid bit. This would also 74 * result 'jumps' in the time-stamps when the delay drifted so that wake-up was [all …]
|
H A D | rohm-bu27008.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ROHM Colour Sensor driver for 4 * - BU27008 RGBC sensor 5 * - BU27010 RGBC + Flickering sensor 22 #include <linux/iio/iio-gts-helper.h> 30 * At a quick glance to the data-sheet register tables, the BU27010 has all the 38 * Unfortunately, some of the wheel has been re-invented. Even though the names 43 * Chip-specific mapping from register addresses/bits to functionality is done 127 * enum bu27008_chan_type - BU27008 channel types 145 * enum bu27008_chan - BU27008 physical data channel [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | imx335.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Sony imx335 Camera Sensor Driver 15 #include <media/v4l2-ctrls.h> 16 #include <media/v4l2-fwnode.h> 17 #include <media/v4l2-subdev.h> 38 /* Analog gain control */ 59 * struct imx335_reg - imx335 sensor register 69 * struct imx335_reg_list - imx335 sensor register list 85 * struct imx335_mode - imx335 sensor mode structure 93 * @pclk: Sensor pixel clock [all …]
|
H A D | imx412.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Sony imx412 Camera Sensor Driver 16 #include <media/v4l2-ctrls.h> 17 #include <media/v4l2-fwnode.h> 18 #include <media/v4l2-subdev.h> 39 /* Analog gain control */ 60 * struct imx412_reg - imx412 sensor register 70 * struct imx412_reg_list - imx412 sensor register list 80 * struct imx412_mode - imx412 sensor mode structure 88 * @pclk: Sensor pixel clock [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | ti,tmp513.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: TMP513/512 system monitor sensor 11 - Eric Tremblay <etremblay@distech-controls.com> 14 The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors 15 that include remote sensors, a local temperature sensor, and a high-side 17 remote temperatures, on-chip temperatures, and system voltage/power/current 28 - ti,tmp512 29 - ti,tmp513 [all …]
|
/openbmc/linux/drivers/iio/magnetometer/ |
H A D | st_magn_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2013 STMicroelectronics Inc. 42 /* Special L addresses for Sensor 2 */ 47 /* Special L addresses for sensor 3 */ 52 /* Special L addresses for sensor 4 */ 63 return &mdata->mount_matrix; in st_magn_get_mount_matrix() 146 .wai = 0, /* This sensor has no valid WhoAmI report 0 */ 179 .gain = 1100, 185 .gain = 855, 191 .gain = 670, [all …]
|
/openbmc/linux/drivers/iio/gyro/ |
H A D | st_gyro_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2013 STMicroelectronics Inc. 41 return &gdata->mount_matrix; in st_gyro_get_mount_matrix() 104 .gain = IIO_DEGREE_TO_RAD(8750), 109 .gain = IIO_DEGREE_TO_RAD(17500), 114 .gain = IIO_DEGREE_TO_RAD(70000), 128 * The sensor has IHL (active low) and open 182 .gain = IIO_DEGREE_TO_RAD(8750), 187 .gain = IIO_DEGREE_TO_RAD(17500), 192 .gain = IIO_DEGREE_TO_RAD(70000), [all …]
|
/openbmc/linux/drivers/media/usb/gspca/m5602/ |
H A D | m5602_ov9650.c | 1 // 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 …]
|
/openbmc/linux/drivers/media/i2c/et8ek8/ |
H A D | et8ek8_driver.c | 1 // SPDX-License-Identifier: GPL-2.0-only 27 #include <linux/v4l2-mediabus.h> 29 #include <media/media-entity.h> 30 #include <media/v4l2-ctrls.h> 31 #include <media/v4l2-device.h> 32 #include <media/v4l2-subdev.h> 70 * This table describes what should be written to the sensor register 71 * for each gain value. The gain(index in the table) is in terms of 72 * 0.1EV, i.e. 10 indexes in the table give 2 time more gain [0] in 73 * the *analog gain, [1] in the digital gain [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | microchip,cap11xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 The Microchip CAP1xxx Family of RightTouchTM multiple-channel capacitive 14 - Rob Herring <robh@kernel.org> 19 - microchip,cap1106 20 - microchip,cap1126 21 - microchip,cap1188 22 - microchip,cap1203 23 - microchip,cap1206 [all …]
|