| /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 …]
|
| H A D | sn9c20x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2012 Jean-Francois Moine <http://moinejf.free.fr> 6 * Copyright (C) 2008-2009 microdia project <microdia@googlegroups.com> 74 struct { /* autogain and exposure or gain control cluster */ 77 struct v4l2_ctrl *gain; member 99 u8 sensor; member 122 .ident = "MSI MS-1034", 124 DMI_MATCH(DMI_SYS_VENDOR, "MICRO-STAR INT'L CO.,LTD."), 125 DMI_MATCH(DMI_PRODUCT_NAME, "MS-1034"), 130 .ident = "MSI MS-1039", [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/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 …]
|
| /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/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/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 …]
|
| H A D | m5602_po1030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for the po1030 sensor 37 {SENSOR, PO1030_AUTOCTRL2, PO1030_SENSOR_RESET | (1 << 2)}, 57 {SENSOR, PO1030_AUTOCTRL2, PO1030_SENSOR_RESET | (1 << 2)}, 70 {SENSOR, PO1030_AUTOCTRL2, 0x04}, 72 {SENSOR, PO1030_OUTFORMCTRL2, PO1030_RAW_RGB_BAYER}, 73 {SENSOR, PO1030_AUTOCTRL1, PO1030_WEIGHT_WIN_2X}, 75 {SENSOR, PO1030_CONTROL2, 0x03}, 76 {SENSOR, 0x21, 0x90}, 77 {SENSOR, PO1030_YTARGET, 0x60}, [all …]
|
| H A D | m5602_ov7660.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for the ov7660 sensor 35 {SENSOR, OV7660_OFON, 0x0c}, 36 {SENSOR, OV7660_COM2, 0x11}, 37 {SENSOR, OV7660_COM7, 0x05}, 74 {SENSOR, OV7660_COM7, 0x80}, 75 {SENSOR, OV7660_CLKRC, 0x80}, 76 {SENSOR, OV7660_COM9, 0x4c}, 77 {SENSOR, OV7660_OFON, 0x43}, 78 {SENSOR, OV7660_COM12, 0x28}, [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/iio/light/ |
| H A D | al3320a.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * AL3320A - Dyna Image Ambient Light Sensor 7 * IIO driver for AL3320A (7-bit I2C slave address 0x1C). 11 * will need to be disabled before turning sensor OFF in order to avoid 92 return regmap_write(data->regmap, AL3320A_REG_CONFIG, AL3320A_CONFIG_ENABLE); in al3320a_set_pwr_on() 98 struct device *dev = regmap_get_device(data->regmap); in al3320a_set_pwr_off() 101 ret = regmap_write(data->regmap, AL3320A_REG_CONFIG, AL3320A_CONFIG_DISABLE); in al3320a_set_pwr_off() 108 struct device *dev = regmap_get_device(data->regmap); in al3320a_init() 119 ret = regmap_write(data->regmap, AL3320A_REG_CONFIG_RANGE, in al3320a_init() 124 ret = regmap_write(data->regmap, AL3320A_REG_MEAN_TIME, in al3320a_init() [all …]
|
| H A D | al3010.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * AL3010 - Dyna Image Ambient Light Sensor 6 * Copyright (c) 2016, Dyna-Image Corp. 9 * IIO driver for AL3010 (7-bit I2C slave address 0x1C). 13 * will need to be disabled before turning sensor OFF in order to avoid 79 return regmap_write(data->regmap, AL3010_REG_SYSTEM, AL3010_CONFIG_ENABLE); in al3010_set_pwr_on() 85 struct device *dev = regmap_get_device(data->regmap); in al3010_set_pwr_off() 88 ret = regmap_write(data->regmap, AL3010_REG_SYSTEM, AL3010_CONFIG_DISABLE); in al3010_set_pwr_off() 95 struct device *dev = regmap_get_device(data->regmap); in al3010_init() 105 return regmap_write(data->regmap, AL3010_REG_CONFIG, in al3010_init() [all …]
|
| H A D | apds9160.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * APDS9160 sensor driver. 4 * Chip is combined proximity and ambient light sensor. 5 * Author: 2024 Mikael Gonella-Bolduc <m.gonella.bolduc@gmail.com> 62 /* Light sensor registers */ 198 /* Proximity sensor channel */ 211 /* Proximity sensor led current */ 242 /* Proximity sensor channel */ 253 /* Proximity sensor led current */ 337 * struct apds9160_scale - apds9160 scale mapping definition [all …]
|
| /linux/include/linux/platform_data/ |
| H A D | adp8860.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Copyright 2009-2010 Analog Devices Inc. 76 #define ADP8860_BL_AMBL_FILT_80ms 0 /* Light sensor filter time */ 103 u8 bl_fade_in; /* Backlight Fade-In Timer */ 104 u8 bl_fade_out; /* Backlight Fade-Out Timer */ 105 u8 bl_fade_law; /* fade-on/fade-off transfer characteristic */ 107 u8 en_ambl_sens; /* 1 = enable ambient light sensor */ 108 u8 abml_filt; /* Light sensor filter time */ 130 u8 led_fade_in; /* LED Fade-In Timer */ 131 u8 led_fade_out; /* LED Fade-Out Timer */ [all …]
|
| /linux/drivers/iio/pressure/ |
| H A D | st_pressure_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 * ------------------------------------------ 39 * IIO_VAL_INT_PLUS_NANO with a zero integral part and "gain" as decimal part. 40 * Therefore, from (1), "gain" becomes : 41 * gain = 10^9 / (sensitivity * 10) 45 * --------------------------------------------------------- 110 /* LPS001WP pressure gain */ 227 * CUSTOM VALUES FOR LPS331AP SENSOR 264 .gain = ST_PRESS_KPASCAL_NANO_SCALE, 302 * CUSTOM VALUES FOR LPS001WP SENSOR [all …]
|
| /linux/drivers/media/platform/microchip/ |
| H A D | microchip-isc-base.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Microchip Image Sensor Controller (ISC) common driver base 5 * Copyright (C) 2016-2019 Microchip Technology, Inc. 21 #include <linux/atmel-isc-media.h> 23 #include <media/v4l2-ctrls.h> 24 #include <media/v4l2-device.h> 25 #include <media/v4l2-event.h> 26 #include <media/v4l2-image-sizes.h> 27 #include <media/v4l2-ioctl.h> 28 #include <media/v4l2-fwnode.h> [all …]
|
| /linux/Documentation/misc-devices/ |
| H A D | apds990x.rst | 1 .. SPDX-License-Identifier: GPL-2.0 17 ----------- 19 APDS990x is a combined ambient light and proximity sensor. ALS and proximity 34 ALS contains 4 different gain steps. Driver automatically 35 selects suitable gain step. After each measurement, reliability of the results 39 values are known. Otherwise plain sensor default values are used. 48 ----- 52 RO - shows detected chip type and version 55 RW - enable / disable chip. Uses counting logic 60 RO - measured lux value [all …]
|