Home
last modified time | relevance | path

Searched +full:adc +full:- +full:reserved +full:- +full:channels (Results 1 – 25 of 136) sorted by relevance

123456

/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/adc/
H A Dcosmic,10001-adc.yaml1 # 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 …]
/OK3568_Linux_fs/kernel/drivers/iio/adc/
H A Dti-adc081c.c1 // 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 Dqcom-pm8xxx-xoadc.c1 // 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 …]
H A Dcc10001_adc.c1 // 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 …]
H A Dstm32-adc.c1 // 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 …]
H A Dstm32-dfsdm-adc.c1 // 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 …]
H A Dviperboard_adc.c1 // 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 Dat91_adc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for the ADC present in the Atmel AT91 evaluation boards.
40 #define AT91_ADC_TSAMOD (3 << 0) /* ADC mode */
41 #define AT91_ADC_TSAMOD_ADC_ONLY_MODE (0 << 0) /* ADC Mode */
105 #define AT91_ADC_ACR_PENDETSENS (0x3 << 0) /* pull-up resistor */
139 (st->registers->channel_base + (ch * 4))
141 (readl_relaxed(st->reg_base + reg))
143 (writel_relaxed(val, st->reg_base + reg))
157 * struct at91_adc_reg_desc - Various informations relative to registers
163 * @mr_prescal_mask: Mask of the PRESCAL field in the adc MR register
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Daspeed-bmc-opp-mowgli.dts1 // 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 Daspeed-bmc-opp-lanyang.dts1 // 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 Daspeed-bmc-intel-s2600wf.dts1 // 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 Daspeed-bmc-facebook-wedge400.dts1 // 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 …]
H A Daspeed-bmc-inspur-on5263m5.dts1 // 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 Daspeed-bmc-microsoft-olympus.dts1 //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 Daspeed-bmc-opp-mihawk.dts1 // 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 …]
H A Daspeed-bmc-quanta-q71l.dts1 // 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 Daspeed-bmc-facebook-cmm.dts1 // 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 …]
/OK3568_Linux_fs/kernel/include/dt-bindings/iio/
H A Dqcom,spmi-vadc.h1 /* 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 …]
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/include/
H A Devent_log_payload.h24 * <<Broadcom-WL-IPTag/Dual:>>
87 * Two of these will be used per TxQ context---one for the high TxQ, and one for
88 * the low txq that contains DMA prepared pkts. The high TxQ is a full multi-precidence
123 * a cubby ID and sub-ID to differentiate SCB cubby types and possible sub-queues.
202 uint8 pad[3]; /* reserved, zero */
225 #define WL_SSUM_CLIENT_MASK 0x1C0u /* bit 8 - 6 */
228 #define WL_SSUM_MODE_MASK 0xE00u /* bit 11 - 9 */
273 uint32 total_chan_num; /* Total number of channels scanned */
283 uint8 reserved; member
297 /* flags[4] or HOME_CHAN = if set, represents home-channel */
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/
H A Devent_log_payload.h24 * <<Broadcom-WL-IPTag/Dual:>>
87 * Two of these will be used per TxQ context---one for the high TxQ, and one for
88 * the low txq that contains DMA prepared pkts. The high TxQ is a full multi-precidence
123 * a cubby ID and sub-ID to differentiate SCB cubby types and possible sub-queues.
202 uint8 pad[3]; /* reserved, zero */
225 #define WL_SSUM_CLIENT_MASK 0x1C0u /* bit 8 - 6 */
228 #define WL_SSUM_MODE_MASK 0xE00u /* bit 11 - 9 */
273 uint32 total_chan_num; /* Total number of channels scanned */
283 uint8 reserved; member
297 /* flags[4] or HOME_CHAN = if set, represents home-channel */
[all …]
/OK3568_Linux_fs/kernel/sound/mips/
H A Dad1843.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/iio/dac/
H A Dad5592r-base.c1 // 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 mutex_lock(&st->gpio_lock); in ad5592r_gpio_get()
32 if (st->gpio_out & BIT(offset)) in ad5592r_gpio_get()
33 val = st->gpio_val; in ad5592r_gpio_get()
35 ret = st->ops->gpio_read(st, &val); in ad5592r_gpio_get()
37 mutex_unlock(&st->gpio_lock); in ad5592r_gpio_get()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/include/
H A Devent_log_payload.h9 * Copyright (C) 1999-2017, Broadcom Corporation
30 * <<Broadcom-WL-IPTag/Open:>>
65 * Two of these will be used per TxQ context---one for the high TxQ, and one for
66 * the low txq that contains DMA prepared pkts. The high TxQ is a full multi-precidence
101 * a cubby ID and sub-ID to differentiate SCB cubby types and possible sub-queues.
180 uint8 pad[3]; /* reserved, zero */
227 uint32 total_chan_num; /* Total number of channels scanned */
237 uint8 reserved; member
251 /* flags[4] or HOME_CHAN = if set, represents home-channel */
252 /* flags[5:15] = reserved */
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/
H A Devent_log_payload.h9 * Copyright (C) 1999-2017, Broadcom Corporation
30 * <<Broadcom-WL-IPTag/Open:>>
65 * Two of these will be used per TxQ context---one for the high TxQ, and one for
66 * the low txq that contains DMA prepared pkts. The high TxQ is a full multi-precidence
101 * a cubby ID and sub-ID to differentiate SCB cubby types and possible sub-queues.
180 uint8 pad[3]; /* reserved, zero */
227 uint32 total_chan_num; /* Total number of channels scanned */
237 uint8 reserved; member
251 /* flags[4] or HOME_CHAN = if set, represents home-channel */
252 /* flags[5:15] = reserved */
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/include/
H A Devent_log_payload.h9 * Copyright (C) 1999-2017, Broadcom Corporation
30 * <<Broadcom-WL-IPTag/Open:>>
65 * Two of these will be used per TxQ context---one for the high TxQ, and one for
66 * the low txq that contains DMA prepared pkts. The high TxQ is a full multi-precidence
101 * a cubby ID and sub-ID to differentiate SCB cubby types and possible sub-queues.
180 uint8 pad[3]; /* reserved, zero */
227 uint32 total_chan_num; /* Total number of channels scanned */
237 uint8 reserved; member
251 /* flags[4] or HOME_CHAN = if set, represents home-channel */
252 /* flags[5:15] = reserved */
[all …]

123456