| /kernel/linux/linux-5.10/drivers/iio/adc/ |
| D | lpc18xx_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * IIO ADC driver for NXP LPC18xx ADC 8 * - Hardware triggers 9 * - Burst mode 10 * - Interrupts 11 * - DMA 14 #include <linux/clk.h> 27 /* LPC18XX ADC registers and bits */ 47 struct clk *clk; member 70 static int lpc18xx_adc_read_chan(struct lpc18xx_adc *adc, unsigned int ch) in lpc18xx_adc_read_chan() argument [all …]
|
| D | ingenic-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ADC driver for the Ingenic JZ47xx SoCs 4 * Copyright (c) 2019 Artur Rojek <contact@artur-rojek.eu> 6 * based on drivers/mfd/jz4740-adc.c 9 #include <dt-bindings/iio/adc/ingenic,adc.h> 10 #include <linux/clk.h> 98 int (*init_clk_div)(struct device *dev, struct ingenic_adc *adc); 103 struct clk *clk; member 112 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_set_adcmd() local 114 mutex_lock(&adc->lock); in ingenic_adc_set_adcmd() [all …]
|
| D | spear_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ST SPEAr ADC driver 15 #include <linux/clk.h> 40 #define SPEAR_ADC_MOD_NAME "spear-adc" 51 u32 clk; /* Not avail for 1340 & 1310 */ member 64 u32 clk; member 76 struct clk *clk; member 86 * Functions to access some SPEAr ADC register. Abstracted into 92 __raw_writel(val, &st->adc_base_spear6xx->status); in spear_adc_set_status() 98 u32 apb_clk = clk_get_rate(st->clk); in spear_adc_set_clk() [all …]
|
| D | ep93xx_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for ADC module on the Cirrus Logic EP93xx series of SoCs 14 #include <linux/clk.h> 27 * lower ADC conversion rate down to CONFIG_HZ, so we fallback to busy wait 30 * HR Timers-based version loads CPU only up to 10% during back to back ADC 31 * conversion, while busy wait-based version consumes whole CPU power. 45 struct clk *clk; member 88 mutex_lock(&priv->lock); in ep93xx_read_raw() 89 if (priv->lastch != channel->channel) { in ep93xx_read_raw() 90 priv->lastch = channel->channel; in ep93xx_read_raw() [all …]
|
| D | lpc32xx_adc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * lpc32xx_adc.c - Support for ADC in LPC32XX 5 * 3-channel, 10-bit ADC 10 #include <linux/clk.h> 45 #define LPC32XXAD_NAME "lpc32xx-adc" 49 struct clk *clk; member 67 mutex_lock(&indio_dev->mlock); in lpc32xx_read_raw() 68 ret = clk_prepare_enable(st->clk); in lpc32xx_read_raw() 70 mutex_unlock(&indio_dev->mlock); in lpc32xx_read_raw() 74 __raw_writel(LPC32XXAD_INTERNAL | (chan->address) | in lpc32xx_read_raw() [all …]
|
| D | exynos_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * exynos_adc.c - Support for ADC in EXYNOS SoCs 5 * 8 ~ 10 channel, 10/12-bit ADC 18 #include <linux/clk.h> 33 #include <linux/platform_data/touchscreen-s3c2410.h> 46 /* S3C2410 ADC registers definitions */ 63 /* Bit definitions for S3C2410 ADC */ 126 struct clk *clk; member 127 struct clk *sclk; 145 * a wait-callback is used to wait for the conversion result, [all …]
|
| /kernel/linux/linux-6.6/drivers/iio/adc/ |
| D | imx8qxp-adc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * NXP i.MX8QXP ADC driver 15 #include <linux/clk.h> 30 #define ADC_DRIVER_NAME "imx8qxp-adc" 46 /* ADC bit shift */ 75 /* ADC PARAMETER*/ 94 struct clk *clk; member 95 struct clk *ipg_clk; 97 /* Serialise ADC channel reads */ 123 static void imx8qxp_adc_reset(struct imx8qxp_adc *adc) in imx8qxp_adc_reset() argument [all …]
|
| D | lpc18xx_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * IIO ADC driver for NXP LPC18xx ADC 8 * - Hardware triggers 9 * - Burst mode 10 * - Interrupts 11 * - DMA 14 #include <linux/clk.h> 26 /* LPC18XX ADC registers and bits */ 46 struct clk *clk; member 69 static int lpc18xx_adc_read_chan(struct lpc18xx_adc *adc, unsigned int ch) in lpc18xx_adc_read_chan() argument [all …]
|
| D | ingenic-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ADC driver for the Ingenic JZ47xx SoCs 4 * Copyright (c) 2019 Artur Rojek <contact@artur-rojek.eu> 6 * based on drivers/mfd/jz4740-adc.c 9 #include <dt-bindings/iio/adc/ingenic,adc.h> 10 #include <linux/clk.h> 102 int (*init_clk_div)(struct device *dev, struct ingenic_adc *adc); 107 struct clk *clk; member 116 struct ingenic_adc *adc = iio_priv(iio_dev); in ingenic_adc_set_adcmd() local 118 mutex_lock(&adc->lock); in ingenic_adc_set_adcmd() [all …]
|
| D | ep93xx_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for ADC module on the Cirrus Logic EP93xx series of SoCs 14 #include <linux/clk.h> 28 * lower ADC conversion rate down to CONFIG_HZ, so we fallback to busy wait 31 * HR Timers-based version loads CPU only up to 10% during back to back ADC 32 * conversion, while busy wait-based version consumes whole CPU power. 46 struct clk *clk; member 89 mutex_lock(&priv->lock); in ep93xx_read_raw() 90 if (priv->lastch != channel->channel) { in ep93xx_read_raw() 91 priv->lastch = channel->channel; in ep93xx_read_raw() [all …]
|
| D | spear_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ST SPEAr ADC driver 15 #include <linux/clk.h> 40 #define SPEAR_ADC_MOD_NAME "spear-adc" 51 u32 clk; /* Not avail for 1340 & 1310 */ member 64 u32 clk; member 76 struct clk *clk; member 95 * Functions to access some SPEAr ADC register. Abstracted into 101 __raw_writel(val, &st->adc_base_spear6xx->status); in spear_adc_set_status() 107 u32 apb_clk = clk_get_rate(st->clk); in spear_adc_set_clk() [all …]
|
| D | exynos_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * exynos_adc.c - Support for ADC in EXYNOS SoCs 5 * 8 ~ 10 channel, 10/12-bit ADC 19 #include <linux/clk.h> 34 #include <linux/platform_data/touchscreen-s3c2410.h> 47 /* S3C2410 ADC registers definitions */ 64 /* Bit definitions for S3C2410 ADC */ 127 struct clk *clk; member 128 struct clk *sclk; 148 * a wait-callback is used to wait for the conversion result, [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-s3c/ |
| D | adc.c | 1 // SPDX-License-Identifier: GPL-1.0+ 5 // Ben Dooks <ben@simtec.co.uk>, <ben-linux@fluff.org> 7 // Samsung ADC device core 17 #include <linux/clk.h> 22 #include "regs-adc.h" 23 #include <linux/soc/samsung/s3c-adc.h> 25 /* This driver is designed to control the usage of the ADC block between 65 struct clk *clk; member 81 #define adc_dbg(_adc, msg...) dev_dbg(&(_adc)->pdev->dev, msg) 83 static inline void s3c_adc_convert(struct adc_device *adc) in s3c_adc_convert() argument [all …]
|
| /kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/ |
| D | 0023_linux_drivers_iio.patch | 7 Change-Id: I60767bd38b95d43a7415b9e21575ad772380ae56 9 diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig 11 --- a/drivers/iio/adc/Kconfig 12 +++ b/drivers/iio/adc/Kconfig 13 @@ -530,6 +530,16 @@ config IMX7D_ADC 18 + tristate "IMX8QXP ADC driver" 22 + Say yes here to build support for IMX8QXP ADC. 28 tristate "LP8788 ADC driver" 30 diff --git a/drivers/iio/adc/Makefile b/drivers/iio/adc/Makefile 32 --- a/drivers/iio/adc/Makefile [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/ |
| D | st,stm32-dfsdm-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-dfsdm-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STM32 DFSDM ADC device driver 10 - Fabrice Gasnier <fabrice.gasnier@st.com> 11 - Olivier Moysan <olivier.moysan@st.com> 14 STM32 DFSDM ADC is a sigma delta analog-to-digital converter dedicated to 17 - Sigma delta modulators (motor control, metering...) 18 - PDM microphones (audio digital microphone) [all …]
|
| 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 bindings 10 STM32 ADC is a successive approximation analog-to-digital converter. 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. 19 Each STM32 ADC block can have up to 3 ADC instances. [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/iio/adc/ |
| D | st,stm32-dfsdm-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-dfsdm-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STM32 DFSDM ADC device driver 10 - Fabrice Gasnier <fabrice.gasnier@foss.st.com> 11 - Olivier Moysan <olivier.moysan@foss.st.com> 14 STM32 DFSDM ADC is a sigma delta analog-to-digital converter dedicated to 17 - Sigma delta modulators (motor control, metering...) 18 - PDM microphones (audio digital microphone) [all …]
|
| 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. 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. 19 Each STM32 ADC block can have up to 3 ADC instances. [all …]
|
| D | nxp,imx8qxp-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/nxp,imx8qxp-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NXP IMX8QXP ADC 10 - Cai Huoqing <caihuoqing@baidu.com> 13 Supports the ADC found on the IMX8QXP SoC. 17 const: nxp,imx8qxp-adc 28 clock-names: 30 - const: per [all …]
|
| /kernel/linux/linux-6.6/sound/soc/sunxi/ |
| D | sun8i-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * (C) Copyright 2010-2016 9 * Mylène Josserand <mylene.josserand@free-electrons.com> 14 #include <linux/clk.h> 23 #include <sound/soc-dapm.h> 186 struct clk *clk_module; 200 regcache_cache_only(scodec->regmap, false); in sun8i_codec_runtime_resume() 202 ret = regcache_sync(scodec->regmap); in sun8i_codec_runtime_resume() 215 regcache_cache_only(scodec->regmap, true); in sun8i_codec_runtime_suspend() 216 regcache_mark_dirty(scodec->regmap); in sun8i_codec_runtime_suspend() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/sunxi/ |
| D | sun8i-codec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * (C) Copyright 2010-2016 9 * Mylène Josserand <mylene.josserand@free-electrons.com> 14 #include <linux/clk.h> 23 #include <sound/soc-dapm.h> 105 struct clk *clk_module; 114 regcache_cache_only(scodec->regmap, false); in sun8i_codec_runtime_resume() 116 ret = regcache_sync(scodec->regmap); in sun8i_codec_runtime_resume() 129 regcache_cache_only(scodec->regmap, true); in sun8i_codec_runtime_suspend() 130 regcache_mark_dirty(scodec->regmap); in sun8i_codec_runtime_suspend() [all …]
|
| /kernel/linux/linux-5.10/drivers/mfd/ |
| D | fsl-imx25-tsadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2014-2015 Pengutronix, Markus Pargmann <mpa@pengutronix.de> 6 #include <linux/clk.h> 12 #include <linux/mfd/imx25-tsadc.h> 35 regmap_read(tsadc->regs, MX25_TSC_TGSR, &status); in mx25_tsadc_irq_handler() 38 generic_handle_irq(irq_find_mapping(tsadc->domain, 1)); in mx25_tsadc_irq_handler() 41 generic_handle_irq(irq_find_mapping(tsadc->domain, 0)); in mx25_tsadc_irq_handler() 49 struct mx25_tsadc *tsadc = d->host_data; in mx25_tsadc_domain_map() 67 struct device *dev = &pdev->dev; in mx25_tsadc_setup_irq() 68 struct device_node *np = dev->of_node; in mx25_tsadc_setup_irq() [all …]
|
| /kernel/linux/linux-6.6/drivers/mfd/ |
| D | fsl-imx25-tsadc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2014-2015 Pengutronix, Markus Pargmann <mpa@pengutronix.de> 6 #include <linux/clk.h> 12 #include <linux/mfd/imx25-tsadc.h> 35 regmap_read(tsadc->regs, MX25_TSC_TGSR, &status); in mx25_tsadc_irq_handler() 38 generic_handle_domain_irq(tsadc->domain, 1); in mx25_tsadc_irq_handler() 41 generic_handle_domain_irq(tsadc->domain, 0); in mx25_tsadc_irq_handler() 49 struct mx25_tsadc *tsadc = d->host_data; in mx25_tsadc_domain_map() 67 struct device *dev = &pdev->dev; in mx25_tsadc_setup_irq() 68 struct device_node *np = dev->of_node; in mx25_tsadc_setup_irq() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| D | es8328.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8328.c -- ES8328 ALSA SoC Audio driver 5 * Copyright 2014 Sutajio Ko-Usagi PTE LTD 10 #include <linux/clk.h> 81 struct clk *clk; member 100 static const DECLARE_TLV_DB_SCALE(play_tlv, -3000, 100, 0); 101 static const DECLARE_TLV_DB_SCALE(dac_adc_tlv, -9600, 50, 0); 102 static const DECLARE_TLV_DB_SCALE(bypass_tlv, -1500, 300, 0); 124 if (es8328->deemph) { in es8328_set_deemph() 127 if (abs(deemph_settings[i].rate - es8328->playback_fs) < in es8328_set_deemph() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | rt5514.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5514.c -- RT5514 ALSA SoC audio codec driver 24 #include <sound/soc-dapm.h> 31 #include "rt5514-spi.h" 120 regmap_write(rt5514->i2c_regmap, 0x18002000, 0x000010ec); in rt5514_enable_dsp_prepare() 122 regmap_write(rt5514->i2c_regmap, 0x18002200, 0x00028604); in rt5514_enable_dsp_prepare() 124 regmap_write(rt5514->i2c_regmap, 0xfafafafa, 0x00000001); in rt5514_enable_dsp_prepare() 125 /* mini-core reset */ in rt5514_enable_dsp_prepare() 126 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x0005514b); in rt5514_enable_dsp_prepare() 127 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x00055149); in rt5514_enable_dsp_prepare() [all …]
|