/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | ti,adc12138.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Texas Instruments ADC12138 and similar self-calibrating ADCs 10 - Akinobu Mita <akinobu.mita@gmail.com> 19 - ti,adc12130 20 - ti,adc12132 21 - ti,adc12138 34 vref-p-supply: 35 description: The regulator supply for positive analog voltage reference [all …]
|
/linux/Documentation/devicetree/bindings/iio/dac/ |
H A D | dpot-dac.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/dac/dpot-dac.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Peter Rosin <peda@axentia.se> 15 divided voltage is provided by a vref regulator. 17 .------. 18 .-----------. | | 19 | vref |--' .---. 20 | regulator |--. | | [all …]
|
/linux/drivers/iio/dac/ |
H A D | ad3552r-common.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // Copyright (c) 2010-2024 Analog Devices Inc. 18 [AD3552R_CH_OUTPUT_RANGE_NEG_5__5V] = { -5000, 5000 }, 19 [AD3552R_CH_OUTPUT_RANGE_NEG_10__10V] = { -10000, 10000 } 28 [AD3542R_CH_OUTPUT_RANGE_NEG_2P5__7P5V] = { -2500, 7500 }, 29 [AD3542R_CH_OUTPUT_RANGE_NEG_5__5V] = { -5000, 5000 } 41 u16 ad3552r_calc_custom_gain(u8 p, u8 n, s16 goffs) in ad3552r_calc_custom_gain() argument 44 FIELD_PREP(AD3552R_MASK_CH_GAIN_SCALING_P, p) | in ad3552r_calc_custom_gain() 54 s64 vref, tmp, common, offset, gn, gp; in ad3552r_get_custom_range() local 58 * Vmax = 2.5 - [(GainP + Offset / 1024) * 2.5 * Rfb * 1.03] in ad3552r_get_custom_range() [all …]
|
/linux/drivers/iio/adc/ |
H A D | ad7766.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 66 static irqreturn_t ad7766_trigger_handler(int irq, void *p) in ad7766_trigger_handler() argument 68 struct iio_poll_func *pf = p; in ad7766_trigger_handler() 69 struct iio_dev *indio_dev = pf->indio_dev; in ad7766_trigger_handler() 73 ret = spi_sync(ad7766->spi, &ad7766->msg); in ad7766_trigger_handler() 77 iio_push_to_buffers_with_timestamp(indio_dev, ad7766->data, in ad7766_trigger_handler() 78 pf->timestamp); in ad7766_trigger_handler() 80 iio_trigger_notify_done(indio_dev->trig); in ad7766_trigger_handler() 90 ret = regulator_bulk_enable(ARRAY_SIZE(ad7766->reg), ad7766->reg); in ad7766_preenable() 92 dev_err(&ad7766->spi->dev, "Failed to enable supplies: %d\n", in ad7766_preenable() [all …]
|
H A D | ti-adc108s102.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2013-2015 Intel Corporation. 29 * In case of ACPI, we use the hard-wired 5000 mV of the Galileo and IOT2000 31 * via the vref-supply regulator. 38 * chips. The ADC108S102 effectively returns a 12-bit result with the 2 39 * least-significant bits unset. 45 * 16-bit SPI command format: 47 * [13:11] 3-bit channel address 53 * 16-bit SPI response format: 55 * [11:0] 12-bit ADC sample (for ADC108S102, [1:0] will always be 0). [all …]
|
H A D | ad7768-1.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Analog Devices AD7768-1 SPI ADC driver 156 struct regulator *vref; member 185 shift = 32 - (8 * len); in ad7768_spi_reg_read() 186 st->data.d8[0] = AD7768_RD_FLAG_MSK(addr); in ad7768_spi_reg_read() 188 ret = spi_write_then_read(st->spi, st->data.d8, 1, in ad7768_spi_reg_read() 189 &st->data.d32, len); in ad7768_spi_reg_read() 193 return (be32_to_cpu(st->data.d32) >> shift); in ad7768_spi_reg_read() 200 st->data.d8[0] = AD7768_WR_FLAG_MSK(addr); in ad7768_spi_reg_write() 201 st->data.d8[1] = val & 0xFF; in ad7768_spi_reg_write() [all …]
|
H A D | ti-ads7950.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 36 * Device tree users encode that via the vref-supply regulator. 54 (((val) >> (dec)) & ((1 << (bits)) - 1)) 61 (TI_ADS7950_MAN_CMD(TI_ADS7950_CR_WRITE | st->cmd_settings_bitmask)) 64 (TI_ADS7950_GPIO_CMD(st->gpio_cmd_settings_bitmask)) 84 * [0-3] GPIO signal 87 * [6] Sets Vref range1(2.5v) or range2(5v) 95 * [0-3] GPIO direction 96 * [4-6] Different GPIO alarm mode configurations [all …]
|
H A D | ad7192.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright 2011-2015 Analog Devices Inc. 11 #include <linux/clk-provider.h> 35 #define AD7192_REG_COMM 0 /* Communications Register (WO, 8-bit) */ 36 #define AD7192_REG_STAT 0 /* Status Register (RO, 8-bit) */ 37 #define AD7192_REG_MODE 1 /* Mode Register (RW, 24-bit */ 38 #define AD7192_REG_CONF 2 /* Configuration Register (RW, 24-bit) */ 39 #define AD7192_REG_DATA 3 /* Data Register (RO, 24/32-bit) */ 40 #define AD7192_REG_ID 4 /* ID Register (RO, 8-bit) */ 41 #define AD7192_REG_GPOCON 5 /* GPOCON Register (RO, 8-bit) */ [all …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp15xx-dhcom-som.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) 2019-2020 Marek Vasut <marex@denx.de> 6 #include "stm32mp15-pinctrl.dtsi" 7 #include "stm32mp15xxaa-pinctrl.dtsi" 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/mfd/st,stpmic1.h> 24 reserved-memory { 25 #address-cells = <1>; 26 #size-cells = <1>; 30 compatible = "shared-dma-pool"; [all …]
|
/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6ull-dhcom-som.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 6 #include "imx6ull-dhcor-som.dtsi" 10 /delete-property/ spi2; 11 /delete-property/ spi3; 28 stdout-path = "serial0:115200n8"; 31 reg_ext_3v3_ref: regulator-ext-3v3-ref { 32 compatible = "regulator-fixed"; 33 regulator-always-on; 34 regulator-max-microvolt = <3300000>; 35 regulator-min-microvolt = <3300000>; [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | ads7846.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * - corgi_ts.c 11 * Copyright (C) 2004-2005 Richard Purdie 12 * - omap_ts.[hc], ads7846.h, ts_osk.c 39 * Support for ads7843 tested on Atmel at91sam926x-EK. 53 * note. The strength of filtering can be set in the board-* specific 76 * driver is used with DMA-based SPI controllers (like atmel_spi) on 77 * systems where main memory is not DMA-coherent (most non-x86 boards). 133 bool stopped; /* P: lock */ 134 bool disabled; /* P: lock */ [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mp-skov-reva.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 #include <dt-bindings/leds/common.h> 26 compatible = "pwm-backlight"; 27 pinctrl-0 = <&pinctrl_backlight>; 29 power-supply = <®_24v>; 30 enable-gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>; 31 brightness-levels = <0 255>; 32 num-interpolated-steps = <17>; 33 default-brightness-level = <8>; 38 compatible = "gpio-leds"; [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3566-quartz64-b.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 /dts-v1/; 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/pinctrl/rockchip.h> 7 #include <dt-bindings/soc/rockchip,vop2.h> 12 compatible = "pine64,quartz64-b", "rockchip,rk3566"; 22 stdout-path = "serial2:1500000n8"; 25 gmac1_clkin: external-gmac1-clock { 26 compatible = "fixed-clock"; 27 clock-frequency = <125000000>; [all …]
|
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-ibm-system1.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/i2c/i2c.h> 8 #include <dt-bindings/leds/leds-pca955x.h> 12 compatible = "ibm,system1-bmc", "aspeed,ast2600"; 74 stdout-path = "uart5:115200n8"; 82 reserved-memory { 83 #address-cells = <1>; [all …]
|
H A D | aspeed-bmc-facebook-catalina.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/usb/pd.h> 8 #include <dt-bindings/leds/leds-pca955x.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/i2c/i2c.h> 14 compatible = "facebook,catalina-bmc", "aspeed,ast2600"; 64 stdout-path = "serial4:57600n8"; [all …]
|
H A D | aspeed-bmc-ampere-mtmitchell.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 4 /dts-v1/; 6 #include "aspeed-g6.dtsi" 7 #include <dt-bindings/i2c/i2c.h> 8 #include <dt-bindings/gpio/aspeed-gpio.h> 12 compatible = "ampere,mtmitchell-bmc", "aspeed,ast2600"; 27 * i2c bus 30-31 assigned to OCP slot 0-1 33 * i2c bus 32-33 assigned to Riser slot 0-1 39 * i2c bus 38-39 assigned to FRU on Riser slot 0-1 82 stdout-path = &uart5; [all …]
|
H A D | aspeed-bmc-ibm-blueridge.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /dts-v1/; 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include <dt-bindings/i2c/i2c.h> 7 #include <dt-bindings/leds/leds-pca955x.h> 8 #include "aspeed-g6.dtsi" 9 #include "ibm-power11-quad.dtsi" 13 compatible = "ibm,blueridge-bmc", "aspeed,ast2600"; 35 stdout-path = &uart5; 43 reserved-memory { [all …]
|
H A D | aspeed-bmc-ibm-rainier.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/i2c/i2c.h> 8 #include <dt-bindings/leds/leds-pca955x.h> 12 compatible = "ibm,rainier-bmc", "aspeed,ast2600"; 34 stdout-path = &uart5; 43 reserved-memory { 44 #address-cells = <1>; [all …]
|
H A D | aspeed-bmc-ibm-fuji.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /dts-v1/; 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include <dt-bindings/i2c/i2c.h> 7 #include <dt-bindings/leds/leds-pca955x.h> 8 #include "aspeed-g6.dtsi" 9 #include "ibm-power11-quad.dtsi" 13 compatible = "ibm,fuji-bmc", "aspeed,ast2600"; 170 stdout-path = &uart5; 178 reserved-memory { [all …]
|
H A D | aspeed-bmc-ibm-everest.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/i2c/i2c.h> 8 #include <dt-bindings/leds/leds-pca955x.h> 12 compatible = "ibm,everest-bmc", "aspeed,ast2600"; 169 stdout-path = &uart5; 178 reserved-memory { 179 #address-cells = <1>; [all …]
|
/linux/include/sound/ |
H A D | soc-dapm.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * linux/sound/soc-dapm.h -- ALSA SoC Dynamic Audio Power Management 15 #include <sound/soc-topology.h> 24 #define SND_SOC_NOPM -1 30 * 1. Codec domain - VREF, VMID 33 * 2. Platform/Machine domain - physically connected inputs and outputs 36 * 3. Path domain - Internal codec path mixers 39 * 4. Stream domain - DAC's and ADC's. 158 /* path domain with event - event handler must return 0 for success */ 354 .tlv.p = (tlv_array), \ [all …]
|
/linux/sound/soc/codecs/ |
H A D | pcm512x.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <sound/soc-dapm.h> 55 * We can't use the same notifier block for more than one supply and 66 regcache_mark_dirty(pcm512x->regmap); \ 67 regcache_cache_only(pcm512x->regmap, true); \ 230 ucontrol->value.integer.value[0] = pcm512x->overclock_pll; in pcm512x_overclock_pll_get() 245 return -EBUSY; in pcm512x_overclock_pll_put() 248 pcm512x->overclock_pll = ucontrol->value.integer.value[0]; in pcm512x_overclock_pll_put() 258 ucontrol->value.integer.value[0] = pcm512x->overclock_dsp; in pcm512x_overclock_dsp_get() 273 return -EBUSY; in pcm512x_overclock_dsp_put() [all …]
|
/linux/drivers/gpu/drm/bridge/analogix/ |
H A D | anx7625.c | 1 // SPDX-License-Identifier: GPL-2.0-only 35 #include <media/v4l2-fwnode.h> 36 #include <sound/hdmi-codec.h> 50 struct device *dev = &client->dev; in i2c_access_workaround() 53 if (client == ctx->last_client) in i2c_access_workaround() 56 ctx->last_client = client; in i2c_access_workaround() 58 if (client == ctx->i2c.tcpc_client) in i2c_access_workaround() 60 else if (client == ctx->i2c.tx_p0_client) in i2c_access_workaround() 62 else if (client == ctx->i2c.tx_p1_client) in i2c_access_workaround() 64 else if (client == ctx->i2c.rx_p0_client) in i2c_access_workaround() [all …]
|
/linux/sound/pci/vx222/ |
H A D | vx222_ops.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * VX222-specific low-level routines 77 return chip->port[vx2_reg_index[reg]] + vx2_reg_offset[reg]; in vx2_reg_addr() 81 * vx2_inb - read a byte from the register 91 * vx2_outb - write a byte on the register 100 dev_dbg(chip->card->dev, "outb: %x -> %x\n", val, vx2_reg_addr(chip, offset)); in vx2_outb() 105 * vx2_inl - read a 32bit word from the register 115 * vx2_outl - write a 32bit word on the register 123 dev_dbg(chip->card->dev, "outl: %x -> %x\n", val, vx2_reg_addr(chip, offset)); in vx2_outl() 142 * vx_reset_dsp - reset the DSP [all …]
|