Home
last modified time | relevance | path

Searched +full:gpo +full:- +full:config +full:- +full:2 (Results 1 – 25 of 53) sorted by relevance

123

/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
16 converter (ADC) with analog inputs supporting up to 2V RMS. The TLV320ADCX140
28 - const: ti,tlv320adc3140
29 - const: ti,tlv320adc5140
[all …]
/kernel/linux/linux-6.6/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 - Andrew Davis <afd@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
16 converter (ADC) with analog inputs supporting up to 2V RMS. The TLV320ADCX140
28 - ti,tlv320adc3140
29 - ti,tlv320adc5140
[all …]
/kernel/linux/linux-6.6/drivers/gpio/
Dgpio-bd71815.c1 // SPDX-License-Identifier: GPL-2.0
8 * Author: yanglsh@embest-tech.com
18 #include <linux/mfd/rohm-bd71815.h>
33 ret = regmap_read(bd71815->regmap, BD71815_REG_GPO, &val); in bd71815gpo_get()
49 ret = regmap_set_bits(bd71815->regmap, BD71815_REG_GPO, bit); in bd71815gpo_set()
51 ret = regmap_clear_bits(bd71815->regmap, BD71815_REG_GPO, bit); in bd71815gpo_set()
54 dev_warn(bd71815->dev, "failed to toggle GPO\n"); in bd71815gpo_set()
58 unsigned long config) in bd71815_gpio_set_config() argument
62 switch (pinconf_to_config_param(config)) { in bd71815_gpio_set_config()
64 return regmap_update_bits(bdgpio->regmap, in bd71815_gpio_set_config()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
17 config GPIOLIB_FASTPATH_LIMIT
29 config OF_GPIO
34 config GPIO_ACPI
38 config GPIOLIB_IRQCHIP
42 config OF_GPIO_MM_GPIOCHIP
47 this symbol, but new drivers should use the generic gpio-regmap
50 config DEBUG_GPIO
57 non-sleeping contexts. They can make bitbanged serial protocols
61 config GPIO_SYSFS
[all …]
Dgpio-sl28cpld.c1 // SPDX-License-Identifier: GPL-2.0-only
25 /* input-only flavor */
28 /* output-only flavor */
40 REGMAP_IRQ_REG_LINE(2, 8),
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()
[all …]
Dgpio-lp873x.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
4 * Keerthy <j-keerthy@ti.com>
35 return -EINVAL; in lp873x_gpio_direction_input()
44 return regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, in lp873x_gpio_direction_output()
54 ret = regmap_read(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, &val); in lp873x_gpio_get()
66 regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, in lp873x_gpio_set()
78 /* No MUX Set up Needed for GPO */ in lp873x_gpio_request()
82 ret = regmap_update_bits(gpio->lp873->regmap, LP873X_REG_CONFIG, in lp873x_gpio_request()
89 return -EINVAL; in lp873x_gpio_request()
[all …]
Dgpio-tps65218.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * This driver is based on the gpio-tps65912 implementation.
26 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_get()
30 ret = regmap_read(tps65218->regmap, TPS65218_REG_ENABLE2, &val); in tps65218_gpio_get()
41 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_set()
64 return -EPERM; in tps65218_gpio_input()
70 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_request()
74 dev_err(gc->parent, "can't work as open source\n"); in tps65218_gpio_request()
75 return -EINVAL; in tps65218_gpio_request()
81 dev_err(gc->parent, "GPO1 works only as open drain\n"); in tps65218_gpio_request()
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
6 config ARCH_HAVE_CUSTOM_GPIO_H
9 Selecting this config option from the architecture Kconfig allows
25 config GPIOLIB_FASTPATH_LIMIT
37 config OF_GPIO
42 config GPIO_ACPI
46 config GPIOLIB_IRQCHIP
50 config DEBUG_GPIO
57 non-sleeping contexts. They can make bitbanged serial protocols
61 config GPIO_SYSFS
[all …]
Dgpio-sl28cpld.c1 // SPDX-License-Identifier: GPL-2.0-only
25 /* input-only flavor */
28 /* output-only flavor */
40 REGMAP_IRQ_REG_LINE(2, 8),
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()
[all …]
Dgpio-lp873x.c2 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
3 * Keerthy <j-keerthy@ti.com>
6 * modify it under the terms of the GNU General Public License version 2 as
12 * GNU General Public License version 2 for more details.
43 return -EINVAL; in lp873x_gpio_direction_input()
52 return regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, in lp873x_gpio_direction_output()
62 ret = regmap_read(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, &val); in lp873x_gpio_get()
74 regmap_update_bits(gpio->lp873->regmap, LP873X_REG_GPO_CTRL, in lp873x_gpio_set()
86 /* No MUX Set up Needed for GPO */ in lp873x_gpio_request()
90 ret = regmap_update_bits(gpio->lp873->regmap, LP873X_REG_CONFIG, in lp873x_gpio_request()
[all …]
Dgpio-tps65218.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * This driver is based on the gpio-tps65912 implementation.
26 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_get()
30 ret = regmap_read(tps65218->regmap, TPS65218_REG_ENABLE2, &val); in tps65218_gpio_get()
41 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_set()
64 return -EPERM; in tps65218_gpio_input()
70 struct tps65218 *tps65218 = tps65218_gpio->tps65218; in tps65218_gpio_request()
74 dev_err(gc->parent, "can't work as open source\n"); in tps65218_gpio_request()
75 return -EINVAL; in tps65218_gpio_request()
81 dev_err(gc->parent, "GPO1 works only as open drain\n"); in tps65218_gpio_request()
[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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/
Dsmu11_driver_if_sienna_cichlid.h35 #define NUM_SMNCLK_DPM_LEVELS 2
37 #define NUM_MP0CLK_DPM_LEVELS 2
46 #define NUM_MP1CLK_DPM_LEVELS 2
47 #define NUM_LINK_LEVELS 2
49 #define NUM_XGMI_LEVELS 2
53 #define MAX_GFXCLK_DPM_LEVEL (NUM_GFXCLK_DPM_LEVELS - 1)
54 #define MAX_SMNCLK_DPM_LEVEL (NUM_SMNCLK_DPM_LEVELS - 1)
55 #define MAX_SOCCLK_DPM_LEVEL (NUM_SOCCLK_DPM_LEVELS - 1)
56 #define MAX_MP0CLK_DPM_LEVEL (NUM_MP0CLK_DPM_LEVELS - 1)
57 #define MAX_DCLK_DPM_LEVEL (NUM_DCLK_DPM_LEVELS - 1)
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/marvell/
Darmada-370-c200-v2.dts1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
3 * Device Tree file for Ctera C200-V2
8 /dts-v1/;
10 #include "armada-370.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/thermal/thermal.h>
14 #include <dt-bindings/leds/common.h>
18 compatible = "ctera,c200-v2", "marvell,armada370", "marvell,armada-370-xp";
22 stdout-path = "serial0:115200n8";
[all …]
Darmada-370-dlink-dns327l.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree file for D-Link DNS-327L
12 /dts-v1/;
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include "armada-370.dtsi"
19 model = "D-Link DNS-327L";
22 "marvell,armada-370-xp";
25 stdout-path = &uart0;
38 internal-regs {
[all …]
Ddove.dtsi1 // SPDX-License-Identifier: GPL-2.0
2 #include <dt-bindings/gpio/gpio.h>
3 #include <dt-bindings/interrupt-controller/irq.h>
8 #address-cells = <1>;
9 #size-cells = <1>;
12 interrupt-parent = <&intc>;
21 #address-cells = <1>;
22 #size-cells = <0>;
25 compatible = "marvell,pj4a", "marvell,sheeva-v7";
27 next-level-cache = <&l2>;
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/inc/
Dsmu11_driver_if_sienna_cichlid.h35 #define NUM_SMNCLK_DPM_LEVELS 2
37 #define NUM_MP0CLK_DPM_LEVELS 2
46 #define NUM_MP1CLK_DPM_LEVELS 2
47 #define NUM_LINK_LEVELS 2
49 #define NUM_XGMI_LEVELS 2
53 #define MAX_GFXCLK_DPM_LEVEL (NUM_GFXCLK_DPM_LEVELS - 1)
54 #define MAX_SMNCLK_DPM_LEVEL (NUM_SMNCLK_DPM_LEVELS - 1)
55 #define MAX_SOCCLK_DPM_LEVEL (NUM_SOCCLK_DPM_LEVELS - 1)
56 #define MAX_MP0CLK_DPM_LEVEL (NUM_MP0CLK_DPM_LEVELS - 1)
57 #define MAX_DCLK_DPM_LEVEL (NUM_DCLK_DPM_LEVELS - 1)
[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 */
107 spin_lock_irqsave(&gc->bgpio_lock, flags); in npcm_gpio_set()
112 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in npcm_gpio_set()
121 spin_lock_irqsave(&gc->bgpio_lock, flags); in npcm_gpio_clr()
126 spin_unlock_irqrestore(&gc->bgpio_lock, flags); in npcm_gpio_clr()
133 seq_printf(s, "-- module %d [gpio%d - %d]\n", in npcmgpio_dbg_show()
[all …]
/kernel/linux/linux-6.6/drivers/pinctrl/nuvoton/
Dpinctrl-npcm7xx.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2016-2018 Nuvoton Technology corporation.
21 #include <linux/pinctrl/pinconf-generic.h>
51 #define NPCM7XX_GP_N_PU 0x1c /* Pull-up */
52 #define NPCM7XX_GP_N_PD 0x20 /* Pull-down */
110 raw_spin_lock_irqsave(&gc->bgpio_lock, flags); in npcm_gpio_set()
115 raw_spin_unlock_irqrestore(&gc->bgpio_lock, flags); in npcm_gpio_set()
124 raw_spin_lock_irqsave(&gc->bgpio_lock, flags); in npcm_gpio_clr()
129 raw_spin_unlock_irqrestore(&gc->bgpio_lock, flags); in npcm_gpio_clr()
136 seq_printf(s, "-- module %d [gpio%d - %d]\n", in npcmgpio_dbg_show()
[all …]
/kernel/linux/linux-5.10/drivers/hid/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
8 config HID
15 most commonly used to refer to the USB-HID specification, but other
20 removed from the HID bus by the transport-layer drivers, such as
29 config HID_BATTERY_STRENGTH
39 config HIDRAW
53 to work on raw hid events when they want to, and avoid using transport-specific
58 config UHID
59 tristate "User-space I/O driver support for HID subsystem"
63 Say Y here if you want to provide HID I/O Drivers from user-space.
[all …]
/kernel/linux/linux-6.6/drivers/hid/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
15 config HID
22 most commonly used to refer to the USB-HID specification, but other
27 removed from the HID bus by the transport-layer drivers, such as
36 config HID_BATTERY_STRENGTH
45 config HIDRAW
58 to work on raw hid events when they want to, and avoid using transport-specific
63 config UHID
64 tristate "User-space I/O driver support for HID subsystem"
67 Say Y here if you want to provide HID I/O Drivers from user-space.
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Darmada-370-dlink-dns327l.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree file for D-Link DNS-327L
12 /dts-v1/;
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include "armada-370.dtsi"
19 model = "D-Link DNS-327L";
22 "marvell,armada-370-xp";
25 stdout-path = &uart0;
38 internal-regs {
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/em28xx/
Dem28xx-reg.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * em28xx-reg.h - Register definitions for em28xx driver
9 #define EM_GPIO_2 ((unsigned char)BIT(2))
18 #define EM_GPO_2 ((unsigned char)BIT(2))
45 /* em28xx Chip Configuration 2 0x01 */
47 #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_MASK 0x0c /* bits 3-2 */
52 #define EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK 0x03 /* bits 0-1 */
58 /* GPIO/GPO registers */
59 #define EM2880_R04_GPO 0x04 /* em2880-em2883 only */
60 #define EM2820_R08_GPIO_CTRL 0x08 /* em2820-em2873/83 only */
[all …]
/kernel/linux/linux-6.6/drivers/media/usb/em28xx/
Dem28xx-reg.h1 /* SPDX-License-Identifier: GPL-2.0 */
4 * em28xx-reg.h - Register definitions for em28xx driver
9 #define EM_GPIO_2 ((unsigned char)BIT(2))
18 #define EM_GPO_2 ((unsigned char)BIT(2))
45 /* em28xx Chip Configuration 2 0x01 */
47 #define EM28XX_CHIPCFG2_TS_REQ_INTERVAL_MASK 0x0c /* bits 3-2 */
52 #define EM28XX_CHIPCFG2_TS_PACKETSIZE_MASK 0x03 /* bits 0-1 */
58 /* GPIO/GPO registers */
59 #define EM2880_R04_GPO 0x04 /* em2880-em2883 only */
60 #define EM2820_R08_GPIO_CTRL 0x08 /* em2820-em2873/83 only */
[all …]

123