Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:ctrl1 (Results 1 – 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/input/rmi4/
Drmi_f3a.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2020 Synaptics Incorporated
41 u16 key_code = f3a->gpio_key_map[button]; in rmi_f3a_report_button()
42 bool key_down = !(f3a->data_regs[0] & BIT(button)); in rmi_f3a_report_button()
44 if (f3a->trackstick_buttons && in rmi_f3a_report_button()
47 rmi_f03_overwrite_button(f3a->f03, key_code, key_down); in rmi_f3a_report_button()
49 rmi_dbg(RMI_DEBUG_FN, &fn->dev, in rmi_f3a_report_button()
52 input_report_key(f3a->input, key_code, key_down); in rmi_f3a_report_button()
59 struct f3a_data *f3a = dev_get_drvdata(&fn->dev); in rmi_f3a_attention()
60 struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); in rmi_f3a_attention()
[all …]
/kernel/linux/linux-6.6/drivers/input/rmi4/
Drmi_f3a.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2020 Synaptics Incorporated
41 u16 key_code = f3a->gpio_key_map[button]; in rmi_f3a_report_button()
42 bool key_down = !(f3a->data_regs[0] & BIT(button)); in rmi_f3a_report_button()
44 if (f3a->trackstick_buttons && in rmi_f3a_report_button()
47 rmi_f03_overwrite_button(f3a->f03, key_code, key_down); in rmi_f3a_report_button()
49 rmi_dbg(RMI_DEBUG_FN, &fn->dev, in rmi_f3a_report_button()
52 input_report_key(f3a->input, key_code, key_down); in rmi_f3a_report_button()
59 struct f3a_data *f3a = dev_get_drvdata(&fn->dev); in rmi_f3a_attention()
60 struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); in rmi_f3a_attention()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-mpc52xx.c1 // SPDX-License-Identifier: GPL-2.0-only
26 MODULE_DESCRIPTION("MPC52xx SPI (non-PSC) Driver");
99 if (ms->gpio_cs_count > 0) { in mpc52xx_spi_chipsel()
100 cs = ms->message->spi->chip_select; in mpc52xx_spi_chipsel()
101 gpio_set_value(ms->gpio_cs[cs], value ? 0 : 1); in mpc52xx_spi_chipsel()
103 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel()
113 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer()
114 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer()
115 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer()
118 if (ms->cs_change) in mpc52xx_spi_start_transfer()
[all …]
/kernel/linux/linux-5.10/drivers/leds/
Dleds-is31fl319x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2015-16 Golden Delicious Computers
20 #include <linux/gpio/consumer.h>
105 { .compatible = "si-en,sn3199", .data = &is31fl3199_cdef, },
115 struct is31fl319x_chip *is31 = led->chip; in is31fl319x_brightness_set()
116 int chan = led - is31->leds; in is31fl319x_brightness_set()
119 u8 ctrl1 = 0, ctrl2 = 0; in is31fl319x_brightness_set() local
121 dev_dbg(&is31->client->dev, "%s %d: %d\n", __func__, chan, brightness); in is31fl319x_brightness_set()
123 mutex_lock(&is31->lock); in is31fl319x_brightness_set()
126 ret = regmap_write(is31->regmap, IS31FL319X_PWM(chan), brightness); in is31fl319x_brightness_set()
[all …]
/kernel/linux/linux-6.6/drivers/spi/
Dspi-mpc52xx.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <linux/gpio/consumer.h>
30 MODULE_DESCRIPTION("MPC52xx SPI (non-PSC) Driver");
103 if (ms->gpio_cs_count > 0) { in mpc52xx_spi_chipsel()
104 cs = spi_get_chipselect(ms->message->spi, 0); in mpc52xx_spi_chipsel()
105 gpiod_set_value(ms->gpio_cs[cs], value); in mpc52xx_spi_chipsel()
107 out_8(ms->regs + SPI_PORTDATA, value ? 0 : 0x08); in mpc52xx_spi_chipsel()
118 ms->rx_buf = ms->transfer->rx_buf; in mpc52xx_spi_start_transfer()
119 ms->tx_buf = ms->transfer->tx_buf; in mpc52xx_spi_start_transfer()
120 ms->len = ms->transfer->len; in mpc52xx_spi_start_transfer()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/intel/
Dpinctrl-cherryview.c1 // SPDX-License-Identifier: GPL-2.0
8 * This driver is based on the original Cherryview GPIO driver by
15 #include <linux/gpio/driver.h>
24 #include <linux/pinctrl/pinconf-generic.h>
26 #include "pinctrl-intel.h"
77 * struct intel_community_context - community context for Cherryview
78 * @intr_lines: Mapping between 16 HW interrupt wires and GPIO offset (in GPIO number space)
93 .size = (end) - (start) + 1, \
266 * Southwest community can generate GPIO interrupts only for the first 8
267 * interrupts. The upper half (8-15) can only be used to trigger GPEs.
[all …]
/kernel/linux/linux-6.6/drivers/pinctrl/intel/
Dpinctrl-cherryview.c1 // SPDX-License-Identifier: GPL-2.0
8 * This driver is based on the original Cherryview GPIO driver by
15 #include <linux/gpio/driver.h>
23 #include <linux/pinctrl/pinconf-generic.h>
28 #include "pinctrl-intel.h"
81 * struct intel_community_context - community context for Cherryview
82 * @intr_lines: Mapping between 16 HW interrupt wires and GPIO offset (in GPIO number space)
97 .size = (end) - (start) + 1, \
270 * Southwest community can generate GPIO interrupts only for the first 8
271 * interrupts. The upper half (8-15) can only be used to trigger GPEs.
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dssm2518.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
14 #include <linux/gpio.h>
142 static const DECLARE_TLV_DB_MINMAX_MUTE(ssm2518_vol_tlv, -7125, 2400);
143 static const DECLARE_TLV_DB_SCALE(ssm2518_compressor_tlv, -3400, 200, 0);
144 static const DECLARE_TLV_DB_SCALE(ssm2518_expander_tlv, -8100, 300, 0);
145 static const DECLARE_TLV_DB_SCALE(ssm2518_noise_gate_tlv, -9600, 300, 0);
146 static const DECLARE_TLV_DB_SCALE(ssm2518_post_drc_tlv, -2400, 300, 0);
149 0, 7, TLV_DB_SCALE_ITEM(-2200, 200, 0),
150 7, 15, TLV_DB_SCALE_ITEM(-800, 100, 0),
[all …]
Dadau1977.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
11 #include <linux/gpio/consumer.h>
156 static const DECLARE_TLV_DB_MINMAX_MUTE(adau1977_adc_gain, -3562, 6000);
196 ADAU1977_REG_POST_ADC_GAIN((x) - 1), \
200 SOC_SINGLE("ADC" #x " Highpass-Filter Capture Switch", \
201 ADAU1977_REG_DC_HPF_CAL, (x) - 1, 1, 0)
234 regcache_cache_bypass(adau1977->regmap, true); in adau1977_reset()
235 ret = regmap_write(adau1977->regmap, ADAU1977_REG_POWER, in adau1977_reset()
237 regcache_cache_bypass(adau1977->regmap, false); in adau1977_reset()
[all …]
/kernel/linux/linux-6.6/sound/soc/codecs/
Dssm2518.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
15 #include <linux/gpio/consumer.h>
141 static const DECLARE_TLV_DB_MINMAX_MUTE(ssm2518_vol_tlv, -7125, 2400);
142 static const DECLARE_TLV_DB_SCALE(ssm2518_compressor_tlv, -3400, 200, 0);
143 static const DECLARE_TLV_DB_SCALE(ssm2518_expander_tlv, -8100, 300, 0);
144 static const DECLARE_TLV_DB_SCALE(ssm2518_noise_gate_tlv, -9600, 300, 0);
145 static const DECLARE_TLV_DB_SCALE(ssm2518_post_drc_tlv, -2400, 300, 0);
148 0, 7, TLV_DB_SCALE_ITEM(-2200, 200, 0),
149 7, 15, TLV_DB_SCALE_ITEM(-800, 100, 0),
[all …]
Dadau1977.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
11 #include <linux/gpio/consumer.h>
26 #include <dt-bindings/sound/adi,adau1977.h>
157 static const DECLARE_TLV_DB_MINMAX_MUTE(adau1977_adc_gain, -3562, 6000);
197 ADAU1977_REG_POST_ADC_GAIN((x) - 1), \
201 SOC_SINGLE("ADC" #x " Highpass-Filter Capture Switch", \
202 ADAU1977_REG_DC_HPF_CAL, (x) - 1, 1, 0)
235 regcache_cache_bypass(adau1977->regmap, true); in adau1977_reset()
236 ret = regmap_write(adau1977->regmap, ADAU1977_REG_POWER, in adau1977_reset()
[all …]
/kernel/linux/linux-6.6/drivers/leds/
Dleds-is31fl319x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2015-16 Golden Delicious Computers
20 #include <linux/gpio/consumer.h>
129 return true; /* always write-through */ in is31fl3190_volatile_reg()
161 return true; /* always write-through */ in is31fl3196_volatile_reg()
196 struct is31fl319x_chip *is31 = led->chip; in is31fl3190_brightness_set()
197 int chan = led - is31->leds; in is31fl3190_brightness_set()
202 dev_dbg(&is31->client->dev, "channel %d: %d\n", chan, brightness); in is31fl3190_brightness_set()
204 mutex_lock(&is31->lock); in is31fl3190_brightness_set()
207 ret = regmap_write(is31->regmap, IS31FL3190_PWM(chan), brightness); in is31fl3190_brightness_set()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/
Dcirrus,cs35l45.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
11 - Richard Fitzgerald <rf@opensource.cirrus.com>
18 - $ref: dai-common.yaml#
23 - cirrus,cs35l45
28 '#sound-dai-cells':
31 reset-gpios:
34 vdd-a-supply:
[all …]
/kernel/linux/linux-5.10/drivers/media/i2c/
Dov2659.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/gpio/consumer.h>
20 #include <media/v4l2-ctrls.h>
21 #include <media/v4l2-event.h>
22 #include <media/v4l2-fwnode.h>
23 #include <media/v4l2-image-sizes.h>
24 #include <media/v4l2-subdev.h>
181 u8 ctrl1; member
719 static const struct pll_ctrl_reg ctrl1[] = { variable
833 msg.addr = client->addr; in ov2659_write()
[all …]
/kernel/linux/linux-6.6/drivers/media/i2c/
Dov2659.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/gpio/consumer.h>
20 #include <media/v4l2-ctrls.h>
21 #include <media/v4l2-event.h>
22 #include <media/v4l2-fwnode.h>
23 #include <media/v4l2-image-sizes.h>
24 #include <media/v4l2-subdev.h>
181 u8 ctrl1; member
719 static const struct pll_ctrl_reg ctrl1[] = { variable
833 msg.addr = client->addr; in ov2659_write()
[all …]
Dds90ub953.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/clk-provider.h>
15 #include <linux/gpio/driver.h>
16 #include <linux/i2c-atr.h>
26 #include <media/v4l2-ctrls.h>
27 #include <media/v4l2-event.h>
28 #include <media/v4l2-fwnode.h>
29 #include <media/v4l2-mediabus.h>
30 #include <media/v4l2-subdev.h>
121 /* FPD-Link III CSI-2 synchronous mode */
[all …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Dmxs-mmc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Portions copyright (C) 2004-2005 Pierre Ossman, W83L51xD SD/MMC driver
7 * Copyright 2009-2011 Freescale Semiconductor, Inc.
18 #include <linux/dma-mapping.h>
20 #include <linux/dma/mxs-dma.h>
28 #include <linux/mmc/slot-gpio.h>
32 #include <linux/spi/mxs-spi.h>
34 #define DRIVER_NAME "mxs-mmc"
65 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_get_cd()
68 if (host->broken_cd) in mxs_mmc_get_cd()
[all …]
/kernel/linux/linux-6.6/drivers/mmc/host/
Dmxs-mmc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Portions copyright (C) 2004-2005 Pierre Ossman, W83L51xD SD/MMC driver
7 * Copyright 2009-2011 Freescale Semiconductor, Inc.
17 #include <linux/dma-mapping.h>
19 #include <linux/dma/mxs-dma.h>
27 #include <linux/mmc/slot-gpio.h>
31 #include <linux/spi/mxs-spi.h>
33 #define DRIVER_NAME "mxs-mmc"
64 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_get_cd()
67 if (host->broken_cd) in mxs_mmc_get_cd()
[all …]
/kernel/linux/linux-6.6/sound/pci/oxygen/
Dxonar_wm87x6.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * --------
14 * SPI 0 -> WM8766 (surround, center/LFE, back)
15 * SPI 1 -> WM8776 (front, input)
17 * GPIO 4 <- headphone detect, 0 = plugged
18 * GPIO 6 -> route input jack to mic-in (0) or line-in (1)
19 * GPIO 7 -> enable output to front L/R speaker channels
20 * GPIO 8 -> enable output to other speaker channels and front panel headphone
24 * input 1 <- line
25 * input 2 <- mic
[all …]
/kernel/linux/linux-5.10/sound/pci/oxygen/
Dxonar_wm87x6.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * --------
14 * SPI 0 -> WM8766 (surround, center/LFE, back)
15 * SPI 1 -> WM8776 (front, input)
17 * GPIO 4 <- headphone detect, 0 = plugged
18 * GPIO 6 -> route input jack to mic-in (0) or line-in (1)
19 * GPIO 7 -> enable output to front L/R speaker channels
20 * GPIO 8 -> enable output to other speaker channels and front panel headphone
24 * input 1 <- line
25 * input 2 <- mic
[all …]
/kernel/linux/linux-6.6/drivers/input/joystick/
Das5011.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * - Power on the chip when open() and power down when close()
10 * - Manage power mode
16 #include <linux/gpio.h>
41 /* CTRL1 bits */
57 #define AS5011_MIN_AXIS (-80)
75 .addr = client->addr, in as5011_i2c_write()
82 error = i2c_transfer(client->adapter, &msg, 1); in as5011_i2c_write()
92 .addr = client->addr, in as5011_i2c_read()
98 .addr = client->addr, in as5011_i2c_read()
[all …]
/kernel/linux/linux-5.10/drivers/input/joystick/
Das5011.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * - Power on the chip when open() and power down when close()
10 * - Manage power mode
16 #include <linux/gpio.h>
41 /* CTRL1 bits */
57 #define AS5011_MIN_AXIS (-80)
75 .addr = client->addr, in as5011_i2c_write()
82 error = i2c_transfer(client->adapter, &msg, 1); in as5011_i2c_write()
92 .addr = client->addr, in as5011_i2c_read()
98 .addr = client->addr, in as5011_i2c_read()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
Dmach-anubis.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright 2003-2009 Simtec Electronics
13 #include <linux/gpio.h>
21 #include <linux/sm501-regs.h>
28 #include <asm/mach-types.h>
30 #include "regs-gpio.h"
31 #include "gpio-samsung.h"
32 #include <linux/platform_data/mtd-nand-s3c2410.h>
33 #include <linux/platform_data/i2c-s3c2410.h>
44 #include <linux/platform_data/asoc-s3c24xx_simtec.h>
[all …]
/kernel/linux/linux-5.10/arch/mips/include/asm/txx9/
Dtx4939.h4 * Copyright (C) 2000-2001,2005-2006 Toshiba Corporation
5 * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
80 } gpio[2]; member
171 __u32 ctrl1; member
188 #define TX4939_IR_SIO(n) ((n) ? 43 + (n) : 9) /* 9,44-46 */
190 #define TX4939_IR_DMA(ch, n) (((ch) ? 22 : 10) + (n)) /* 10-13,22-25 */
194 #define TX4939_IR_TMR(n) (((n) >= 3 ? 45 : 16) + (n)) /* 16-18,48-50 */
461 /* bits for tx4939_vpc_desc.ctrl1 */
479 ((__u32)__raw_readq(&tx4939_ccfgptr->crir) & 0x00ff)
481 ((__u32)__raw_readq(&tx4939_ccfgptr->crir) >> 16)
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dimx6ull-colibri.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
15 compatible = "pwm-backlight";
16 pinctrl-names = "default";
17 pinctrl-0 = <&pinctrl_gpio_bl_on>;
18 enable-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
22 reg_module_3v3: regulator-module-3v3 {
23 compatible = "regulator-fixed";
24 regulator-always-on;
25 regulator-name = "+V3.3";
26 regulator-min-microvolt = <3300000>;
[all …]

123