| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A D | cosmic,10001-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/cosmic,10001-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Cosmic Circuits CC-10001 ADC 10 - Jonathan Cameron <jic23@kernel.org> 13 Cosmic Circuits 10001 10-bit ADC device. 17 const: cosmic,10001-adc 22 adc-reserved-channels: 25 Bitmask of reserved channels, i.e. channels that cannot be [all …]
|
| H A D | st,stm32-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STM32 ADC 10 STM32 ADC is a successive approximation analog-to-digital converter. 11 It has several multiplexed input channels. Conversions can be performed 12 in single, continuous, scan or discontinuous mode. Result of the ADC is 13 stored in a left-aligned or right-aligned 32-bit data register. 17 voltage goes beyond the user-defined, higher or lower thresholds. [all …]
|
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-supermicro-x11spi.dts | 1 // SPDX-License-Identifier: GPL-2.0 4 /dts-v1/; 6 #include "aspeed-g5.dtsi" 10 compatible = "supermicro,x11spi-bmc", "aspeed,ast2500"; 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; 27 no-map; 32 iio-hwmon { [all …]
|
| H A D | aspeed-bmc-intel-s2600wf.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include "aspeed-g5.dtsi" 9 compatible = "intel,s2600wf-bmc", "aspeed,ast2500"; 12 stdout-path = &uart5; 20 reserved-memory { 21 #address-cells = <1>; 22 #size-cells = <1>; 26 no-map; 31 iio-hwmon { [all …]
|
| H A D | aspeed-bmc-ampere-mtjade.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 3 #include "aspeed-g5.dtsi" 4 #include <dt-bindings/gpio/aspeed-gpio.h> 8 compatible = "ampere,mtjade-bmc", "aspeed,ast2500"; 12 * i2c bus 50-57 assigned to NVMe slot 0-7 24 * i2c bus 60-67 assigned to NVMe slot 8-15 36 * i2c bus 70-77 assigned to NVMe slot 16-23 48 * i2c bus 80-81 assigned to NVMe M2 slot 0-1 60 stdout-path = &uart5; [all …]
|
| H A D | aspeed-bmc-tyan-s7106.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 4 #include "aspeed-g5.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 10 compatible = "tyan,s7106-bmc", "aspeed,ast2500"; 13 stdout-path = &uart5; 22 reserved-memory { 23 #address-cells = <1>; 24 #size-cells = <1>; [all …]
|
| H A D | aspeed-bmc-inspur-on5263m5.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include "aspeed-g5.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 10 compatible = "inspur,on5263m5-bmc", "aspeed,ast2500"; 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; 27 no-map; [all …]
|
| H A D | aspeed-bmc-microsoft-olympus.dts | 1 //SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "aspeed-g4.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 10 compatible = "microsoft,olympus-bmc", "aspeed,ast2400"; 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; 27 no-map; [all …]
|
| H A D | aspeed-bmc-quanta-q71l.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 3 #include "aspeed-g4.dtsi" 4 #include <dt-bindings/gpio/aspeed-gpio.h> 8 compatible = "quanta,q71l-bmc", "aspeed,ast2400"; 30 stdout-path = &uart5; 38 reserved-memory { 39 #address-cells = <1>; 40 #size-cells = <1>; 44 no-map; [all …]
|
| H A D | aspeed-bmc-tyan-s8036.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 4 #include "aspeed-g5.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 10 compatible = "tyan,s8036-bmc", "aspeed,ast2500"; 13 stdout-path = &uart5; 22 reserved-memory { 23 #address-cells = <1>; 24 #size-cells = <1>; [all …]
|
| H A D | aspeed-bmc-facebook-cmm.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "ast2500-facebook-netbmc-common.dtsi" 9 compatible = "facebook,cmm-bmc", "aspeed,ast2500"; 22 * PCA9548 (1-0077) provides 8 channels for connecting to 35 * PCA9548 (2-0071) provides 8 channels for connecting to 48 * PCA9548 (8-0077) provides 8 channels and the first 4 49 * channels are connecting to 4 Fan Control Boards. 61 * 2 PCA9548 (18-0070 & 18-0073), 16 channels connecting 82 * 2 PCA9548 (19-0070 & 19-0073), 16 channels connecting [all …]
|
| H A D | aspeed-bmc-amd-daytonax.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "aspeed-g5.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 10 compatible = "amd,daytonax-bmc", "aspeed,ast2500"; 16 reserved-memory { 17 #address-cells = <1>; 18 #size-cells = <1>; 24 compatible = "shared-dma-pool"; [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | cc10001_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2014-2015 Imagination Technologies Ltd. 47 * As per device specification, wait six clock cycles after power-up to 69 writel(val, adc_dev->reg_base + reg); in cc10001_adc_write_reg() 75 return readl(adc_dev->reg_base + reg); in cc10001_adc_read_reg() 81 ndelay(adc_dev->start_delay_ns); in cc10001_adc_power_up() 146 indio_dev = pf->indio_dev; in cc10001_adc_trigger_h() 148 data = adc_dev->buf; in cc10001_adc_trigger_h() 150 mutex_lock(&adc_dev->lock); in cc10001_adc_trigger_h() 152 if (!adc_dev->shared) in cc10001_adc_trigger_h() [all …]
|
| H A D | axp20x_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* ADC driver for AXP20X and AXP22X PMICs 5 * Quentin Schulz <quentin.schulz@free-electrons.com> 159 IIO_MAP("vbus_v", "axp20x-usb-power-supply", "vbus_v"), 160 IIO_MAP("vbus_i", "axp20x-usb-power-supply", "vbus_i"), 161 IIO_MAP("acin_v", "axp20x-ac-power-supply", "acin_v"), 162 IIO_MAP("acin_i", "axp20x-ac-power-supply", "acin_i"), 163 IIO_MAP("batt_v", "axp20x-battery-power-supply", "batt_v"), 164 IIO_MAP("batt_chrg_i", "axp20x-battery-power-supply", "batt_chrg_i"), 165 IIO_MAP("batt_dischrg_i", "axp20x-battery-power-supply", "batt_dischrg_i"), [all …]
|
| H A D | at91_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for the ADC present in the Atmel AT91 evaluation boards. 38 #define AT91_ADC_TSAMOD (3 << 0) /* ADC mode */ 39 #define AT91_ADC_TSAMOD_ADC_ONLY_MODE (0 << 0) /* ADC Mode */ 103 #define AT91_ADC_ACR_PENDETSENS (0x3 << 0) /* pull-up resistor */ 137 (st->registers->channel_base + (ch * 4)) 139 (readl_relaxed(st->reg_base + reg)) 141 (writel_relaxed(val, st->reg_base + reg)) 161 * struct at91_adc_trigger - description of triggers 163 * @value: value to set in the ADC's trigger setup register [all …]
|
| H A D | berlin2-adc.c | 2 * Marvell Berlin2 ADC driver 6 * Antoine Tenart <antoine.tenart@free-electrons.com> 31 #define BERLIN2_SM_CTRL_ADC_SEL(x) ((x) << 5) /* 0-15 */ 51 #define BERLIN2_SM_CTRL_TSEN_MODE_0_125 (0x0 << 22) /* 0-125 C */ 52 #define BERLIN2_SM_CTRL_TSEN_MODE_10_50 (0x1 << 22) /* 10-50 C */ 57 #define BERLIN2_SM_ADC_STATUS_DATA_RDY(x) BIT(x) /* 0-15 */ 59 #define BERLIN2_SM_ADC_STATUS_INT_EN(x) (BIT(x) << 16) /* 0-15 */ 96 BERLIN2_ADC_CHANNEL(4, IIO_VOLTAGE), /* reserved */ 97 BERLIN2_ADC_CHANNEL(5, IIO_VOLTAGE), /* reserved */ 105 BERLIN2_ADC_CHANNEL(7, IIO_VOLTAGE), /* reserved */ [all …]
|
| H A D | rohm-bd79124.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ROHM ADC driver for BD79124 ADC/GPO device 4 * https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79124muf-c-e.pdf 15 #include <linux/devm-helpers.h> 30 #include <linux/iio/adc-helpers.h> 203 return regmap_assign_bits(data->map, BD79124_REG_GPO_VAL, BIT(offset), in bd79124gpo_set() 221 ret = regmap_read(data->map, BD79124_REG_PINCFG, &all_gpos); in bd79124gpo_set_multiple() 226 dev_dbg(data->dev, "Invalid mux config. Can't set value.\n"); in bd79124gpo_set_multiple() 228 return -EINVAL; in bd79124gpo_set_multiple() 231 return regmap_update_bits(data->map, BD79124_REG_GPO_VAL, *mask, *bits); in bd79124gpo_set_multiple() [all …]
|
| /linux/include/dt-bindings/iio/ |
| H A D | qcom,spmi-vadc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2012-2014,2018,2020 The Linux Foundation. All rights reserved. 9 /* Voltage ADC channels */ 111 /* ADC channels for SPMI PMIC5 */ 143 /* 30k pull-up1 */ 161 /* 100k pull-up2 */ 179 /* 400k pull-up3 */ 207 /* Current and combined current/voltage channels */ 224 /* ADC channels for ADC for PMIC7 */ 252 /* 30k pull-up1 */ [all …]
|
| H A D | qcom,spmi-adc7-pmr735a.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2020 The Linux Foundation. All rights reserved. 13 #include <dt-bindings/iio/qcom,spmi-vadc.h> 15 /* ADC channels for PMR735A_ADC for PMIC7 */ 25 /* 100k pull-up2 */
|
| H A D | qcom,spmi-adc7-pmr735b.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2020 The Linux Foundation. All rights reserved. 13 #include <dt-bindings/iio/qcom,spmi-vadc.h> 15 /* ADC channels for PMR735B_ADC for PMIC7 */ 25 /* 100k pull-up2 */
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sc8180x-pmics.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2023, Linaro Limited 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/spmi/spmi.h> 10 #include <dt-bindings/iio/qcom,spmi-vadc.h> 13 thermal-zones { 14 pmc8180-thermal { 15 polling-delay-passive = <100>; [all …]
|
| H A D | pm8150l.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 7 #include <dt-bindings/iio/qcom,spmi-vadc.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/spmi/spmi.h> 12 thermal-zones { 13 pm8150l-thermal { 14 polling-delay-passive = <100>; 16 thermal-sensors = <&pm8150l_temp>; 43 compatible = "qcom,pm8150l", "qcom,spmi-pmic"; [all …]
|
| /linux/sound/mips/ |
| H A D | ad1843.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2003 Vivien Chappelier <vivien.chappelier@linux-mips.org> 9 * Copyright 1999 Silicon Graphics, Inc. All rights reserved. 35 ad1843_PDNO = { 0, 14, 1 }, /* Converter Power-Down Flag */ 37 ad1843_RIG = { 2, 0, 4 }, /* Right ADC Input Gain */ 38 ad1843_RMGE = { 2, 4, 1 }, /* Right ADC Mic Gain Enable */ 39 ad1843_RSS = { 2, 5, 3 }, /* Right ADC Source Select */ 40 ad1843_LIG = { 2, 8, 4 }, /* Left ADC Input Gain */ 41 ad1843_LMGE = { 2, 12, 1 }, /* Left ADC Mic Gain Enable */ 42 ad1843_LSS = { 2, 13, 3 }, /* Left ADC Source Select */ [all …]
|
| /linux/drivers/iio/dac/ |
| H A D | ad5592r-base.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * AD5592R Digital <-> Analog converters driver 5 * Copyright 2014-2016 Analog Devices Inc. 20 #include <dt-bindings/iio/adi,ad5592r.h> 22 #include "ad5592r-base.h" 30 scoped_guard(mutex, &st->gpio_lock) { in ad5592r_gpio_get() 31 if (st->gpio_out & BIT(offset)) in ad5592r_gpio_get() 32 val = st->gpio_val; in ad5592r_gpio_get() 34 ret = st->ops->gpio_read(st, &val); in ad5592r_gpio_get() 48 guard(mutex)(&st->gpio_lock); in ad5592r_gpio_set() [all …]
|
| /linux/arch/mips/boot/dts/img/ |
| H A D | pistachio_marduk.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 8 /dts-v1/; 14 compatible = "img,pistachio-marduk", "img,pistachio"; 26 stdout-path = "serial1:115200"; 34 reg_1v8: fixed-regulator { 35 compatible = "regulator-fixed"; 36 regulator-name = "aux_adc_vref"; 37 regulator-min-microvolt = <1800000>; 38 regulator-max-microvolt = <1800000>; 39 regulator-boot-on; [all …]
|