/Linux-v6.6/Documentation/devicetree/bindings/iio/afe/ |
D | current-sense-amplifier.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/afe/current-sense-amplifier.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Current Sense Amplifier 10 - Peter Rosin <peda@axentia.se> 13 When an io-channel measures the output voltage from a current sense 14 amplifier, the interesting measurement is almost always the current 15 through the sense resistor, not the voltage output. This binding 16 describes such a current sense circuit. [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/sound/ |
D | adi,max98396.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices MAX98396 Speaker Amplifier 10 - Ryan Lee <ryans.lee@analog.com> 13 The MAX98396 is a mono Class-DG speaker amplifier with I/V sense. 21 - adi,max98396 22 - adi,max98397 27 avdd-supply: 30 dvdd-supply: [all …]
|
D | tas2562.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Andrew Davis <afd@ti.com> 14 The TAS2562 is a mono, digital input Class-D audio amplifier optimized for 16 Integrated speaker voltage and current sense provides for 19 Specifications about the audio amplifier can be found at: 26 - $ref: dai-common.yaml# 31 - ti,tas2562 32 - ti,tas2563 [all …]
|
D | tas27xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2020-2022 Texas Instruments Incorporated 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Shenghao Ding <shenghao-ding@ti.com> 14 The TAS2764/TAS2780 is a mono, digital input Class-D audio amplifier 16 loudspeakers. Integrated speaker voltage and current sense provides 20 - $ref: dai-common.yaml# 25 - ti,tas2764 26 - ti,tas2780 [all …]
|
D | tas2770.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2019-20 Texas Instruments Incorporated 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Shi Fu <shifu0704@thundersoft.com> 14 The TAS2770 is a mono, digital input Class-D audio amplifier optimized for 16 Integrated speaker voltage and current sense provides for 20 - $ref: dai-common.yaml# 25 - ti,tas2770 32 reset-gpio: [all …]
|
D | max98373.txt | 1 Maxim Integrated MAX98373 Speaker Amplifier 7 - compatible : "maxim,max98373" 9 - reg : the I2C address of the device. 13 - maxim,vmon-slot-no : slot number used to send voltage information 18 - maxim,imon-slot-no : slot number used to send current information 21 - maxim,spkfb-slot-no : slot number used to send speaker feedback information 24 - maxim,interleave-mode : For cases where a single combined channel 25 for the I/V sense data is not sufficient, the device can also be configured 27 In this configuration, the current and voltage data will be frame interleaved 36 maxim,vmon-slot-no = <0>; [all …]
|
D | cirrus,cs42l43.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - patches@opensource.cirrus.com 21 - $ref: dai-common.yaml# 26 - cirrus,cs42l43 31 vdd-p-supply: 35 vdd-a-supply: 39 vdd-d-supply: 43 vdd-io-supply: [all …]
|
D | ti,tas2781.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 # Copyright (C) 2022 - 2023 Texas Instruments Incorporated 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Shenghao Ding <shenghao-ding@ti.com> 14 The TAS2781 is a mono, digital input Class-D audio amplifier 16 loudspeakers. An integrated on-chip DSP supports Texas Instruments 18 voltage and current sense provides for real time 22 - $ref: dai-common.yaml# 27 - ti,tas2781 [all …]
|
/Linux-v6.6/drivers/iio/adc/ |
D | max9611.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Maxim max9611/max9612 high side current sense amplifier with 6 * 12-bit ADC interface. 12 * This driver supports input common-mode voltage, current-sense 13 * amplifier with programmable gains and die temperature reading from 16 * Op-amp, analog comparator, and watchdog functionalities are not 50 * max9611 current sense amplifier voltage output: 58 * The complete formula to calculate current sense voltage is: 59 * (((adc_read >> 4) - offset) / ((1 / LSB) * 10^-3) 73 * (((adc_read >> 4) * 1000) - offset) / (1 / 14 * 1000) [all …]
|
/Linux-v6.6/Documentation/hwmon/ |
D | max16065.rst | 11 Addresses scanned: - 15 http://datasheets.maxim-ic.com/en/ds/MAX16065-MAX16066.pdf 21 Addresses scanned: - 25 http://datasheets.maxim-ic.com/en/ds/MAX16067.pdf 31 Addresses scanned: - 35 http://datasheets.maxim-ic.com/en/ds/MAX16068.pdf 41 Addresses scanned: - 45 http://datasheets.maxim-ic.com/en/ds/MAX16070-MAX16071.pdf 47 Author: Guenter Roeck <linux@roeck-us.net> 51 ----------- [all …]
|
/Linux-v6.6/sound/soc/codecs/ |
D | ssm4567.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * SSM4567 amplifier audio driver 137 /* The datasheet states that soft reset register is read-only, in ssm4567_writeable_reg() 138 * but logically it is write-only. */ in ssm4567_writeable_reg() 158 static const DECLARE_TLV_DB_MINMAX_MUTE(ssm4567_vol_tlv, -7125, 2400); 173 SND_SOC_DAPM_SWITCH("Amplifier Boost", SSM4567_REG_POWER_CTRL, 3, 1, 176 SND_SOC_DAPM_SIGGEN("Sense"), 178 SND_SOC_DAPM_PGA("Current Sense", SSM4567_REG_POWER_CTRL, 4, 1, NULL, 0), 179 SND_SOC_DAPM_PGA("Voltage Sense", SSM4567_REG_POWER_CTRL, 5, 1, NULL, 0), 180 SND_SOC_DAPM_PGA("VBAT Sense", SSM4567_REG_POWER_CTRL, 6, 1, NULL, 0), [all …]
|
D | max98388.c | 1 // SPDX-License-Identifier: GPL-2.0 76 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98388_dac_event() 81 regmap_write(max98388->regmap, in max98388_dac_event() 86 regmap_write(max98388->regmap, in max98388_dac_event() 89 max98388->tdm_mode = false; in max98388_dac_event() 118 SND_SOC_DAPM_AIF_OUT("Voltage Sense", "HiFi Capture", 0, 120 SND_SOC_DAPM_AIF_OUT("Current Sense", "HiFi Capture", 0, 124 SND_SOC_DAPM_ADC("ADC Current", NULL, 126 SND_SOC_DAPM_SWITCH("VI Sense", SND_SOC_NOPM, 0, 0, 132 static DECLARE_TLV_DB_SCALE(max98388_digital_tlv, -6350, 50, 1); [all …]
|
D | max98373.c | 1 // SPDX-License-Identifier: GPL-2.0 24 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98373_dac_event() 29 regmap_update_bits(max98373->regmap, in max98373_dac_event() 35 regmap_update_bits(max98373->regmap, in max98373_dac_event() 39 max98373->tdm_mode = false; in max98373_dac_event() 71 SND_SOC_DAPM_AIF_OUT("Voltage Sense", "HiFi Capture", 0, 73 SND_SOC_DAPM_AIF_OUT("Current Sense", "HiFi Capture", 0, 75 SND_SOC_DAPM_AIF_OUT("Speaker FB Sense", "HiFi Capture", 0, 77 SND_SOC_DAPM_SWITCH("VI Sense", SND_SOC_NOPM, 0, 0, 79 SND_SOC_DAPM_SWITCH("SpkFB Sense", SND_SOC_NOPM, 0, 0, [all …]
|
D | max98396.c | 1 // SPDX-License-Identifier: GPL-2.0 350 struct snd_soc_component *component = codec_dai->component; in max98396_dai_set_fmt() 361 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98396_dai_set_fmt() 378 dev_err(component->dev, "DAI invert mode %d unsupported\n", in max98396_dai_set_fmt() 380 return -EINVAL; in max98396_dai_set_fmt() 398 dev_err(component->dev, "DAI format %d unsupported\n", in max98396_dai_set_fmt() 400 return -EINVAL; in max98396_dai_set_fmt() 403 ret = regmap_read(max98396->regmap, MAX98396_R210F_GLOBAL_EN, &status); in max98396_dai_set_fmt() 405 return -EINVAL; in max98396_dai_set_fmt() 408 ret = regmap_read(max98396->regmap, MAX98396_R2041_PCM_MODE_CFG, ®); in max98396_dai_set_fmt() [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/iio/adc/ |
D | maxim,max9611.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Maxim MAX9611 and similar current sense amplifiers with integrated ADCs 10 - Jacopo Mondi <jacopo@jmondi.org> 13 These devices combine a high-side current sense amplifier with a 12 bit ADC. 19 - maxim,max9611 20 - maxim,max9612 25 shunt-resistor-micro-ohms: 28 RS- inputs, across which the current is measured. Value needed to compute [all …]
|
/Linux-v6.6/arch/arm64/boot/dts/rockchip/ |
D | rk3566-anbernic-rg353ps.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 8 #include "rk3566-anbernic-rg353x.dtsi" 21 compatible = "simple-battery"; 22 charge-full-design-microamp-hours = <3472000>; 23 charge-term-current-microamp = <300000>; 24 constant-charge-current-max-microamp = <2000000>; [all …]
|
D | rk3566-anbernic-rg353p.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 8 #include "rk3566-anbernic-rg353x.dtsi" 22 compatible = "simple-battery"; 23 charge-full-design-microamp-hours = <3472000>; 24 charge-term-current-microamp = <300000>; 25 constant-charge-current-max-microamp = <2000000>; [all …]
|
D | rk3566-anbernic-rg503.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/linux-event-codes.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 8 #include "rk3566-anbernic-rgxx3.dtsi" 21 compatible = "simple-battery"; 22 charge-full-design-microamp-hours = <3472000>; 23 charge-term-current-microamp = <300000>; 24 constant-charge-current-max-microamp = <2000000>; [all …]
|
/Linux-v6.6/drivers/iio/afe/ |
D | iio-rescale.c | 1 // SPDX-License-Identifier: GPL-2.0 33 *val *= rescale->numerator; in rescale_process_scale() 34 if (rescale->denominator == 1) in rescale_process_scale() 36 *val2 = rescale->denominator; in rescale_process_scale() 44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale() 45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale() 53 tmp = div_s64(tmp, rescale->denominator); in rescale_process_scale() 54 tmp *= rescale->numerator; in rescale_process_scale() 82 * *val = 1 and *val2 = -0.5 yields -1.5 not -0.5. in rescale_process_scale() 86 tmp = (s64)abs(*val) * abs(rescale->numerator); in rescale_process_scale() [all …]
|
/Linux-v6.6/include/sound/ac97/ |
D | regs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ 33 /* range 0x28-0x3a - AUDIO AC'97 2.0 extensions */ 44 /* range 0x3c-0x58 - MODEM */ 59 /* range 0x5a-0x7b - Vendor Specific */ 62 /* range 0x60-0x6f (page 1) - extended codec registers */ 68 #define AC97_SENSE_INFO 0x6a /* Sense Details */ 108 #define AC97_BC_16BIT_DAC 0x0000 /* 16-bit DAC resolution */ 109 #define AC97_BC_18BIT_DAC 0x0040 /* 18-bit DAC resolution */ 110 #define AC97_BC_20BIT_DAC 0x0080 /* 20-bit DAC resolution */ 112 #define AC97_BC_16BIT_ADC 0x0000 /* 16-bit ADC resolution */ [all …]
|
/Linux-v6.6/arch/arm/boot/dts/st/ |
D | ste-ux500-samsung-janice.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice. 6 /dts-v1/; 7 #include "ste-db8500.dtsi" 8 #include "ste-ab8500.dtsi" 9 #include "ste-dbx5x0-pinctrl.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq.h> [all …]
|
/Linux-v6.6/drivers/hwmon/pmbus/ |
D | mp2975.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Hardware monitoring driver for MPS Multi-phase Digital VR Controllers 144 return 250 + (val - 1) * 5; in mp2975_vid2direct() 148 return 500 + (val - 1) * 10; in mp2975_vid2direct() 152 return 200 + (val - 1) * 10; in mp2975_vid2direct() 155 return -EINVAL; in mp2975_vid2direct() 163 /* Converts a milli-unit DIRECT value to LINEAR11 format */ 179 while (val < MIN_LIN_MANTISSA && exponent > -15) { in mp2975_data2reg_linear11() 180 exponent--; in mp2975_data2reg_linear11() 184 /* Convert mantissa from milli-units to units */ in mp2975_data2reg_linear11() [all …]
|
/Linux-v6.6/arch/m68k/mac/ |
D | macboing.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Mac bong noise generator. Note - we ought to put a boingy noise 6 * ---------------------------------------------------------------------- 10 * Juergen Mellinger (juergen.mellinger@t-online.de) 27 * (hint: interpolate or hardwire [0 -> Pi/2[, it's symmetric) 31 0, -39, -75, -103, -121, -127, -121, -103, -75, -39 44 static unsigned long mac_bell_phase; /* 0..2*Pi -> 0..0x800 (wavetable size) */ 75 * this makes no sense here, because we have to set the default sample in mac_init_asc() 78 switch ( macintosh_config->ident ) in mac_init_asc() 106 * current location of the Apple Sound Chip--ASC--in other Macs.) The in mac_init_asc() [all …]
|
/Linux-v6.6/include/sound/ |
D | hda_verbs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * HD-audio codec verbs 59 /* f10-f1a: GPIO */ 162 #define AC_WCAP_IN_AMP (1<<1) /* AMP-in present */ 163 #define AC_WCAP_OUT_AMP (1<<2) /* AMP-out present */ 164 #define AC_WCAP_AMP_OVRD (1<<3) /* AMP-parameter override */ 252 #define AC_PINCAP_IMP_SENSE (1<<0) /* impedance sense capable */ 264 * in HD-audio specification 275 #define AC_PINCAP_VREF_HIZ (1<<0) /* Hi-Z */ 281 /* Amplifier capabilities */ [all …]
|
/Linux-v6.6/arch/arm/boot/dts/ti/omap/ |
D | omap3-n900.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi> 7 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/media/video-interfaces.h> 15 * Default secure signed bootloader (Nokia X-Loader) does not enable L3 firewall 17 * blocks then kernel receive "Unhandled fault: external abort on non-linefetch" 18 * and crash. Until somebody fix omap-aes.c and omap_hwmod_3xxx_data.c code (no 34 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3"; [all …]
|