/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 …]
|
/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 …]
|
/linux/Documentation/userspace-api/media/drivers/ |
H A D | ccs.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 5 .. _media-ccs-uapi: 7 MIPI CCS camera sensor driver 10 The MIPI CCS camera sensor driver is a generic driver for `MIPI CCS 11 <https://www.mipi.org/specifications/camera-command-set>`_ compliant 12 camera sensors. It exposes three sub-devices representing the pixel array, 18 Also see :ref:`the CCS driver kernel documentation <media-ccs-driver>`. 20 Pixel Array sub-device 21 ---------------------- 23 The pixel array sub-device represents the camera sensor's pixel matrix, as well [all …]
|
/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.
|
/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" 152 u32 gain; member 165 * struct st_lsm6dsx_fifo_ops - ST IMU FIFO settings 170 * @max_size: Sensor max fifo length in FIFO words. 174 int (*update_fifo)(struct st_lsm6dsx_sensor *sensor, bool enable); 189 * struct st_lsm6dsx_hw_ts_settings - ST IMU hw timer settings 205 * struct st_lsm6dsx_shub_settings - ST IMU hw i2c controller settings [all …]
|
/linux/drivers/iio/light/ |
H A D | ltr390.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * IIO driver for Lite-On LTR390 ALS and UV sensor 4 * (7-bit I2C slave address 0x53) 12 …* https://optoelectronics.liteon.com/upload/download/DS86-2015-0004/LTR-390UV_Final_%20DS_V1%201… 15 * - Support for configurable gain and resolution 16 * - Sensor suspend/resume support 17 * - Add support for reading the ALS 18 * - Interrupt support 52 * At 20-bit resolution (integration time: 400ms) and 18x gain, 2300 counts of 53 * the sensor are equal to 1 UV Index [Datasheet Page#8]. [all …]
|
H A D | rohm-bu27034.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * BU27034ANUC ROHM Ambient Light Sensor 20 #include <linux/iio/iio-gts-helper.h> 52 * inevitable even if the sensor clock would be perfectly phase-locked to CPU 53 * clock - which we can't say is the case. 56 * risk of losing a sample because things can in a rainy-day scenario be 69 * Downside is that the time-stamps would be very inaccurate as the wake-up 70 * would not really be tied to the sensor toggling the valid bit. This would also 71 * result 'jumps' in the time-stamps when the delay drifted so that wake-up was 72 * performed during the consecutive wake-ups (Or, when sensor and CPU clocks [all …]
|
/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 …]
|
/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 …]
|
/linux/drivers/media/i2c/ |
H A D | imx335.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Sony imx335 Camera Sensor Driver 16 #include <media/v4l2-cci.h> 17 #include <media/v4l2-ctrls.h> 18 #include <media/v4l2-fwnode.h> 19 #include <media/v4l2-subdev.h> 52 /* Analog and Digital gain control */ 132 * struct imx335_reg_list - imx335 sensor register list 148 * struct imx335_mode - imx335 sensor mode structure 156 * @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 …]
|
H A D | ar0521.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * - Przemysłowy Instytut Automatyki i Pomiarów PIAP 12 #include <media/v4l2-ctrls.h> 13 #include <media/v4l2-fwnode.h> 14 #include <media/v4l2-subdev.h> 100 struct v4l2_ctrl *gain; member 145 return &container_of(ctrl->handler, struct ar0521_dev, in ctrl_to_sd() 146 ctrls.handler)->sd; in ctrl_to_sd() 156 return div_u64(v + d - 1, d); in div64_round_up() 159 static int ar0521_code_to_bpp(struct ar0521_dev *sensor) in ar0521_code_to_bpp() argument [all …]
|
H A D | ov5648.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <media/v4l2-ctrls.h> 17 #include <media/v4l2-device.h> 18 #include <media/v4l2-fwnode.h> 19 #include <media/v4l2-image-sizes.h> 20 #include <media/v4l2-mediabus.h> 84 #define OV5648_PLL_DIV_ROOT_DIV(v) ((((v) - 1) << 4) & BIT(4)) 97 #define OV5648_PLLS_DIV_PLLS_DIV_R(v) ((((v) - 1) << 2) & BIT(2)) 117 /* Exposure/gain/banding */ 335 /* MIPI CSI-2 */ [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|