Home
last modified time | relevance | path

Searched +full:gain +full:- +full:gpios (Results 1 – 25 of 97) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/iio/amplifiers/
Dhmc425a.c1 // SPDX-License-Identifier: GPL-2.0
3 * HMC425A and similar Gain Amplifiers
40 struct gpio_descs *gpios; member
42 u32 gain; member
52 gpiod_set_array_value_cansleep(st->gpios->ndescs, st->gpios->desc, in hmc425a_write()
62 int code, gain = 0; in hmc425a_read_raw() local
65 mutex_lock(&st->lock); in hmc425a_read_raw()
68 code = st->gain; in hmc425a_read_raw()
70 switch (st->type) { in hmc425a_read_raw()
72 gain = ~code * -500; in hmc425a_read_raw()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/iio/adc/
Dadi,ad7780.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Michael Hennerich <michael.hennerich@analog.com>
13 The ad7780 is a sigma-delta analog to digital converter. This driver provides
15 Its interface also allows writing on the FILTER and GAIN GPIO pins on the
20 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7170.pdf
22 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7171.pdf
24 https://www.analog.com/media/en/technical-documentation/data-sheets/ad7780.pdf
26 https://www.analog.com/media/en/technical-documentation/data-sheets/AD7781.pdf
[all …]
Davia-hx711.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: "http://devicetree.org/schemas/iio/adc/avia-hx711.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
10 - Andreas Klinger <ak@it-klinger.de>
13 Bit-banging driver using two GPIOs:
14 - sck-gpio gives a clock to the sensor with 24 cycles for data retrieval
15 and up to 3 cycles for selection of the input channel and gain for the
17 - dout-gpio is the sensor data the sensor responds to the clock
25 - avia,hx711
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/sound/
Dmaxim,max9759.txt5 - compatible : "maxim,max9759"
6 - shutdown-gpios : the gpio connected to the shutdown pin
7 - mute-gpios : the gpio connected to the mute pin
8 - gain-gpios : the 2 gpios connected to the g1 and g2 pins
12 max9759: analog-amplifier {
14 shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
15 mute-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
16 gain-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>,
Dcs35l34.txt5 - compatible : "cirrus,cs35l34"
7 - reg : the I2C address of the device for I2C.
9 - VA-supply, VP-supply : power supplies for the device,
13 - cirrus,boost-vtge-millivolt : Boost Voltage Value. Configures the boost
17 - cirrus,boost-nanohenry: Inductor value for boost converter. The value is
22 - reset-gpios: GPIO used to reset the amplifier.
24 - interrupts : IRQ line info CS35L34.
25 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
28 - cirrus,boost-peak-milliamp : Boost converter peak current limit in mA. The
32 - cirrus,i2s-sdinloc : ADSP SDIN I2S channel location. Indicates whether the
[all …]
Dcs35l35.txt5 - compatible : "cirrus,cs35l35"
7 - reg : the I2C address of the device for I2C
9 - VA-supply, VP-supply : power supplies for the device,
13 - interrupts : IRQ line info CS35L35.
14 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
17 - cirrus,boost-ind-nanohenry: Inductor value for boost converter. The value is
21 - reset-gpios : gpio used to reset the amplifier
23 - cirrus,stereo-config : Boolean to determine if there are 2 AMPs for a
26 - cirrus,audio-channel : Set Location of Audio Signal on Serial Port
30 - cirrus,advisory-channel : Set Location of Advisory Signal on Serial Port
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Dmaxim,max9759.txt5 - compatible : "maxim,max9759"
6 - shutdown-gpios : the gpio connected to the shutdown pin
7 - mute-gpios : the gpio connected to the mute pin
8 - gain-gpios : the 2 gpios connected to the g1 and g2 pins
12 max9759: analog-amplifier {
14 shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
15 mute-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
16 gain-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>,
Dcs35l34.txt5 - compatible : "cirrus,cs35l34"
7 - reg : the I2C address of the device for I2C.
9 - VA-supply, VP-supply : power supplies for the device,
13 - cirrus,boost-vtge-millivolt : Boost Voltage Value. Configures the boost
17 - cirrus,boost-nanohenry: Inductor value for boost converter. The value is
22 - reset-gpios: GPIO used to reset the amplifier.
24 - interrupts : IRQ line info CS35L34.
25 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
28 - cirrus,boost-peak-milliamp : Boost converter peak current limit in mA. The
32 - cirrus,i2s-sdinloc : ADSP SDIN I2S channel location. Indicates whether the
[all …]
Dcs35l35.txt5 - compatible : "cirrus,cs35l35"
7 - reg : the I2C address of the device for I2C
9 - VA-supply, VP-supply : power supplies for the device,
13 - interrupts : IRQ line info CS35L35.
14 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
17 - cirrus,boost-ind-nanohenry: Inductor value for boost converter. The value is
21 - reset-gpios : gpio used to reset the amplifier
23 - cirrus,stereo-config : Boolean to determine if there are 2 AMPs for a
26 - cirrus,audio-channel : Set Location of Audio Signal on Serial Port
30 - cirrus,advisory-channel : Set Location of Advisory Signal on Serial Port
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dimx6dl-prtrvt.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 /dts-v1/;
8 #include "imx6qdl-prti6q.dtsi"
9 #include <dt-bindings/leds/common.h>
21 compatible = "gpio-leds";
22 pinctrl-names = "default";
23 pinctrl-0 = <&pinctrl_leds>;
25 led-debug0 {
27 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
28 linux,default-trigger = "heartbeat";
[all …]
Dimx6q-prtwd2.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
6 /dts-v1/;
8 #include "imx6qdl-prti6q.dtsi"
9 #include <dt-bindings/leds/common.h>
26 compatible = "mmc-pwrseq-simple";
27 pinctrl-names = "default";
28 pinctrl-0 = <&pinctrl_wifi_npd>;
29 reset-gpios = <&gpio6 10 GPIO_ACTIVE_LOW>;
34 compatible = "i2c-gpio";
35 pinctrl-names = "default";
[all …]
Dimx6q-prti6q.dts1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 /dts-v1/;
8 #include "imx6qdl-prti6q.dtsi"
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/sound/fsl-imx-audmux.h>
21 backlight_lcd: backlight-lcd {
22 compatible = "pwm-backlight";
23 pinctrl-names = "default";
24 pinctrl-0 = <&pinctrl_backlight>;
26 brightness-levels = <0 16 64 255>;
[all …]
Dimx6qdl-gw5907.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
21 stdout-path = &uart2;
24 gpio-keys {
25 compatible = "gpio-keys";
26 #address-cells = <1>;
27 #size-cells = <0>;
29 user-pb {
[all …]
Dat91-natte.dtsi1 // SPDX-License-Identifier: GPL-2.0+
3 * at91-natte.dts - Device Tree include file for the Natte board
11 mux: mux-controller {
12 compatible = "gpio-mux";
13 #mux-control-cells = <0>;
15 mux-gpios = <&ioexp 0 GPIO_ACTIVE_HIGH>,
20 batntc-mux {
21 compatible = "io-channel-mux";
22 io-channels = <&adc 5>;
23 io-channel-names = "parent";
[all …]
/kernel/linux/linux-5.10/drivers/media/i2c/
Dov9650.c1 // SPDX-License-Identifier: GPL-2.0-only
25 #include <media/media-entity.h>
26 #include <media/v4l2-async.h>
27 #include <media/v4l2-ctrls.h>
28 #include <media/v4l2-device.h>
29 #include <media/v4l2-event.h>
30 #include <media/v4l2-image-sizes.h>
31 #include <media/v4l2-subdev.h>
32 #include <media/v4l2-mediabus.h>
37 MODULE_PARM_DESC(debug, "Debug level (0-2)");
[all …]
Ds5k5baf.c1 // SPDX-License-Identifier: GPL-2.0-only
25 #include <media/media-entity.h>
26 #include <media/v4l2-ctrls.h>
27 #include <media/v4l2-device.h>
28 #include <media/v4l2-subdev.h>
29 #include <media/v4l2-mediabus.h>
30 #include <media/v4l2-fwnode.h>
39 #define S5K5BAF_FW_FILENAME "s5k5baf-cfg.bin"
51 /* Default number of MIPI CSI-2 data lanes used */
200 /* Auto-algorithms enable mask */
[all …]
/kernel/linux/linux-4.19/sound/soc/codecs/
Dmax9759.c1 // SPDX-Licence-Identifier: GPL-2.0
12 #include <sound/soc-dapm.h>
22 unsigned int gain; member
28 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in pga_event()
32 gpiod_set_value_cansleep(priv->gpiod_shutdown, 0); in pga_event()
34 gpiod_set_value_cansleep(priv->gpiod_shutdown, 1); in pga_event()
48 ucontrol->value.integer.value[0] = priv->gain; in speaker_gain_control_get()
67 if (ucontrol->value.integer.value[0] > 3) in speaker_gain_control_put()
68 return -EINVAL; in speaker_gain_control_put()
70 priv->gain = ucontrol->value.integer.value[0]; in speaker_gain_control_put()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dmax9759.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <sound/soc-dapm.h>
22 unsigned int gain; member
28 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in pga_event()
32 gpiod_set_value_cansleep(priv->gpiod_shutdown, 0); in pga_event()
34 gpiod_set_value_cansleep(priv->gpiod_shutdown, 1); in pga_event()
48 ucontrol->value.integer.value[0] = priv->gain; in speaker_gain_control_get()
67 if (ucontrol->value.integer.value[0] > 3) in speaker_gain_control_put()
68 return -EINVAL; in speaker_gain_control_put()
70 priv->gain = ucontrol->value.integer.value[0]; in speaker_gain_control_put()
[all …]
/kernel/linux/linux-4.19/drivers/media/i2c/
Dov9650.c27 #include <media/media-entity.h>
28 #include <media/v4l2-async.h>
29 #include <media/v4l2-ctrls.h>
30 #include <media/v4l2-device.h>
31 #include <media/v4l2-event.h>
32 #include <media/v4l2-image-sizes.h>
33 #include <media/v4l2-subdev.h>
34 #include <media/v4l2-mediabus.h>
39 MODULE_PARM_DESC(debug, "Debug level (0-2)");
46 #define REG_GAIN 0x00 /* Gain control, AGC[7:0] */
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-is31fl319x.txt4 - compatible : Should be any of
10 "si-en,sn3199".
11 - #address-cells: Must be 1.
12 - #size-cells: Must be 0.
13 - reg: 0x64, 0x65, 0x66, or 0x67.
16 - audio-gain-db : audio gain selection for external analog modulation input.
17 Valid values: 0 - 21, step by 3 (rounded down)
19 - shutdown-gpios : Specifier of the GPIO connected to SDB pin of the chip.
21 Each led is represented as a sub-node of the issi,is31fl319x device.
24 Required led sub-node properties:
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/input/touchscreen/
Dedt-ft5x06.txt1 FocalTech EDT-FT5x06 Polytouch driver
18 - compatible: "edt,edt-ft5206"
19 or: "edt,edt-ft5306"
20 or: "edt,edt-ft5406"
21 or: "edt,edt-ft5506"
24 - reg: I2C slave address of the chip (0x38)
25 - interrupts: interrupt specification for the touchdetect
29 - reset-gpios: GPIO specification for the RESET input
30 - wake-gpios: GPIO specification for the WAKE input
32 - pinctrl-names: should be "default"
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/touchscreen/
Dedt-ft5x06.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: FocalTech EDT-FT5x06 Polytouch Bindings
18 - Dmitry Torokhov <dmitry.torokhov@gmail.com>
21 - $ref: touchscreen.yaml#
22 - if:
27 - evervision,ev-ft5726
31 offset-x: true
[all …]
/kernel/linux/linux-5.10/sound/soc/samsung/
Ds3c24xx_simtec.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/platform_data/asoc-s3c24xx_simtec.h>
13 #include "s3c24xx-i2s.h"
23 * speaker_gain_get - read the speaker gain setting.
24 * @kcontrol: The control for the speaker gain.
27 * Read the value for the AMP gain control.
32 ucontrol->value.integer.value[0] = spk_gain; in speaker_gain_get()
37 * speaker_gain_set - set the value of the speaker amp gain
42 gpio_set_value_cansleep(pdata->amp_gain[0], value & 1); in speaker_gain_set()
43 gpio_set_value_cansleep(pdata->amp_gain[1], value >> 1); in speaker_gain_set()
[all …]
/kernel/linux/linux-4.19/sound/soc/samsung/
Ds3c24xx_simtec.c16 #include <linux/platform_data/asoc-s3c24xx_simtec.h>
18 #include "s3c24xx-i2s.h"
28 * speaker_gain_get - read the speaker gain setting.
29 * @kcontrol: The control for the speaker gain.
32 * Read the value for the AMP gain control.
37 ucontrol->value.integer.value[0] = spk_gain; in speaker_gain_get()
42 * speaker_gain_set - set the value of the speaker amp gain
47 gpio_set_value_cansleep(pdata->amp_gain[0], value & 1); in speaker_gain_set()
48 gpio_set_value_cansleep(pdata->amp_gain[1], value >> 1); in speaker_gain_set()
52 * speaker_gain_put - set the speaker gain setting.
[all …]
/kernel/linux/linux-4.19/arch/arm/boot/dts/
Dat91-natte.dtsi1 // SPDX-License-Identifier: GPL-2.0+
3 * at91-natte.dts - Device Tree include file for the Natte board
11 mux: mux-controller {
12 compatible = "gpio-mux";
13 #mux-control-cells = <0>;
15 mux-gpios = <&ioexp 0 GPIO_ACTIVE_HIGH>,
20 batntc-mux {
21 compatible = "io-channel-mux";
22 io-channels = <&adc 5>;
23 io-channel-names = "parent";
[all …]

1234