| /linux/Documentation/devicetree/bindings/iio/proximity/ |
| H A D | semtech,sx9310.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Daniel Campello <campello@chromium.org> 16 https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310 19 - $ref: /schemas/iio/iio.yaml# 24 - semtech,sx9310 25 - semtech,sx9311 37 vdd-supply: 40 svdd-supply: [all …]
|
| /linux/Documentation/driver-api/iio/ |
| H A D | intro.rst | 9 analog-to-digital conversion (ADC) or digital-to-analog conversion (DAC) 12 sensors used to monitor and control the system itself, like fan speed control 25 * color and light sensors 27 * pressure sensors 28 * proximity sensors 29 * temperature sensors 31 Usually these sensors are connected via :doc:`SPI <../spi>` or 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/Documentation/ABI/testing/ |
| H A D | sysfs-driver-hid-wiimote | 22 be combined with the other two. 24 Starting with kernel-version 3.11 Motion Plus hotplugging is 26 extension. You will get uevent notifications for the motion-plus 40 Other strings for each device-type are available and may be 41 added if new device-specific detections are added. 57 values for all 4 sensors. The values are separated by colons and 59 First, 0kg values for all 4 sensors are written, followed by the 60 17kg values for all 4 sensors and last the 34kg values for all 4 61 sensors. 64 values but may be used by user-space to perform other [all …]
|
| /linux/drivers/iio/proximity/ |
| H A D | sx9310.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * linux-driver-SX9310_NoSmartHSensing>. 264 ret = regmap_write(data->regmap, SX9310_REG_SENSOR_SEL, chan->channel); in sx9310_read_prox_data() 268 return regmap_bulk_read(data->regmap, chan->address, val, sizeof(*val)); in sx9310_read_prox_data() 280 ret = regmap_read(data->regmap, SX9310_REG_PROX_CTRL0, &val); in sx9310_wait_for_sample() 297 ret = regmap_read(data->regmap, SX9310_REG_PROX_CTRL3, ®val); in sx9310_read_gain() 301 switch (chan->channel) { in sx9310_read_gain() 311 return -EINVAL; in sx9310_read_gain() 324 ret = regmap_read(data->regmap, SX9310_REG_PROX_CTRL0, ®val); in sx9310_read_samp_freq() 342 if (chan->type != IIO_PROXIMITY) in sx9310_read_raw() [all …]
|
| /linux/Documentation/misc-devices/ |
| H A D | bh1770glc.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 - ROHM BH1770GLC 10 - OSRAM SFH7770 19 ----------- 20 BH1770GLC and SFH7770 are combined ambient light and proximity sensors. 28 Proximity part contains IR-led driver up to 3 IR leds. The chip measures 49 ----- 52 RO - shows detected chip type and version 55 RW - enable / disable chip 59 - 1 enables the chip [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sc7180-trogdor-lazor.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include "sc7180-trogdor-clamshell.dtsi" 11 semtech,cs0-ground; 12 semtech,combined-sensors = <3>; 14 semtech,startup-sensor = <0>; 15 semtech,proxraw-strength = <8>; 16 semtech,avg-pos-strength = <64>; 34 clock-frequency = <400000>; 37 compatible = "hid-over-i2c"; 39 pinctrl-names = "default"; [all …]
|
| /linux/Documentation/w1/slaves/ |
| H A D | w1_therm.rst | 7 * Maxim ds18*20 based temperature sensors. 8 * Maxim ds1825 based temperature sensors. 16 ----------- 49 -1 if at least one sensor still in conversion, 1 if conversion is complete 72 the sensor. Resolution is reset when the sensor gets power-cycled. 81 Some non-genuine DS18B20 chips are fixed in 12-bit mode only, so the actual 86 The write-only sysfs entry ``eeprom_cmd`` is an alternative for EEPROM operations. 94 Values shall be space separated and in the device range (typical -55 degC 106 be force-enabled. 118 location of the chip in the 1-wire bus without needing pre-existing [all …]
|
| /linux/drivers/thermal/qcom/ |
| H A D | tsens.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/nvmem-consumer.h> 26 * struct tsens_irq_data - IRQ status and temperature violations 81 if (priv->num_sensors > MAX_SENSORS) in tsens_read_calibration() 82 return -EINVAL; in tsens_read_calibration() 88 ret = nvmem_cell_read_variable_le_u32(priv->dev, name, &mode); in tsens_read_calibration() 89 if (ret == -ENOENT) in tsens_read_calibration() 90 dev_warn(priv->dev, "Please migrate to separate nvmem cells for calibration data\n"); in tsens_read_calibration() 94 dev_dbg(priv->dev, "calibration mode is %d\n", mode); in tsens_read_calibration() 100 ret = nvmem_cell_read_variable_le_u32(priv->dev, name, &base1); in tsens_read_calibration() [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-ls208xa.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for Freescale Layerscape-2080A family SoC. 6 * Copyright 2017-2020 NXP 12 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 13 #include <dt-bindings/thermal/thermal.h> 14 #include <dt-bindings/interrupt-controller/arm-gic.h> 18 interrupt-parent = <&gic>; 19 #address-cells = <2>; 20 #size-cells = <2>; 32 #address-cells = <1>; [all …]
|
| H A D | fsl-lx2160a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 // Device Tree Include file for Layerscape-LX2160A family SoC. 5 // Copyright 2018-2020 NXP 7 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/thermal/thermal.h> 16 interrupt-parent = <&gic>; 17 #address-cells = <2>; 18 #size-cells = <2>; [all …]
|
| H A D | fsl-ls1088a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1088A family SoC. 5 * Copyright 2017-2020 NXP 10 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #include <dt-bindings/thermal/thermal.h> 16 interrupt-parent = <&gic>; 17 #address-cells = <2>; 18 #size-cells = <2>; 26 #address-cells = <1>; [all …]
|
| H A D | fsl-ls1028a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1028A family SoC. 5 * Copyright 2018-2020 NXP 11 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/thermal/thermal.h> 17 interrupt-parent = <&gic>; 18 #address-cells = <2>; 19 #size-cells = <2>; 22 #address-cells = <1>; [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | smu.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 25 * These commands are used to retrieve the sdb-partition-XX datas from 31 * - 0..1 : partition address 32 * - 2 : a byte containing the partition ID 33 * - 3 : length (maybe other bits are rest of header ?) 53 * --------------------- 66 * ------------------------ 115 * 0: bus number (from device-tree usually, SMU has lots of busses !) 117 * 2: device address. For combined and combined4 type transfers, this 123 * 7: combined address (device address for combined mode data phase) [all …]
|
| /linux/drivers/misc/ |
| H A D | Kconfig | 1 # 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/> 112 UFS. Provides interface for in-kernel security controllers to access 211 called smpro-errmon. 221 called smpro-misc. 224 tristate "CS5535/CS5536 Geode Multi-Function General Purpose Timer (MFGPT) support" [all …]
|
| /linux/include/linux/ |
| H A D | i2c.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * i2c.h - definitions for the Linux i2c bus interface 4 * Copyright (C) 1995-2000 Simon G. Vogl 5 * Copyright (C) 2013-2019 Wolfram Sang <wsa@kernel.org> 30 /* --- General options ------------------------------------------------ */ 69 * i2c_master_recv - issue a single I2C message in master receive mode 83 * i2c_master_recv_dmasafe - issue a single I2C message in master receive mode 99 * i2c_master_send - issue a single I2C message in master transmit mode 113 * i2c_master_send_dmasafe - issue a single I2C message in master transmit mode 195 * struct i2c_device_identity - i2c client device identification [all …]
|
| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| H A D | txgbe_type.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (c) 2015 - 2022 Beijing WangXun Technology Co., Ltd. */ 47 /* Combined interface*/ 56 #define TXGBE_MIS_RST_MAC_RST(_i) BIT(20 - (_i) * 3) 58 #define TXGBE_MIS_PRB_CTL_LAN_UP(_i) BIT(1 - (_i)) 65 /* Sensors for PVT(Process Voltage Temperature) */ 123 #define TXGBE_RDB_FDIR_IP6(_i) (0x1950C + ((_i) * 4)) /* 0-2 */ 239 * vm_pool - 1 byte 240 * flow_type - 1 byte 241 * vlan_id - 2 bytes [all …]
|
| /linux/drivers/hwmon/ |
| H A D | asb100.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * asb100.c - Part of lm_sensors, Linux kernel modules for hardware 10 * Copyright (C) 1998 - 2003 Frodo Looijaard <frodol@dds.nl>, 17 * ASB100-A "BACH". 19 * ASB100-A supports pwm1, while plain ASB100 does not. There is no known 32 #include <linux/hwmon-sysfs.h> 33 #include <linux/hwmon-vid.h> 48 /* Voltage IN registers 0-6 */ 53 /* FAN IN registers 1-3 */ 57 /* TEMPERATURE registers 1-4 */ [all …]
|
| H A D | w83791d.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * w83791d.c - Part of lm_sensors, Linux kernel modules for hardware 6 * Copyright (C) 2006-2007 Charles Spirakis <bezaur@gmail.com> 19 * The w83791g chip is the same as the w83791d but lead-free. 27 #include <linux/hwmon-vid.h> 28 #include <linux/hwmon-sysfs.h> 64 0x25, /* -12VIN in DataSheet */ 65 0x26, /* -5VIN in DataSheet */ 77 0x35, /* -12VIN High Limit in DataSheet */ 78 0x37, /* -5VIN High Limit in DataSheet */ [all …]
|
| H A D | adm1026.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * adm1026.c - Part of lm_sensors, Linux kernel modules for hardware 19 #include <linux/hwmon-sysfs.h> 20 #include <linux/hwmon-vid.h> 27 static int gpio_input[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 28 -1, -1, -1, -1, -1, -1, -1, -1 }; 29 static int gpio_output[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 30 -1, -1, -1, -1, -1, -1, -1, -1 }; 31 static int gpio_inverted[17] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, 32 -1, -1, -1, -1, -1, -1, -1, -1 }; [all …]
|
| H A D | it87.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * it87.c - Part of lm_sensors, Linux kernel modules for hardware 6 * The IT8705F is an LPC-based Super I/O part that contains UARTs, a 41 * Copyright (C) 2005-2010 Jean Delvare <jdelvare@suse.de> 53 #include <linux/hwmon-sysfs.h> 54 #include <linux/hwmon-vid.h> 126 return -EBUSY; in superio_enter() 212 /*----- The IT87 registers -----*/ 222 * Super-I/O configuration space. 231 * for fan divisors. Later IT8712F revisions must use 16-bit tachometer [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| 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 …]
|
| /linux/Documentation/driver-api/media/ |
| H A D | v4l2-subdev.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 V4L2 sub-devices 4 ---------------- 6 Many drivers need to communicate with sub-devices. These devices can do all 8 encoding or decoding. For webcams common sub-devices are sensors and camera 12 driver with a consistent interface to these sub-devices the 13 :c:type:`v4l2_subdev` struct (v4l2-subdev.h) was created. 15 Each sub-device driver must have a :c:type:`v4l2_subdev` struct. This struct 16 can be stand-alone for simple sub-devices or it might be embedded in a larger 18 low-level device struct (e.g. ``i2c_client``) that contains the device data as [all …]
|
| /linux/drivers/iio/light/ |
| H A D | apds9160.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Chip is combined proximity and ambient light sensor. 5 * Author: 2024 Mikael Gonella-Bolduc <m.gonella.bolduc@gmail.com> 108 { APDS9160_REG_CTRL, 0x00 }, /* Sensors disabled by default */ 337 * struct apds9160_scale - apds9160 scale mapping definition 587 ret = regmap_field_write(data->reg_ps_rate, in apds9160_set_ps_rate() 591 data->ps_rate = val; in apds9160_set_ps_rate() 596 return -EINVAL; in apds9160_set_ps_rate() 609 ret = regmap_field_write(data->reg_ps_gain, in apds9160_set_ps_gain() 613 data->ps_gain = val; in apds9160_set_ps_gain() [all …]
|
| H A D | si1133.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * si1133.c - Support for Silabs SI1133 combined ambient 4 * light and UV index sensors 6 * Copyright 2018 Maxime Roussin-Belanger <maxime.roussinbelanger@gmail.com> 225 {-2671, 234} 230 {-1022, 36363}, 232 { -367, 57909}, 233 {-1774, 38240}, 234 { -608, 46775}, 235 {-1503, 51831}, [all …]
|
| /linux/arch/arm/boot/dts/st/ |
| H A D | ste-nomadik-stn8815.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Device Tree for the ST-Ericsson Nomadik 8815 STn8815 SoC 6 #include <dt-bindings/gpio/gpio.h> 9 #address-cells = <1>; 10 #size-cells = <1>; 18 L2: cache-controller { 19 compatible = "arm,l210-cache"; 21 interrupt-parent = <&vica>; 23 cache-unified; 24 cache-level = <2>; [all …]
|