/openbmc/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | atmel,sama9260-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/atmel,sama9260-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: AT91 sama9260 and similar Analog to Digital Converter (ADC) 10 - Alexandre Belloni <alexandre.belloni@bootlin.com> 15 - atmel,at91sam9260-adc 16 - atmel,at91sam9rl-adc 17 - atmel,at91sam9g45-adc 18 - atmel,at91sam9x5-adc [all …]
|
H A D | atmel,sama5d2-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/atmel,sama5d2-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: AT91 SAMA5D2 Analog to Digital Converter (ADC) 10 - Eugen Hristev <eugen.hristev@microchip.com> 15 - atmel,sama5d2-adc 16 - microchip,sam9x60-adc 17 - microchip,sama7g5-adc 28 clock-names: [all …]
|
/openbmc/linux/Documentation/sound/soc/ |
H A D | pops-clicks.rst | 7 audio module is either loaded or unloaded (at module load time the sound card is 13 click every time a component power state is changed. 22 components in a specific order. This order is different for startup and 23 shutdown and follows some basic rules:- 26 Startup Order :- DAC --> Mixers --> Output PGA --> Digital Unmute 28 Shutdown Order :- Digital Mute --> Output PGA --> Mixers --> DAC 38 ADC until all the pops have occurred. This follows similar power rules to 40 startup or shutdown. 43 Startup Order - Input PGA --> Mixers --> ADC 45 Shutdown Order - ADC --> Mixers --> Input PGA
|
/openbmc/linux/drivers/iio/adc/ |
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. 37 #define AT91_ADC_TSAMOD (3 << 0) /* ADC mode */ 38 #define AT91_ADC_TSAMOD_ADC_ONLY_MODE (0 << 0) /* ADC Mode */ 52 #define AT91_ADC_STARTUP_9260 (0x1f << 16) /* Startup Up Time */ 56 #define AT91_ADC_SHTIM (0xf << 24) /* Sample & Hold Time */ 58 #define AT91_ADC_PENDBC (0x0f << 28) /* Pen Debounce time */ 62 #define AT91_ADC_TSR_SHTIM (0xf << 24) /* Sample & Hold Time */ 102 #define AT91_ADC_ACR_PENDETSENS (0x3 << 0) /* pull-up resistor */ 112 #define AT91_ADC_TSMR_SCTIM (0x0f << 16) /* Switch closure time */ [all …]
|
H A D | at91-sama5d2_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Atmel ADC driver for SAMA5D2 devices and compatible. 14 #include <linux/dma-mapping.h> 31 #include <linux/nvmem-consumer.h> 36 #include <dt-bindings/iio/adc/at91-sama5d2_adc.h> 79 /* Startup Time */ 82 /* Minimum startup time for temperature sensor */ 86 /* Tracking Time */ 90 /* Transfer Time */ 110 /* Interrupt Enable Register - TS X measurement ready */ [all …]
|
H A 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 12 #include <linux/dma-mapping.h> 16 #include <linux/iio/timer/stm32-lptim-trigger.h> 17 #include <linux/iio/timer/stm32-timer-trigger.h> 26 #include <linux/nvmem-consumer.h> 31 #include "stm32-adc-core.h" 36 /* BOOST bit must be set on STM32H7 when ADC clock is above 20MHz */ 58 /* extsel - trigger mux selection value */ [all …]
|
/openbmc/u-boot/drivers/adc/ |
H A D | stm32-adc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved 6 * Originally based on the Linux kernel v4.18 drivers/iio/adc/stm32-adc.c. 10 #include <adc.h> 13 #include "stm32-adc-core.h" 15 /* STM32H7 - Registers for each ADC instance */ 26 /* STM32H7_ADC_ISR - bit fields */ 31 /* STM32H7_ADC_CR - bit fields */ 43 /* STM32H7_ADC_SQR1 - bit fields */ 46 /* BOOST bit must be set on STM32H7 when ADC clock is above 20MHz */ [all …]
|
/openbmc/linux/arch/arm/boot/dts/microchip/ |
H A D | at91sam9g20.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * at91sam9g20.dtsi - Device Tree Include file for AT91SAM9G20 family SoC 5 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 23 compatible = "mmio-sram"; 25 #address-cells = <1>; 26 #size-cells = <1>; 33 compatible = "atmel,at91sam9g20-i2c"; 37 compatible = "atmel,at91sam9rl-ssc"; 40 adc0: adc@fffe0000 { 41 atmel,adc-startup-time = <40>; [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | at91sam9g20.dtsi | 2 * at91sam9g20.dtsi - Device Tree Include file for AT91SAM9G20 family SoC 4 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 24 compatible = "mmio-sram"; 31 compatible = "atmel,at91sam9g20-i2c"; 35 compatible = "atmel,at91sam9rl-ssc"; 38 adc0: adc@fffe0000 { 39 atmel,adc-startup-time = <40>; 44 atmel,clk-input-range = <2000000 32000000>; 45 atmel,pll-clk-output-ranges = <745000000 800000000 0 0>, 56 compatible = "atmel,at91sam9g20-clk-pllb"; [all …]
|
H A D | at91sam9rl.dtsi | 2 * at91sam9rl.dtsi - Device Tree Include file for AT91SAM9RL family SoC 4 * Copyright (C) 2014 Alexandre Belloni <alexandre.belloni@free-electrons.com> 10 #include <dt-bindings/pinctrl/at91.h> 11 #include <dt-bindings/clock/at91.h> 12 #include <dt-bindings/interrupt-controller/irq.h> 13 #include <dt-bindings/gpio/gpio.h> 14 #include <dt-bindings/pwm/pwm.h> 19 interrupt-parent = <&aic>; 42 compatible = "arm,arm926ej-s"; 53 compatible = "fixed-clock"; [all …]
|
H A D | at91sam9g45.dtsi | 2 * at91sam9g45.dtsi - Device Tree Include file for AT91SAM9G45 family SoC 13 #include <dt-bindings/dma/at91.h> 14 #include <dt-bindings/pinctrl/at91.h> 15 #include <dt-bindings/interrupt-controller/irq.h> 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/clock/at91.h> 22 interrupt-parent = <&aic>; 45 compatible = "arm,arm926ej-s"; 56 compatible = "fixed-clock"; 57 #clock-cells = <0>; [all …]
|
H A D | sama5d3.dtsi | 2 * sama5d3.dtsi - Device Tree Include file for SAMA5D3 family SoC 12 #include <dt-bindings/dma/at91.h> 13 #include <dt-bindings/pinctrl/at91.h> 14 #include <dt-bindings/interrupt-controller/irq.h> 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/clock/at91.h> 21 interrupt-parent = <&aic>; 44 #address-cells = <1>; 45 #size-cells = <0>; 48 compatible = "arm,cortex-a5"; [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | ab8500-bm.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 267 * struct ab8500_fg_parameters - Fuel gauge algorithm parameters, in seconds 269 * @recovery_sleep_timer: Time between measurements while recovering 270 * @recovery_total_time: Total recovery time 271 * @init_timer: Measurement interval during startup 272 * @init_discard_time: Time we discard voltage measurement at startup 273 * @init_total_time: Total init time during startup 274 * @high_curr_time: Time current has to be high to go to recovery 275 * @accu_charging: FG accumulation time while charging 276 * @accu_high_curr_ua: FG accumulation time in high current mode [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | mba6ulx.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Copyright 2018-2022 TQ-Systems GmbH 4 * Author: Markus Niebel <Markus.Niebel@tq-group.com> 8 model = "TQ-Systems MBA6ULx Baseboard"; 18 stdout-path = &uart1; 22 compatible = "pwm-backlight"; 23 power-supply = <®_mba6ul_3v3>; 24 enable-gpios = <&expander_out0 4 GPIO_ACTIVE_HIGH>; 29 compatible = "gpio-beeper"; 33 gpio_buttons: gpio-keys { [all …]
|
H A D | imx6qdl-apalis.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright 2014-2022 Toradex 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pwm/pwm.h> 22 compatible = "pwm-backlight"; 23 brightness-levels = <0 45 63 88 119 158 203 255>; 24 default-brightness-level = <4>; 25 enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; 26 pinctrl-names = "default"; 27 pinctrl-0 = <&pinctrl_gpio_bl_on>; [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 37 int "Emergency poweroff delay in milli-seconds" 47 time for orderly_poweroff() to finish on regular execution. 99 startup. If in doubt, select 'step_wise'. 106 devices one step at a time. 138 devices one step at the time, taking into account the trip 144 bool "Fair-share thermal governor" 146 Enable this to manage platform thermals using fair-share governor. 240 memory-mapped reads to get the temperature. Any HW/System that 241 allows temperature reading by a single memory-mapped reading, be it [all …]
|
/openbmc/linux/drivers/iio/temperature/ |
H A D | mlx90614.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * mlx90614.c - Support for Melexis MLX90614/MLX90615 contactless IR temperature sensor 9 * Driver for the Melexis MLX90614/MLX90615 I2C 16-bit IR thermopile sensor 11 * MLX90614 - 17-bit ADC + MLX90302 DSP 12 * MLX90615 - 16-bit ADC + MLX90325 DSP 14 * (7-bit I2C slave address 0x5a, 100KHz bus speed only!) 21 * always has a pull-up so we do not need an extra GPIO to drive it high. If 57 #define MLX90614_TIMING_EEPROM 20 /* time for EEPROM write/erase to complete */ 58 #define MLX90614_TIMING_WAKEUP 34 /* time to hold SDA low for wake-up */ 59 #define MLX90614_TIMING_STARTUP 250 /* time before first data after wake-up */ [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | es8316.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * es8316.c -- es8316 ALSA SoC audio driver 6 * Authors: David Yang <yangxiaohua@everest-semi.com>, 21 #include <sound/soc-dapm.h> 51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0); 54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0); 57 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0), 58 11, 11, TLV_DB_SCALE_ITEM(-150, 0, 0), [all …]
|
H A D | wm8988.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8988.c -- WM8988 ALSA SoC audio driver 154 "Mute ADC Output"}; 167 static const DECLARE_TLV_DB_SCALE(pga_tlv, -1725, 75, 0); 168 static const DECLARE_TLV_DB_SCALE(adc_tlv, -9750, 50, 1); 169 static const DECLARE_TLV_DB_SCALE(dac_tlv, -12750, 50, 1); 170 static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1); 171 static const DECLARE_TLV_DB_SCALE(bypass_tlv, -1500, 300, 0); 180 SOC_ENUM("Treble Cut-off", treble), 184 SOC_ENUM("3D Lower Cut-off", stereo_3d_lc), [all …]
|
H A D | twl4030.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 #include <linux/mfd/twl4030-audio.h> 67 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1]; 79 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache() 89 return -EIO; in twl4030_read() 98 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read() 116 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip() 120 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip() 124 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip() 128 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip() [all …]
|
H A D | nau8540.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 #include <sound/soc-dapm.h> 183 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -12800, 3600); 184 static const DECLARE_TLV_DB_MINMAX(fepga_gain_tlv, -100, 3600); 207 "ADC channel 1", "ADC channel 2", "ADC channel 3", "ADC channel 4" 236 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in adc_power_control() 242 regmap_update_bits(nau8540->regmap, NAU8540_REG_PCM_CTRL1, in adc_power_control() 244 regmap_update_bits(nau8540->regmap, NAU8540_REG_PCM_CTRL2, in adc_power_control() 247 regmap_update_bits(nau8540->regmap, NAU8540_REG_PCM_CTRL1, in adc_power_control() 249 regmap_update_bits(nau8540->regmap, NAU8540_REG_PCM_CTRL2, in adc_power_control() [all …]
|
H A D | nau8825.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Co-author: Meng-Huang Kuo <mhkuo@nuvoton.com> 35 #define NUVOTON_CODEC_DAI "nau8825-hifi" 223 * nau8825_sema_acquire - acquire the semaphore of nau88l25 233 * this function returns -ETIME. If the sleep is interrupted by a signal, 234 * this function will return -EINTR. It returns 0 if the semaphore was 246 ret = down_timeout(&nau8825->xtalk_sem, timeout); in nau8825_sema_acquire() 248 dev_warn(nau8825->dev, "Acquire semaphore timeout\n"); in nau8825_sema_acquire() 250 ret = down_trylock(&nau8825->xtalk_sem); in nau8825_sema_acquire() 252 dev_warn(nau8825->dev, "Acquire semaphore fail\n"); in nau8825_sema_acquire() [all …]
|
H A D | nau8824.c | 1 // SPDX-License-Identifier: GPL-2.0-only 35 static int quirk_override = -1; 37 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 43 /* the ADC threshold of headset */ 46 /* the ADC threshold of headset */ 211 ret = down_timeout(&nau8824->jd_sem, timeout); in nau8824_sema_acquire() 213 dev_warn(nau8824->dev, "Acquire semaphore timeout\n"); in nau8824_sema_acquire() 215 ret = down_interruptible(&nau8824->jd_sem); in nau8824_sema_acquire() 217 dev_warn(nau8824->dev, "Acquire semaphore fail\n"); in nau8824_sema_acquire() 225 up(&nau8824->jd_sem); in nau8824_sema_release() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | ucb1x00-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/mfd/ucb1x00-core.c 8 * the ADC, interrupts, and accessing registers. It is designed 11 * to be used on other non-MCP-enabled hardware platforms. 35 * ucb1x00_io_set_dir - set IO direction 54 spin_lock_irqsave(&ucb->io_lock, flags); in ucb1x00_io_set_dir() 55 ucb->io_dir |= out; in ucb1x00_io_set_dir() 56 ucb->io_dir &= ~in; in ucb1x00_io_set_dir() 58 ucb1x00_reg_write(ucb, UCB_IO_DIR, ucb->io_dir); in ucb1x00_io_set_dir() 59 spin_unlock_irqrestore(&ucb->io_lock, flags); in ucb1x00_io_set_dir() [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-lp5523.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lp5523.c - LP5523, LP55231 LED Driver 19 #include <linux/platform_data/leds-lp55xx.h> 22 #include "leds-lp55xx-common.h" 123 led->led_current = led_current; in lp5523_set_led_current() 124 lp55xx_write(led->chip, LP5523_REG_LED_CURRENT_BASE + led->chan_nr, in lp5523_set_led_current() 137 /* Chip startup time is 500 us, 1 - 2 ms gives some margin */ in lp5523_post_init_device() 141 val |= (chip->pdata->charge_pump_mode << LP5523_CP_MODE_SHIFT) & LP5523_CP_MODE_MASK; in lp5523_post_init_device() 161 enum lp55xx_engine_index idx = chip->engine_idx; in lp5523_load_engine() 181 enum lp55xx_engine_index idx = chip->engine_idx; in lp5523_load_engine_and_select_page() [all …]
|