Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:out +full:- +full:pol (Results 1 – 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/
Dadi,ltc2947.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Nuno Sá <nuno.sa@analog.com>
15 https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2947.pdf
20 - adi,ltc2947
33 adi,accumulator-ctl-pol:
41 $ref: /schemas/types.yaml#/definitions/uint32-array
48 adi,accumulation-deadband-microamp:
56 adi,gpio-out-pol:
[all …]
/kernel/linux/linux-4.19/drivers/gpio/
Dgpio-grgpio.c6 * This driver supports the GRGPIO GPIO core available in the GRLIB VHDL
12 * See "Documentation/devicetree/bindings/gpio/gpio-grgpio.txt" for
30 #include <linux/gpio/driver.h>
33 #include <linux/gpio/driver.h>
50 /* Structure for an irq of the core - called an underlying irq */
53 u8 uirq; /* Underlying irq of the gpio driver */
57 * Structure for an irq of a gpio line handed out by this driver. The index is
61 s8 index; /* Index into struct grgpio_priv's uirqs, or -1 */
62 u8 irq; /* irq for the gpio line */
73 * The grgpio core can have multiple "underlying" irqs. The gpio lines
[all …]
Dgpio-dwapb.c13 #include <linux/gpio/driver.h>
29 #include <linux/platform_data/gpio-dwapb.h>
54 #define DWAPB_DRIVER_NAME "gpio-dwapb"
72 /* Store GPIO context across system-wide suspend/resume transitions */
89 struct dwapb_gpio *gpio; member
125 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) in gpio_reg_convert() argument
127 if (gpio->flags & GPIO_REG_OFFSET_V2) in gpio_reg_convert()
133 static inline u32 dwapb_read(struct dwapb_gpio *gpio, unsigned int offset) in dwapb_read() argument
135 struct gpio_chip *gc = &gpio->ports[0].gc; in dwapb_read()
136 void __iomem *reg_base = gpio->regs; in dwapb_read()
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-grgpio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * This driver supports the GRGPIO GPIO core available in the GRLIB VHDL
13 * See "Documentation/devicetree/bindings/gpio/gpio-grgpio.txt" for
26 #include <linux/gpio/driver.h>
45 /* Structure for an irq of the core - called an underlying irq */
48 u8 uirq; /* Underlying irq of the gpio driver */
52 * Structure for an irq of a gpio line handed out by this driver. The index is
56 s8 index; /* Index into struct grgpio_priv's uirqs, or -1 */
57 u8 irq; /* irq for the gpio line */
68 * The grgpio core can have multiple "underlying" irqs. The gpio lines
[all …]
Dgpio-dwapb.c1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <linux/gpio/driver.h>
25 #include <linux/platform_data/gpio-dwapb.h>
29 #include "gpiolib-acpi.h"
51 #define DWAPB_DRIVER_NAME "gpio-dwapb"
71 /* Store GPIO context across system-wide suspend/resume transitions */
94 struct dwapb_gpio *gpio; member
101 (container_of(_gc, struct dwapb_gpio_port, gc)->gpio)
131 static inline u32 gpio_reg_convert(struct dwapb_gpio *gpio, unsigned int offset) in gpio_reg_convert() argument
133 if (gpio->flags & GPIO_REG_OFFSET_V2) in gpio_reg_convert()
[all …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dwm97xx-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm97xx-core.c -- Touch screen driver core for Wolfson WM9705, WM9712
15 * - supports WM9705, WM9712, WM9713
16 * - polling mode
17 * - continuous mode (arch-dependent)
18 * - adjustable rpu/dpp settings
19 * - adjustable pressure current
20 * - adjustable sample settle delay
21 * - 4 and 5 wire touchscreens (5 wire is WM9712 only)
22 * - pen down detection
[all …]
/kernel/linux/linux-4.19/drivers/input/touchscreen/
Dwm97xx-core.c2 * wm97xx-core.c -- Touch screen driver core for Wolfson WM9705, WM9712
19 * - supports WM9705, WM9712, WM9713
20 * - polling mode
21 * - continuous mode (arch-dependent)
22 * - adjustable rpu/dpp settings
23 * - adjustable pressure current
24 * - adjustable sample settle delay
25 * - 4 and 5 wire touchscreens (5 wire is WM9712 only)
26 * - pen down detection
27 * - battery monitor
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Dwlf,arizona.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - patches@opensource.cirrus.com
17 - $ref: /schemas/sound/wlf,arizona.yaml#
18 - $ref: /schemas/regulator/wlf,arizona.yaml#
19 - $ref: /schemas/extcon/wlf,arizona.yaml#
20 - if:
25 - cirrus,cs47l24
26 - wlf,wm1831
[all …]
/kernel/linux/linux-4.19/drivers/pinctrl/qcom/
Dpinctrl-msm.c25 #include <linux/pinctrl/pinconf-generic.h>
27 #include <linux/gpio.h>
36 #include "pinctrl-msm.h"
37 #include "../pinctrl-utils.h"
43 * struct msm_pinctrl - state for a pinctrl-msm device
80 return pctrl->soc->ngroups; in msm_get_groups_count()
88 return pctrl->soc->groups[group].name; in msm_get_group_name()
98 *pins = pctrl->soc->groups[group].pins; in msm_get_group_pins()
99 *num_pins = pctrl->soc->groups[group].npins; in msm_get_group_pins()
114 struct gpio_chip *chip = &pctrl->chip; in msm_pinmux_request()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/qcom/
Dpinctrl-msm.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <linux/pinctrl/pinconf-generic.h>
19 #include <linux/gpio/driver.h>
31 #include "pinctrl-msm.h"
32 #include "../pinctrl-utils.h"
39 * struct msm_pinctrl - state for a pinctrl-msm device
87 return readl(pctrl->regs[g->tile] + g->name##_reg); \
92 writel(val, pctrl->regs[g->tile] + g->name##_reg); \
104 u32 val = g->intr_ack_high ? BIT(g->intr_status_bit) : 0; in MSM_ACCESSOR()
113 return pctrl->soc->ngroups; in msm_get_groups_count()
[all …]
/kernel/linux/linux-4.19/drivers/spi/
Dspi-fsl-spi.c23 #include <linux/dma-mapping.h>
25 #include <linux/gpio.h>
42 #include "spi-fsl-lib.h"
43 #include "spi-fsl-cpm.h"
44 #include "spi-fsl-spi.h"
78 if (dev->of_node) { in fsl_spi_get_type()
79 match = of_match_node(of_fsl_spi_match, dev->of_node); in fsl_spi_get_type()
80 if (match && match->data) in fsl_spi_get_type()
81 return ((struct fsl_spi_match_data *)match->data)->type; in fsl_spi_get_type()
88 struct mpc8xxx_spi *mspi = spi_master_get_devdata(spi->master); in fsl_spi_change_mode()
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
Dltc2947-core.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/hwmon-sysfs.h>
65 #define VOLTAGE_MIN -300
76 #define CURRENT_MIN -30000
85 #define POWER_MIN -450000000
97 #define TEMP_MIN -40000
107 #define LTC2947_ALERTS_SIZE (LTC2947_REG_STATVDVCC - LTC2947_REG_STATUS)
125 * complete sequence select_page->read/write needs to be protected.
138 ret = regmap_bulk_read(st->map, reg, &__val, 2); in __ltc2947_val_read16()
153 ret = regmap_bulk_read(st->map, reg, &__val, 3); in __ltc2947_val_read24()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 #include <linux/gpio/consumer.h>
82 * "force-hpd" would indicate whether driver need this. in analogix_dp_detect_hpd()
84 if (!dp->force_hpd) in analogix_dp_detect_hpd()
85 return -ETIMEDOUT; in analogix_dp_detect_hpd()
92 dev_dbg(dp->dev, "failed to get hpd plug status, try to force hpd\n"); in analogix_dp_detect_hpd()
97 dev_err(dp->dev, "failed to get hpd plug in status\n"); in analogix_dp_detect_hpd()
98 return -EINVAL; in analogix_dp_detect_hpd()
101 dev_dbg(dp->dev, "success to get plug in status after force hpd\n"); in analogix_dp_detect_hpd()
111 ret = drm_dp_dpcd_readb(&dp->aux, DP_PSR_SUPPORT, &psr_version); in analogix_dp_detect_sink_psr()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c22 #include <linux/gpio.h>
85 * "force-hpd" would indicate whether driver need this. in analogix_dp_detect_hpd()
87 if (!dp->force_hpd) in analogix_dp_detect_hpd()
88 return -ETIMEDOUT; in analogix_dp_detect_hpd()
95 dev_dbg(dp->dev, "failed to get hpd plug status, try to force hpd\n"); in analogix_dp_detect_hpd()
100 dev_err(dp->dev, "failed to get hpd plug in status\n"); in analogix_dp_detect_hpd()
101 return -EINVAL; in analogix_dp_detect_hpd()
104 dev_dbg(dp->dev, "success to get plug in status after force hpd\n"); in analogix_dp_detect_hpd()
112 return dp->psr_enable; in analogix_dp_psr_enabled()
120 if (!dp->psr_enable) in analogix_dp_enable_psr()
[all …]
/kernel/linux/linux-4.19/drivers/extcon/
Dextcon-arizona.c2 * extcon-arizona.c - Extcon driver Wolfson Arizona devices
4 * Copyright (C) 2012-2014 Wolfson Microelectronics plc
23 #include <linux/gpio/consumer.h>
24 #include <linux/gpio.h>
30 #include <linux/extcon-provider.h>
37 #include <dt-bindings/mfd/arizona.h>
154 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp()
159 switch (arizona->type) { in arizona_extcon_hp_clamp()
176 ret = regmap_update_bits(arizona->regmap, in arizona_extcon_hp_clamp()
181 dev_warn(arizona->dev, in arizona_extcon_hp_clamp()
[all …]
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon-arizona.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * extcon-arizona.c - Extcon driver Wolfson Arizona devices
5 * Copyright (C) 2012-2014 Wolfson Microelectronics plc
14 #include <linux/gpio/consumer.h>
15 #include <linux/gpio.h>
21 #include <linux/extcon-provider.h>
28 #include <dt-bindings/mfd/arizona.h>
143 struct arizona *arizona = info->arizona; in arizona_extcon_hp_clamp()
148 switch (arizona->type) { in arizona_extcon_hp_clamp()
165 ret = regmap_update_bits(arizona->regmap, in arizona_extcon_hp_clamp()
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dwm8903.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8903.c -- WM8903 ALSA SoC Audio driver
5 * Copyright 2008-12 Wolfson Microelectronics
6 * Copyright 2011-2012 NVIDIA, Inc.
11 * - TDM mode configuration.
12 * - Digital microphone support.
20 #include <linux/gpio/driver.h>
42 { 4, 0x0018 }, /* R4 - Bias Control 0 */
43 { 5, 0x0000 }, /* R5 - VMID Control 0 */
44 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */
[all …]
Dcs35l36.c1 // SPDX-License-Identifier: GPL-2.0
3 // cs35l36.c -- CS35L36 ALSA SoC audio driver
19 #include <linux/gpio/consumer.h>
27 #include <sound/soc-dapm.h>
28 #include <linux/gpio.h>
447 static DECLARE_TLV_DB_SCALE(dig_vol_tlv, -10200, 25, 0);
464 ucontrol->value.integer.value[0] = cs35l36->ldm_mode_sel; in cs35l36_ldm_sel_get()
476 int val = (ucontrol->value.integer.value[0]) ? CS35L36_NG_AMP_EN_MASK : in cs35l36_ldm_sel_put()
479 cs35l36->ldm_mode_sel = val; in cs35l36_ldm_sel_put()
481 regmap_update_bits(cs35l36->regmap, CS35L36_NG_CFG, in cs35l36_ldm_sel_put()
[all …]
/kernel/linux/linux-4.19/sound/soc/codecs/
Dwm8903.c2 * wm8903.c -- WM8903 ALSA SoC Audio driver
4 * Copyright 2008-12 Wolfson Microelectronics
5 * Copyright 2011-2012 NVIDIA, Inc.
14 * - TDM mode configuration.
15 * - Digital microphone support.
23 #include <linux/gpio/driver.h>
45 { 4, 0x0018 }, /* R4 - Bias Control 0 */
46 { 5, 0x0000 }, /* R5 - VMID Control 0 */
47 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */
48 { 8, 0x0001 }, /* R8 - Analogue DAC 0 */
[all …]
/kernel/linux/linux-5.10/arch/mips/alchemy/devboards/
Ddb1200.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (C) 2008-2011 Manuel Lauss
9 #include <linux/dma-mapping.h>
10 #include <linux/gpio.h>
26 #include <asm/mach-au1x00/au1000.h>
27 #include <asm/mach-au1x00/au1100_mmc.h>
28 #include <asm/mach-au1x00/au1xxx_dbdma.h>
29 #include <asm/mach-au1x00/au1xxx_psc.h>
30 #include <asm/mach-au1x00/au1200fb.h>
31 #include <asm/mach-au1x00/au1550_spi.h>
[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.
6 #include <linux/gpio/driver.h>
16 #include <linux/pinctrl/pinconf-generic.h>
39 /* GPIO registers */
43 #define NPCM7XX_GP_N_DOUT 0x0c /* Data OUT */
47 #define NPCM7XX_GP_N_PU 0x1c /* Pull-up */
48 #define NPCM7XX_GP_N_PD 0x20 /* Pull-down */
65 #define NPCM7XX_GP_N_DOS 0x68 /* Data OUT Set */
66 #define NPCM7XX_GP_N_DOC 0x6c /* Data OUT Clear */
[all …]
/kernel/linux/linux-4.19/arch/mips/alchemy/devboards/
Ddb1200.c4 * Copyright (C) 2008-2011 Manuel Lauss
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #include <linux/dma-mapping.h>
23 #include <linux/gpio.h>
40 #include <asm/mach-au1x00/au1000.h>
41 #include <asm/mach-au1x00/au1100_mmc.h>
42 #include <asm/mach-au1x00/au1xxx_dbdma.h>
43 #include <asm/mach-au1x00/au1xxx_psc.h>
44 #include <asm/mach-au1x00/au1200fb.h>
45 #include <asm/mach-au1x00/au1550_spi.h>
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/panel/
Dpanel-ilitek-ili9322.c5 * - 8-bit serial RGB interface
6 * - 24-bit parallel RGB interface
7 * - 8-bit ITU-R BT.601 interface
8 * - 8-bit ITU-R BT.656 interface
9 * - Up to 320RGBx240 dots resolution TFT LCD displays
10 * - Scaling, brightness and contrast
14 * present to the system is something else than what comes out on the
18 * Derived from drivers/drm/gpu/panel/panel-samsung-ld9040.c
30 #include <linux/gpio/consumer.h>
66 /* 0 = right-to-left, 1 = left-to-right (default), horizontal flip */
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/panel/
Dpanel-ilitek-ili9322.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * - 8-bit serial RGB interface
7 * - 24-bit parallel RGB interface
8 * - 8-bit ITU-R BT.601 interface
9 * - 8-bit ITU-R BT.656 interface
10 * - Up to 320RGBx240 dots resolution TFT LCD displays
11 * - Scaling, brightness and contrast
15 * present to the system is something else than what comes out on the
19 * Derived from drivers/drm/gpu/panel/panel-samsung-ld9040.c
23 #include <linux/gpio/consumer.h>
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/zte/
Dpinctrl-zx296718.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include "pinctrl-zx.h"
434 TOP_MUX(0x0, "SPDIF"), /* out */
655 TOP_MUX(0x1, "GPIO")), /* gpio43 */
658 TOP_MUX(0x1, "GPIO")), /* gpio44 */
661 TOP_MUX(0x1, "GPIO")), /* gpio45 */
664 TOP_MUX(0x1, "GPIO")), /* gpio46 */
667 TOP_MUX(0x1, "GPIO")), /* gpio47 */
670 TOP_MUX(0x1, "GPIO")), /* gpio48 */
673 TOP_MUX(0x1, "GPIO")), /* gpio49 */
[all …]

12