/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/drivers/iio/adc/ |
H A D | ti-adc081c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI ADC081C/ADC101C/ADC121C 8/10/12-bit ADC driver 14 * bits handled. For the 8-bit and 10-bit models the least-significant 4 or 2 15 * bits of value registers are reserved. 50 struct adc081c *adc = iio_priv(iio); in adc081c_read_raw() local 55 err = i2c_smbus_read_word_swapped(adc->i2c, REG_CONV_RES); in adc081c_read_raw() 59 *value = (err & 0xFFF) >> (12 - adc->bits); in adc081c_read_raw() 63 err = regulator_get_voltage(adc->ref); in adc081c_read_raw() 68 *shift = adc->bits; in adc081c_read_raw() 76 return -EINVAL; in adc081c_read_raw() [all …]
|
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 | viperboard_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Nano River Technologies viperboard IIO ADC driver 7 * All rights reserved. 56 struct vprbrd_adc *adc = iio_priv(iio_dev); in vprbrd_iio_read_raw() local 57 struct vprbrd *vb = adc->vb; in vprbrd_iio_read_raw() 58 struct vprbrd_adc_msg *admsg = (struct vprbrd_adc_msg *)vb->buf; in vprbrd_iio_read_raw() 62 mutex_lock(&vb->lock); in vprbrd_iio_read_raw() 64 admsg->cmd = VPRBRD_ADC_CMD_GET; in vprbrd_iio_read_raw() 65 admsg->chan = chan->channel; in vprbrd_iio_read_raw() 66 admsg->val = 0x00; in vprbrd_iio_read_raw() [all …]
|
H A D | stm32-dfsdm-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file is the ADC part of the STM32 DFSDM driver 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 10 #include <linux/dma-mapping.h> 11 #include <linux/iio/adc/stm32-dfsdm-adc.h> 14 #include <linux/iio/hw-consumer.h> 16 #include <linux/iio/timer/stm32-lptim-trigger.h> 17 #include <linux/iio/timer/stm32-timer-trigger.h> 29 #include "stm32-dfsdm.h" 44 /* Limit filter output resolution to 31 bits. (i.e. sample range is +/-2^30) */ [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 …]
|
/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-opp-mowgli.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 3 #include "aspeed-g5.dtsi" 4 #include <dt-bindings/gpio/aspeed-gpio.h> 5 #include <dt-bindings/leds/leds-pca955x.h> 9 compatible = "ibm,mowgli-bmc", "aspeed,ast2500"; 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; [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-opp-lanyang.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 = "inventec,lanyang-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-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-vegman.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 4 #include "aspeed-g5.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; 29 compatible = "shared-dma-pool"; 36 record-size = <0x2000>; 37 console-size = <0x2000>; [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 …]
|
/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 …]
|
/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 | pm8150.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. 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 pm8150-thermal { 15 polling-delay-passive = <100>; 17 thermal-sensors = <&pm8150_temp>; [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. 19 #include <dt-bindings/iio/adi,ad5592r.h> 21 #include "ad5592r-base.h" 29 mutex_lock(&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() 36 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_get() [all …]
|