/linux/drivers/iio/light/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 4 # Light sensors 8 menu "Light sensors" 11 tristate "ACPI Ambient Light Sensor" 17 Say Y here if you want to build a driver for the ACPI0008 18 Ambient Light Sensor. 20 To compile this driver as a module, choose M here: the module will 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 [all …]
|
H A D | tcs3472.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tcs3472.c - Support for TAOS TCS3472 color light-to-digital converter 7 * Color light sensor with 16-bit channels for red, green, blue, clear); 8 * 7-bit I2C slave address 0x39 (TCS34721, TCS34723) or 0x29 (TCS34725, 125 while (tries--) { in tcs3472_req_data() 126 ret = i2c_smbus_read_byte_data(data->client, TCS3472_STATUS); in tcs3472_req_data() 135 dev_err(&data->client->dev, "data not ready\n"); in tcs3472_req_data() 136 return -EIO; in tcs3472_req_data() 159 ret = i2c_smbus_read_word_data(data->client, chan->address); in tcs3472_read_raw() 166 *val = tcs3472_agains[data->control & in tcs3472_read_raw() [all …]
|
H A D | tsl2591.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Device driver for the TAOS TSL2591. This is a very-high sensitivity 8 * light-to-digital converter that transforms light intensity into a digital 30 /* ADC integration time, field value to time in ms */ 32 /* ADC integration time, field value to time in seconds */ 34 /* ADC integration time, time in seconds to field value */ 35 #define TSL2591_SEC_TO_FVAL(x) ((x) - 1) 102 #define TSL2591_PRST_ALS_INT_CYCLE_MAX (BIT(4) - 1) 141 #define TSL2591_ALS_MAX_VALUE (BIT(16) - 1) 212 return -EINVAL; in tsl2591_gain_to_multiplier() [all …]
|
/linux/Documentation/devicetree/bindings/ |
H A D | trivial-devices.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/trivial-devices.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 17 If a device needs more specific bindings, such as properties to 18 describe some aspect of it, there needs to be a specific binding 27 spi-max-frequency: true 32 - enum: 34 - acbel,fsg032 [all …]
|
/linux/Documentation/devicetree/bindings/iio/light/ |
H A D | amstaos,tsl2591.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/light/amstaos,tsl2591.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: AMS/TAOS TSL2591 Ambient Light Sensor (ALS) 10 - Joe Sandom <joe.g.sandom@gmail.com> 13 AMS/TAOS TSL2591 is a very-high sensitivity 14 light-to-digital converter that transforms light intensity into a digital 27 Interrupt (INT:Pin 2) Active low. Should be set to IRQ_TYPE_EDGE_FALLING. 28 interrupt is used to detect if the light intensity has fallen below [all …]
|
H A D | capella,cm3605.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/light/capella,cm3605.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 Capella Microsystems CM3605 Ambient Light and Short Distance Proximity Sensor 11 - Linus Walleij <linus.walleij@linaro.org> 12 - Kevin Tsai <ktsai@capellamicro.com> 16 software logic to interface a host operating system. 26 aset-gpios: 29 ASET line (drive low to activate the ALS, should be flagged [all …]
|
/linux/Documentation/driver-api/iio/ |
H A D | intro.rst | 7 The main purpose of the Industrial I/O subsystem (IIO) is to provide support 9 analog-to-digital conversion (ADC) or digital-to-analog conversion (DAC) 10 or both. The aim is to fill the gap between the somewhat similar hwmon and 12 sensors used to monitor and control the system itself, like fan speed control 19 * analog to digital converters (ADCs) 21 * capacitance to digital converters (CDCs) 22 * digital to analog converters (DACs) 25 * color and light sensors 32 :doc:`I2C <../i2c>`. A common use case of the sensors devices is to have 33 combined functionality (e.g. light plus proximity sensor).
|
/linux/drivers/misc/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 13 tristate "Analog Devices Digital Potentiometers" 25 digital potentiometer chips. 27 See Documentation/misc-devices/ad525x_dpot.rst for the 37 Say Y here if you have a digital potentiometers hooked to an I2C bus. 39 To compile this driver as a module, choose M here: the 40 module will be called ad525x_dpot-i2c. 46 Say Y here if you have a digital potentiometers hooked to an SPI bus. 48 If unsure, say N (but it's safe to say "Y"). 50 To compile this driver as a module, choose M here: the [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | ext-ctrls-colorimetry.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _colorimetry-controls: 10 imaging for representing colors in digital images and video. The 15 ----------------------- 17 .. _colorimetry-control-id: 25 The Content Light Level defines upper bounds for the nominal target 26 brightness light level of the pictures. 32 .. flat-table:: struct v4l2_ctrl_hdr10_cll_info 33 :header-rows: 0 34 :stub-columns: 0 [all …]
|
H A D | ext-ctrls-camera.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _camera-controls: 10 digital) features of a device such as controllable lenses or sensors. 13 .. _camera-control-id: 23 .. _v4l2-exposure-auto-type: 28 enum v4l2_exposure_auto_type - 37 .. flat-table:: 38 :header-rows: 0 39 :stub-columns: 0 41 * - ``V4L2_EXPOSURE_AUTO`` [all …]
|
H A D | control.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 9 Devices typically have a number of user-settable controls such as 10 brightness, saturation and so on, which would be presented to the user 13 values, and the default value will vary from device to device. The 14 control ioctls provide the information and a mechanism to create a nice 21 pre-defined control IDs have the prefix ``V4L2_CID_``, and are listed in 22 :ref:`control-id`. The ID is used when querying the attributes of a 25 Generally applications should present controls to the user without 27 the user is supposed to understand. When the purpose is non-intuitive 28 the driver writer should provide a user manual, a user interface plug-in [all …]
|
/linux/Documentation/admin-guide/media/ |
H A D | faq.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 1. With Digital TV, a single physical channel may have different 10 This is what a TV user would call "channel". So, in order to 14 a lot of information related to the media subsystem. If you 16 you'll be able to get something useful there. It is hosted 21 Some very frequently asked questions about Linux Digital TV support 23 1. The signal seems to die a few seconds after tuning. 28 is closed). The ``dvb-core`` module parameter ``dvb_shutdown_timeout`` 29 allow you to change the timeout (default 5 seconds). Setting the 30 timeout to 0 disables the timeout feature. [all …]
|
/linux/drivers/platform/x86/hp/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 9 Say Y here to get to see options for device drivers for various 10 HP x86 platforms, including vendor-specific laptop extension drivers. 31 hp::hddprotect. For more information on the feature, refer to 32 Documentation/misc-devices/lis3lv02d.rst. 34 To compile this driver as a module, choose M here: the module will 48 Say Y here if you want to support WMI-based hotkeys on HP laptops and 49 to read data from WMI such as docking or ambient light sensor state. 51 To compile this driver as a module, choose M here: the module will 52 be called hp-wmi. [all …]
|
/linux/Documentation/sound/cards/ |
H A D | cmipci.rst | 2 Brief Notes on C-Media 8338/8738/8768/8770 Driver 8 Front/Rear Multi-channel Playback 9 --------------------------------- 13 DACs, both streams are handled independently unlike the 4/6ch multi- 18 (hw:0,1) is assigned to the second DAC for rear playback. 22 - The first DAC supports U8 and S16LE formats, while the second DAC 24 - The second DAC supports only two channel stereo. 31 disabled. Otherwise no signal will be routed to the rear speakers. 47 time.. Maybe there is an unknown register to achieve this... 51 control switch in the driver "Line-In As Rear", which you can change [all …]
|
/linux/drivers/media/dvb-frontends/ |
H A D | au8522_common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 Copyright (C) 2005-2008 Auvitek International, Ltd. 35 struct i2c_msg msg = { .addr = state->config.demod_address, in au8522_writereg() 38 ret = i2c_transfer(state->i2c, &msg, 1); in au8522_writereg() 44 return (ret != 1) ? -1 : 0; in au8522_writereg() 55 { .addr = state->config.demod_address, .flags = 0, in au8522_readreg() 57 { .addr = state->config.demod_address, .flags = I2C_M_RD, in au8522_readreg() 60 ret = i2c_transfer(state->i2c, msg, 2); in au8522_readreg() 71 struct au8522_state *state = fe->demodulator_priv; in au8522_i2c_gate_ctrl() 75 if (state->operational_mode == AU8522_ANALOG_MODE) { in au8522_i2c_gate_ctrl() [all …]
|
/linux/drivers/staging/media/atomisp/pci/ |
H A D | ia_css_types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 * to be used in software layers that do not access the CSS API 24 * directly but still need to forward parameters for it. 71 /* Min and max exposure IDs. These macros are here to allow 72 * the drivers to get this information. Changing these macros 103 /* Vector with signed values. This is used to indicate motion for 104 * Digital Image Stabilization. 149 * This structure contains the information necessary to generate 152 * and the driver needs to get it to generate the shading table. 154 * Before the shading correction is applied, NxN-filter and/or scaling [all …]
|
H A D | atomisp_cmd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 28 #include <media/v4l2-subdev.h> 67 /* Get internal fmt according to V4L2 fmt */ 73 * Function to enable/disable lens geometry distortion correction (GDC) and 79 /* Function to enable/disable low light mode (including ANR) */ 84 * Function to enable/disable extra noise reduction (XNR) in low light 92 /* Function to configure noise reduction */ 96 /* Function to configure temporal noise reduction (TNR) */ 100 /* Function to configure black level compensation */ 104 /* Function to configure edge enhancement */ [all …]
|
/linux/drivers/gpu/drm/amd/pm/powerplay/inc/ |
H A D | hardwaremanager.h | 4 * Permission is hereby granted, free of charge, to any person obtaining a 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 92 …manceStateOnly, /* indicates only performance power state to be used on current s… 94 …PHM_PlatformCaps_DisableMGClockGating, /* to disable Medium Grain Clock Gating or… 95 …PHM_PlatformCaps_DisableMGCGTSSM, /* TO disable Medium Grain Clock Gating Sh… 97 PHM_PlatformCaps_DisablePowerGating, /* to disable power gating */ [all …]
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | msm8939-longcheer-l9100.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 /dts-v1/; 5 #include "msm8939-pm8916.dtsi" 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/leds/common.h> 11 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 12 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h> 17 chassis-type = "handset"; [all …]
|
/linux/lib/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 31 converting bitfields between a CPU-usable representation and a 33 - Is little endian (bytes are reversed within a 32-bit group) 34 - The least-significant 32-bit word comes first (within a 64-bit 36 - The most significant bit of a byte is at its right (bit 0 of a 38 Drivers may use these helpers to match the bit indices as described 50 This option enables the use of hardware bit-reversal instructions on 90 bool "Access I/O in non-MMIO mode" 96 mechanism, the host-local I/O resource can be mapped into system 98 system can access the I/O devices with the mapped-logic PIO through [all …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | ste-ux500-samsung-janice.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice. 6 /dts-v1/; 7 #include "ste-db8500.dtsi" 8 #include "ste-ab8500.dtsi" 9 #include "ste-dbx5x0-pinctrl.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq.h> [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap4-sdp.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ 5 /dts-v1/; 9 #include "omap4-mcpdm.dtsi" 13 compatible = "ti,omap4-sdp", "ti,omap4430", "ti,omap4"; 26 vdd_eth: fixedregulator-vdd-eth { 27 pinctrl-names = "default"; 28 pinctrl-0 = <&enet_enable_gpio>; 30 compatible = "regulator-fixed"; 31 regulator-name = "VDD_ETH"; [all …]
|
/linux/drivers/staging/media/atomisp/include/linux/ |
H A D | atomisp.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 46 * Camera HAL sets this flag in v4l2_buffer reserved2 to indicate this 47 * buffer has a per-frame parameter. 130 /* [gain] The strength of sharpness in pell-mell area. u5_11 */ 202 /* DVS 2.0 Coefficient types. This structure contains 4 pointers to 213 * DVS 2.0 Statistic types. This structure contains 4 pointers to 248 * Because we have 2 pipes at max to output metadata, therefore driver will use 249 * ATOMISP_MAIN_METADATA to specify the metadata from the pipe which keeps 250 * streaming always and use ATOMISP_SEC_METADATA to specify the metadata from 277 unsigned int gr; /* unsigned <integer_bits>.<16-integer_bits> */ [all …]
|
/linux/drivers/hwmon/pmbus/ |
H A D | mp2888.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers 46 return -ENODATA; in mp2888_read_byte_data() 57 * , bits 0-2. The value is selected as below: in mp2888_current_sense_gain_and_resolution_get() 58 * 00b - 5µA/A, 01b - 8.5µA/A, 10b - 9.7µA/A, 11b - 10µA/A. Other in mp2888_current_sense_gain_and_resolution_get() 67 data->curr_sense_gain = 85; in mp2888_current_sense_gain_and_resolution_get() 70 data->curr_sense_gain = 97; in mp2888_current_sense_gain_and_resolution_get() 73 data->curr_sense_gain = 100; in mp2888_current_sense_gain_and_resolution_get() 76 data->curr_sense_gain = 50; in mp2888_current_sense_gain_and_resolution_get() 79 return -EINVAL; in mp2888_current_sense_gain_and_resolution_get() [all …]
|
H A D | mp2975.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers 138 return -ENODATA; in mp2975_read_byte_data() 157 return 250 + (val - 1) * 5; in mp2975_vid2direct() 161 return 500 + (val - 1) * 10; in mp2975_vid2direct() 165 return 200 + (val - 1) * 10; in mp2975_vid2direct() 168 return -EINVAL; in mp2975_vid2direct() 176 /* Converts a milli-unit DIRECT value to LINEAR11 format */ 191 /* Increase small mantissa to improve precision */ in mp2975_data2reg_linear11() 192 while (val < MIN_LIN_MANTISSA && exponent > -15) { in mp2975_data2reg_linear11() [all …]
|