| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/iio/adc/ |
| D | cc10001_adc.txt | 1 * Cosmic Circuits - Analog to Digital Converter (CC-10001-ADC) 4 - compatible: Should be "cosmic,10001-adc" 5 - reg: Should contain adc registers location and length. 6 - clock-names: Should contain "adc". 7 - clocks: Should contain a clock specifier for each entry in clock-names 8 - vref-supply: The regulator supply ADC reference voltage. 11 - adc-reserved-channels: Bitmask of reserved channels, 12 i.e. channels that cannot be used by the OS. 15 adc: adc@18101600 { 16 compatible = "cosmic,10001-adc"; [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| 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. 49 struct adc081c *adc = iio_priv(iio); in adc081c_read_raw() local 54 err = i2c_smbus_read_word_swapped(adc->i2c, REG_CONV_RES); in adc081c_read_raw() 58 *value = (err & 0xFFF) >> (12 - adc->bits); in adc081c_read_raw() 62 err = regulator_get_voltage(adc->ref); in adc081c_read_raw() 67 *shift = adc->bits; in adc081c_read_raw() 75 return -EINVAL; in adc081c_read_raw() [all …]
|
| D | qcom-pm8xxx-xoadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * specific-purpose and general purpose ADC converters and channels. 24 #include "qcom-vadc-common.h" 28 * Qualcomm tree. Their kernel has two out-of-tree drivers for the ADC: 29 * drivers/misc/pmic8058-xoadc.c 30 * drivers/hwmon/pm8xxx-adc.c 58 /* Proper ADC registers */ 100 * On a later ADC the decimation factors are defined as 124 * Physical channels which MUST exist on all PM variants in order to provide 156 * struct xoadc_channel - encodes channel properties and defaults [all …]
|
| D | stm32-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file is part of STM32 ADC driver 5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved 11 #include <linux/dma-mapping.h> 15 #include <linux/iio/timer/stm32-lptim-trigger.h> 16 #include <linux/iio/timer/stm32-timer-trigger.h> 29 #include "stm32-adc-core.h" 34 /* BOOST bit must be set on STM32H7 when ADC clock is above 20MHz */ 37 #define STM32_ADC_CH_MAX 20 /* max number of channels */ 55 /* extsel - trigger mux selection value */ [all …]
|
| 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> 13 #include <linux/iio/hw-consumer.h> 15 #include <linux/iio/timer/stm32-lptim-trigger.h> 16 #include <linux/iio/timer/stm32-timer-trigger.h> 27 #include "stm32-dfsdm.h" 42 /* Limit filter output resolution to 31 bits. (i.e. sample range is +/-2^30) */ [all …]
|
| D | cc10001_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2014-2015 Imagination Technologies Ltd. 48 * As per device specification, wait six clock cycles after power-up to 70 writel(val, adc_dev->reg_base + reg); in cc10001_adc_write_reg() 76 return readl(adc_dev->reg_base + reg); in cc10001_adc_read_reg() 82 ndelay(adc_dev->start_delay_ns); in cc10001_adc_power_up() 147 indio_dev = pf->indio_dev; in cc10001_adc_trigger_h() 149 data = adc_dev->buf; in cc10001_adc_trigger_h() 151 mutex_lock(&adc_dev->lock); in cc10001_adc_trigger_h() 153 if (!adc_dev->shared) in cc10001_adc_trigger_h() [all …]
|
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/iio/adc/ |
| D | ti-adc081c.c | 2 * TI ADC081C/ADC101C/ADC121C 8/10/12-bit ADC driver 17 * bits handled. For the 8-bit and 10-bit models the least-significant 4 or 2 18 * bits of value registers are reserved. 53 struct adc081c *adc = iio_priv(iio); in adc081c_read_raw() local 58 err = i2c_smbus_read_word_swapped(adc->i2c, REG_CONV_RES); in adc081c_read_raw() 62 *value = (err & 0xFFF) >> (12 - adc->bits); in adc081c_read_raw() 66 err = regulator_get_voltage(adc->ref); in adc081c_read_raw() 71 *shift = adc->bits; in adc081c_read_raw() 79 return -EINVAL; in adc081c_read_raw() 90 .shift = 12 - (_bits), \ [all …]
|
| D | qcom-pm8xxx-xoadc.c | 6 * specific-purpose and general purpose ADC converters and channels. 23 #include "qcom-vadc-common.h" 27 * Qualcomm tree. Their kernel has two out-of-tree drivers for the ADC: 28 * drivers/misc/pmic8058-xoadc.c 29 * drivers/hwmon/pm8xxx-adc.c 57 /* Proper ADC registers */ 99 * On a later ADC the decimation factors are defined as 123 * Physical channels which MUST exist on all PM variants in order to provide 155 * struct xoadc_channel - encodes channel properties and defaults 162 * @prescale: the channels have hard-coded prescale ratios defined [all …]
|
| D | stm32-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * This file is part of STM32 ADC driver 5 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved 11 #include <linux/dma-mapping.h> 15 #include <linux/iio/timer/stm32-lptim-trigger.h> 16 #include <linux/iio/timer/stm32-timer-trigger.h> 28 #include "stm32-adc-core.h" 33 /* BOOST bit must be set on STM32H7 when ADC clock is above 20MHz */ 36 #define STM32_ADC_CH_MAX 20 /* max number of channels */ 53 /* extsel - trigger mux selection value */ [all …]
|
| 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> 13 #include <linux/iio/hw-consumer.h> 22 #include "stm32-dfsdm.h" 58 /* ADC specific */ 110 for (p = list; p && p->name; p++) in stm32_dfsdm_str2val() 111 if (!strcmp(p->name, str)) in stm32_dfsdm_str2val() [all …]
|
| D | viperboard_adc.c | 2 * Nano River Technologies viperboard IIO ADC driver 6 * All rights reserved. 61 struct vprbrd_adc *adc = iio_priv(iio_dev); in vprbrd_iio_read_raw() local 62 struct vprbrd *vb = adc->vb; in vprbrd_iio_read_raw() 63 struct vprbrd_adc_msg *admsg = (struct vprbrd_adc_msg *)vb->buf; in vprbrd_iio_read_raw() 67 mutex_lock(&vb->lock); in vprbrd_iio_read_raw() 69 admsg->cmd = VPRBRD_ADC_CMD_GET; in vprbrd_iio_read_raw() 70 admsg->chan = chan->channel; in vprbrd_iio_read_raw() 71 admsg->val = 0x00; in vprbrd_iio_read_raw() 73 ret = usb_control_msg(vb->usb_dev, in vprbrd_iio_read_raw() [all …]
|
| D | cc10001_adc.c | 2 * Copyright (c) 2014-2015 Imagination Technologies Ltd. 52 * As per device specification, wait six clock cycles after power-up to 74 writel(val, adc_dev->reg_base + reg); in cc10001_adc_write_reg() 80 return readl(adc_dev->reg_base + reg); in cc10001_adc_read_reg() 86 ndelay(adc_dev->start_delay_ns); in cc10001_adc_power_up() 151 indio_dev = pf->indio_dev; in cc10001_adc_trigger_h() 153 data = adc_dev->buf; in cc10001_adc_trigger_h() 155 mutex_lock(&adc_dev->lock); in cc10001_adc_trigger_h() 157 if (!adc_dev->shared) in cc10001_adc_trigger_h() 161 delay_ns = adc_dev->eoc_delay_ns / CC10001_MAX_POLL_COUNT; in cc10001_adc_trigger_h() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/boot/dts/ |
| 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 …]
|
| 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 …]
|
| D | aspeed-bmc-opp-zaius.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 = "ingrasys,zaius-bmc", "aspeed,ast2500"; 11 stdout-path = &uart5; 19 reserved-memory { 20 #address-cells = <1>; 21 #size-cells = <1>; 25 no-map; [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| 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 …]
|
| 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 …]
|
| 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 …]
|
| 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 …]
|
| D | aspeed-bmc-facebook-wedge400.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include "ast2500-facebook-netbmc-common.dtsi" 10 compatible = "facebook,wedge400-bmc", "aspeed,ast2500"; 14 * PCA9548 (2-0070) provides 8 channels connecting to 27 * PCA9548 (8-0070) provides 8 channels connecting to 40 * PCA9548 (11-0076) provides 8 channels connecting to 56 stdout-path = &uart1; 60 ast-adc-hwmon { [all …]
|
| 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 …]
|
| D | aspeed-bmc-opp-mihawk.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,mihawk-bmc", "aspeed,ast2500"; 59 stdout-path = &uart5; 67 reserved-memory { 68 #address-cells = <1>; 69 #size-cells = <1>; [all …]
|
| /kernel/linux/linux-5.10/include/dt-bindings/iio/ |
| 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 */ 249 /* 30k pull-up1 */ [all …]
|