Home
last modified time | relevance | path

Searched +full:gpi +full:- +full:config (Results 1 – 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Dtlv320adcx140.yaml1 # SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Texas Instruments TLV320ADCX140 Quad Channel Analog-to-Digital Converter
11 - Dan Murphy <dmurphy@ti.com>
14 The TLV320ADCX140 are multichannel (4-ch analog recording or 8-ch digital
15 PDM microphones recording), high-performance audio, analog-to-digital
28 - const: ti,tlv320adc3140
29 - const: ti,tlv320adc5140
30 - const: ti,tlv320adc6140
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-vx855.c1 // SPDX-License-Identifier: GPL-2.0+
22 * GPI 0...13 General Purpose Input
24 * GPIO 0...14 General Purpose I/O (Open-Drain)
75 * 0..13 GPI 0..13
87 /* Real GPI bits are always in input direction */ in vx855gpio_direction_input()
93 return -EINVAL; in vx855gpio_direction_input()
96 spin_lock_irqsave(&vg->lock, flags); in vx855gpio_direction_input()
97 reg_out = inl(vg->io_gpo); in vx855gpio_direction_input()
98 reg_out |= gpio_o_bit(nr - NR_VX855_GPInO); in vx855gpio_direction_input()
99 outl(reg_out, vg->io_gpo); in vx855gpio_direction_input()
[all …]
Dgpio-sl28cpld.c1 // SPDX-License-Identifier: GPL-2.0-only
25 /* input-only flavor */
28 /* output-only flavor */
50 struct gpio_regmap_config *config) in sl28cpld_gpio_irq_init() argument
54 struct device *dev = &pdev->dev; in sl28cpld_gpio_irq_init()
57 if (!device_property_read_bool(dev, "interrupt-controller")) in sl28cpld_gpio_irq_init()
66 return -ENOMEM; in sl28cpld_gpio_irq_init()
68 irq_chip->name = "sl28cpld-gpio-irq", in sl28cpld_gpio_irq_init()
69 irq_chip->irqs = sl28cpld_gpio_irqs; in sl28cpld_gpio_irq_init()
70 irq_chip->num_irqs = ARRAY_SIZE(sl28cpld_gpio_irqs); in sl28cpld_gpio_irq_init()
[all …]
/kernel/linux/linux-5.10/drivers/regulator/
Dda9055-regulator.c1 // SPDX-License-Identifier: GPL-2.0+
85 struct da9055_regulator_info *info = regulator->info; in da9055_buck_get_mode()
88 ret = da9055_reg_read(regulator->da9055, info->mode.reg); in da9055_buck_get_mode()
92 switch ((ret & info->mode.mask) >> info->mode.shift) { in da9055_buck_get_mode()
111 struct da9055_regulator_info *info = regulator->info; in da9055_buck_set_mode()
116 val = DA9055_BUCK_MODE_SYNC << info->mode.shift; in da9055_buck_set_mode()
119 val = DA9055_BUCK_MODE_AUTO << info->mode.shift; in da9055_buck_set_mode()
122 val = DA9055_BUCK_MODE_SLEEP << info->mode.shift; in da9055_buck_set_mode()
126 return da9055_reg_update(regulator->da9055, info->mode.reg, in da9055_buck_set_mode()
127 info->mode.mask, val); in da9055_buck_set_mode()
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Ds3c64xx-pinctrl.dtsi1 // SPDX-License-Identifier: GPL-2.0
4 * - pin control-related definitions
8 * Samsung's S3C64xx SoCs pin banks, pin-mux and pin-config options are
12 #include <dt-bindings/pinctrl/samsung.h>
20 gpio-controller;
21 #gpio-cells = <2>;
22 interrupt-controller;
23 #interrupt-cells = <2>;
27 gpio-controller;
28 #gpio-cells = <2>;
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/
Ducd9000.c1 // SPDX-License-Identifier: GPL-2.0-or-later
33 /* GPIO CONFIG bits */
82 if (data->fan_data[fan][3] & 1) in ucd9000_get_fan_config()
86 fan_config |= (data->fan_data[fan][3] & 0x06) >> 1; in ucd9000_get_fan_config()
99 return -ENXIO; in ucd9000_read_byte_data()
113 return -ENXIO; in ucd9000_read_byte_data()
126 ret = -ENODATA; in ucd9000_read_byte_data()
211 dev_dbg(&client->dev, "failed to read GPIO %d config: %d\n", in ucd9000_gpio_set()
233 dev_dbg(&client->dev, "Failed to write GPIO %d config: %d\n", in ucd9000_gpio_set()
242 dev_dbg(&client->dev, "Failed to write GPIO %d config: %d\n", in ucd9000_gpio_set()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 * struct mvebu_mpp_ctrl_data - private data for the mpp ctrl operations
29 * struct mvebu_mpp_ctrl - describe a mpp control
53 unsigned long *config);
55 unsigned long config);
62 * struct mvebu_mpp_ctrl_setting - describe a mpp ctrl setting
64 * @name: ctrl setting name, e.g. uart2, spi0 - unique per mpp_mode
67 * @flags: (private) flags to store gpi/gpo/gpio capabilities
77 * If name is one of "gpi", "gpo", "gpio" gpio capabilities are
[all …]
Dpinctrl-mvebu.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
24 #include "pinctrl-mvebu.h"
59 unsigned int pid, unsigned long *config) in mvebu_mmio_mpp_ctrl_get() argument
64 *config = (readl(data->base + off) >> shift) & MVEBU_MPP_MASK; in mvebu_mmio_mpp_ctrl_get()
70 unsigned int pid, unsigned long config) in mvebu_mmio_mpp_ctrl_set() argument
76 reg = readl(data->base + off) & ~(MVEBU_MPP_MASK << shift); in mvebu_mmio_mpp_ctrl_set()
77 writel(reg | (config << shift), data->base + off); in mvebu_mmio_mpp_ctrl_set()
86 for (n = 0; n < pctl->num_groups; n++) { in mvebu_pinctrl_find_group_by_pid()
87 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/aspeed/
Dpinctrl-aspeed.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include "pinctrl-aspeed.h"
17 return pdata->pinmux.ngroups; in aspeed_pinctrl_get_groups_count()
25 return pdata->pinmux.groups[group].name; in aspeed_pinctrl_get_group_name()
34 *pins = &pdata->pinmux.groups[group].pins[0]; in aspeed_pinctrl_get_group_pins()
35 *npins = pdata->pinmux.groups[group].npins; in aspeed_pinctrl_get_group_pins()
43 seq_printf(s, " %s", dev_name(pctldev->dev)); in aspeed_pinctrl_pin_dbg_show()
50 return pdata->pinmux.nfunctions; in aspeed_pinmux_get_fn_count()
58 return pdata->pinmux.functions[function].name; in aspeed_pinmux_get_fn_name()
68 *groups = pdata->pinmux.functions[function].groups; in aspeed_pinmux_get_fn_groups()
[all …]
/kernel/linux/linux-5.10/include/linux/input/
Dadp5589.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright 2010-2011 Analog Devices Inc.
12 * ADP5589 specific GPI and Keymap defines
47 #define ADP5589_GPIMAPSIZE_MAX (ADP5589_GPI_PIN_END - ADP5589_GPI_PIN_BASE + 1)
50 * ADP5585 specific GPI and Keymap defines
76 #define ADP5585_GPIMAPSIZE_MAX (ADP5585_GPI_PIN_END - ADP5585_GPI_PIN_BASE + 1)
114 * ---------------- BIT ------------------
131 * ---- BIT -- -----------
158 unsigned char reset_cfg; /* Reset config */
166 unsigned pullup_en_100k; /* Pull-Up 100k Enable Mask */
[all …]
/kernel/linux/linux-5.10/arch/mips/sgi-ip22/
Dip22-platform.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/dma-mapping.h>
72 * Create a platform device for the GPI port that receives the
79 sgiwd93_0_pd.hregs = &hpc3c0->scsi_chan0; in sgiwd93_devinit()
80 sgiwd93_0_pd.wdregs = (unsigned char *) hpc3c0->scsi0_ext; in sgiwd93_devinit()
89 sgiwd93_1_pd.hregs = &hpc3c0->scsi_chan1; in sgiwd93_devinit()
90 sgiwd93_1_pd.wdregs = (unsigned char *) hpc3c0->scsi1_ext; in sgiwd93_devinit()
144 * Create a platform device for the GPI port that receives the
168 get_dbe(pbdma, (unsigned int *)&hpc3c1->pbdma[1])) in sgiseeq_devinit()
171 sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 | SGIMC_GIOPAR_EXP164 | in sgiseeq_devinit()
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-elektor.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* ------------------------------------------------------------------------- */
3 /* i2c-elektor.c i2c-hw access for PCF8584 style isa bus adaptes */
4 /* ------------------------------------------------------------------------- */
5 /* Copyright (C) 1995-97 Simon G. Vogl
6 1998-99 Hans Berglund
9 /* ------------------------------------------------------------------------- */
15 for Alpha Processor Inc. UP-2000(+) boards */
28 #include <linux/i2c-algo-pcf.h>
33 #include "../algos/i2c-algo-pcf.h"
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dtlv320adcx140.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/
41 "ti,gpo-config-1",
42 "ti,gpo-config-2",
43 "ti,gpo-config-3",
44 "ti,gpo-config-4",
163 /* Digital Volume control. From -100 to 27 dB in 0.5 dB steps */
164 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10050, 50, 0);
169 /* DRE Level. From -12 dB to -66 dB in 1 dB steps */
170 static DECLARE_TLV_DB_SCALE(dre_thresh_tlv, -6600, 100, 0);
[all …]
Dcs35l35.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * cs35l35.h -- CS35L35 ALSA SoC audio driver
35 #define CS35L35_PROTECT_CTL 0x18 /* Amp Gain - Prot Ctl Param */
39 #define CS35L35_GPI_CTL 0x1C /* GPI Ctl */
199 /* Boost Converter Config */
/kernel/linux/linux-5.10/drivers/watchdog/
Dsmsc37b787_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * any of this software. This material is provided "AS-IS" in
12 * (C) Copyright 2003-2006 Sven Anders <anders@anduras.de>
15 * 2003 - Created version 1.0 for Linux 2.4.x.
16 * 2006 - Ported to Linux 2.6, added nowayout and MAGICCLOSE
38 * For an example userspace keep-alive daemon, see:
86 /* -- Low level function ----------------------------------------*/
124 /* -- Medium level functions ------------------------------------*/
128 /* -- General Purpose I/O Bit 1.2 -- in gpio_bit12()
132 * Bit 3/4, Function select: 00 = GPI/O, 01 = WDT, 10 = P17, in gpio_bit12()
[all …]
/kernel/linux/linux-5.10/drivers/input/rmi4/
Drmi_f30.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016 Synaptics Incorporated
89 error = rmi_read_block(fn->rmi_dev, fn->fd.control_base_addr, in rmi_f30_read_control_parameters()
90 f30->ctrl_regs, f30->ctrl_regs_size); in rmi_f30_read_control_parameters()
92 dev_err(&fn->dev, in rmi_f30_read_control_parameters()
94 __func__, fn->fd.control_base_addr, error); in rmi_f30_read_control_parameters()
106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button()
107 bool key_down = !(f30->data_regs[reg_num] & BIT(bit_num)); in rmi_f30_report_button()
109 if (f30->trackstick_buttons && in rmi_f30_report_button()
112 rmi_f03_overwrite_button(f30->f03, key_code, key_down); in rmi_f30_report_button()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/nuvoton/
Dpinctrl-npcm7xx.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2016-2018 Nuvoton Technology corporation.
16 #include <linux/pinctrl/pinconf-generic.h>
47 #define NPCM7XX_GP_N_PU 0x1c /* Pull-up */
48 #define NPCM7XX_GP_N_PD 0x20 /* Pull-down */
108 spin_lock_irqsave(&gc->bgpio_lock, flags); in npcm_gpio_set()
113 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in npcm_gpio_set()
122 spin_lock_irqsave(&gc->bgpio_lock, flags); in npcm_gpio_clr()
127 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in npcm_gpio_clr()
134 seq_printf(s, "-- module %d [gpio%d - %d]\n", in npcmgpio_dbg_show()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-s3c/
Dgpio-samsung.c1 // SPDX-License-Identifier: GPL-2.0
3 // Copyright (c) 2009-2011 Samsung Electronics Co., Ltd.
11 // Samsung - GPIOlib support
31 #include "regs-gpio.h"
32 #include "gpio-samsung.h"
35 #include "gpio-core.h"
36 #include "gpio-cfg.h"
37 #include "gpio-cfg-helpers.h"
43 void __iomem *reg = chip->base + 0x08; in samsung_gpio_setpull_updown()
58 void __iomem *reg = chip->base + 0x08; in samsung_gpio_getpull_updown()
[all …]
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dadp5589-keys.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (C) 2010-2011 Analog Devices Inc.
201 #define ADP5585_MAXGPIO 11 /* 10 on the ADP5585-01, 11 on ADP5585-02 */
301 1u << (offset - ADP5585_COL_SHIFT) : 1u << offset; in adp5585_bit()
377 dev_err(&client->dev, "Read Error\n"); in adp5589_read()
391 unsigned int bank = kpad->var->bank(kpad->gpiomap[off]); in adp5589_gpio_get_value()
392 unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); in adp5589_gpio_get_value()
394 return !!(adp5589_read(kpad->client, in adp5589_gpio_get_value()
395 kpad->var->reg(ADP5589_GPI_STATUS_A) + bank) & in adp5589_gpio_get_value()
403 unsigned int bank = kpad->var->bank(kpad->gpiomap[off]); in adp5589_gpio_set_value()
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
Dlm93.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * lm93.c - Part of lm_sensors, Linux kernel modules for hardware monitoring
13 * Copyright (c) 2003 Margit Schubert-While <margitsw@t-online.de>
16 * Copyright (c) 2003-2004 Jean Delvare <jdelvare@suse.de>
33 #include <linux/hwmon-sysfs.h>
34 #include <linux/hwmon-vid.h>
51 /* voltage inputs: in1-in16 (nr => 0-15) */
56 /* temperature inputs: temp1-temp4 (nr => 0-3) */
61 /* temp[1-4]_auto_boost (nr => 0-3) */
64 /* #PROCHOT inputs: prochot1-prochot2 (nr => 0-1) */
[all …]
/kernel/linux/linux-5.10/sound/pci/hda/
Dhda_proc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 static int dump_coef = -1;
19 MODULE_PARM_DESC(dump_coef, "Dump processing coefficients in codec proc file (-1=auto, 0=disable, 1…
23 snd_hdac_read_parm_uncached(&(codec)->core, nid, parm)
38 if (wid_value == -1) in get_wid_type_name()
52 struct hda_nid_item *items = array->list, *item; in print_nid_array()
54 for (i = 0; i < array->used; i++) { in print_nid_array()
56 if (item->nid == nid) { in print_nid_array()
57 kctl = item->kctl; in print_nid_array()
60 kctl->id.name, kctl->id.index + item->index, in print_nid_array()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/saa7134/
Dsaa7134-input.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #include "saa7134-reg.h"
36 printk(KERN_DEBUG pr_fmt("ir %s: " fmt), ir->rc->device_name, \
43 /* -------------------- GPIO generic keycode builder -------------------- */
47 struct saa7134_card_ir *ir = dev->remote; in build_key()
51 switch (dev->board) { in build_key()
62 if (ir->polling) { in build_key()
63 if (ir->last_gpio == gpio) in build_key()
65 ir->last_gpio = gpio; in build_key()
68 data = ir_extract_bits(gpio, ir->mask_keycode); in build_key()
[all …]
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0036_linux_drivers_staging.patch7 Change-Id: Ibe08cc261b06fe7f07187b5214df34e7cfed2515
9 diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig
11 --- a/drivers/staging/Kconfig
13 @@ -90,6 +90,8 @@ source "drivers/staging/greybus/Kconfig"
21 source "drivers/staging/mt7621-pci/Kconfig"
22 @@ -118,6 +120,8 @@ source "drivers/staging/wfx/Kconfig"
31 diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
33 --- a/drivers/staging/Makefile
35 @@ -21,7 +21,7 @@ obj-$(CONFIG_IIO) += iio/
36 obj-$(CONFIG_FB_SM750) += sm750fb/
[all …]
/kernel/linux/linux-5.10/sound/pci/ca0106/
Dca0106.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk>
50 * Implement support for Line-in capture on SB Live 24bit.
73 #define IPR_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */
74 #define IPR_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */
87 #define IPR_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */
88 #define IPR_MIDI_TX_A 0x00000002 /* MIDI UART-A Transmit buffer empty */
93 #define INTE_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */
94 #define INTE_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */
107 #define INTE_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */
[all …]
/kernel/linux/linux-5.10/sound/pci/
Dvia82xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Tjeerd.Mulder <Tjeerd.Mulder@fujitsu-siemens.com>
16 * - use the DSX channels for the first pcm playback.
19 * multi-channel playback is assigned to the second device
21 * - support the secondary capture (on VIA8233/C,8235)
22 * - SPDIF support
26 * the card config of alsa-lib will assign the correct
28 * - clean up the code, separate low-level initialization
32 * - Optimize position calculation for the 823x chips.
65 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */
[all …]

12