Home
last modified time | relevance | path

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

12345678910>>...43

/kernel/linux/linux-4.19/drivers/gpio/
DKconfig2 # GPIO infrastructure and drivers
5 config ARCH_HAVE_CUSTOM_GPIO_H
8 Selecting this config option from the architecture Kconfig allows
9 the architecture to provide a custom asm/gpio.h implementation
14 bool "GPIO Support"
17 This enables GPIO support through the generic GPIO library.
19 one or more of the GPIO drivers below.
25 config GPIOLIB_FASTPATH_LIMIT
37 config OF_GPIO
42 config GPIO_ACPI
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # GPIO infrastructure and drivers
6 config ARCH_HAVE_CUSTOM_GPIO_H
9 Selecting this config option from the architecture Kconfig allows
10 the architecture to provide a custom asm/gpio.h implementation
15 bool "GPIO Support"
17 This enables GPIO support through the generic GPIO library.
19 one or more of the GPIO drivers below.
25 config GPIOLIB_FASTPATH_LIMIT
37 config OF_GPIO
[all …]
Dgpio-regmap.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * regmap based generic GPIO driver
8 #include <linux/gpio/driver.h>
9 #include <linux/gpio/regmap.h>
27 int (*reg_mask_xlate)(struct gpio_regmap *gpio, unsigned int base,
42 static int gpio_regmap_simple_xlate(struct gpio_regmap *gpio, in gpio_regmap_simple_xlate() argument
46 unsigned int line = offset % gpio->ngpio_per_reg; in gpio_regmap_simple_xlate()
47 unsigned int stride = offset / gpio->ngpio_per_reg; in gpio_regmap_simple_xlate()
49 *reg = base + stride * gpio->reg_stride; in gpio_regmap_simple_xlate()
57 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get() local
[all …]
Dgpio-sl28cpld.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * sl28cpld GPIO driver
9 #include <linux/gpio/driver.h>
10 #include <linux/gpio/regmap.h>
18 /* GPIO flavor */
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()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
11 config GENERIC_PINCTRL_GROUPS
14 config PINMUX
17 config GENERIC_PINMUX_FUNCTIONS
21 config PINCONF
24 config GENERIC_PINCONF
28 config DEBUG_PINCTRL
34 config PINCTRL_ARTPEC6
35 bool "Axis ARTPEC-6 pin controller driver"
40 This is the driver for the Axis ARTPEC-6 pin controller. This driver
[all …]
Dpinctrl-falcon.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/drivers/pinctrl/pinmux-falcon.c
4 * based on linux/drivers/pinctrl/pinmux-pxa910.c
10 #include <linux/gpio/driver.h>
22 #include "pinctrl-lantiq.h"
107 MFP_FALCON(GPIO0, RST, GPIO, NONE, NONE),
108 MFP_FALCON(GPIO1, GPIO, GPIO, NONE, NONE),
109 MFP_FALCON(GPIO2, GPIO, GPIO, NONE, NONE),
110 MFP_FALCON(GPIO3, GPIO, GPIO, NONE, NONE),
111 MFP_FALCON(GPIO4, NTR, GPIO, NONE, NONE),
[all …]
/kernel/linux/linux-4.19/drivers/pinctrl/
DKconfig10 config GENERIC_PINCTRL_GROUPS
13 config PINMUX
16 config GENERIC_PINMUX_FUNCTIONS
20 config PINCONF
23 config GENERIC_PINCONF
27 config DEBUG_PINCTRL
33 config PINCTRL_ARTPEC6
34 bool "Axis ARTPEC-6 pin controller driver"
39 This is the driver for the Axis ARTPEC-6 pin controller. This driver
42 found in Documentation/devicetree/bindings/pinctrl/axis,artpec6-pinctrl.txt
[all …]
Dpinctrl-falcon.c2 * linux/drivers/pinctrl/pinmux-falcon.c
3 * based on linux/drivers/pinctrl/pinmux-pxa910.c
13 #include <linux/gpio.h>
25 #include "pinctrl-lantiq.h"
114 MFP_FALCON(GPIO0, RST, GPIO, NONE, NONE),
115 MFP_FALCON(GPIO1, GPIO, GPIO, NONE, NONE),
116 MFP_FALCON(GPIO2, GPIO, GPIO, NONE, NONE),
117 MFP_FALCON(GPIO3, GPIO, GPIO, NONE, NONE),
118 MFP_FALCON(GPIO4, NTR, GPIO, NONE, NONE),
119 MFP_FALCON(GPIO5, NTR, GPIO, PPS, NONE),
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/intel/
DKconfig1 # SPDX-License-Identifier: GPL-2.0
6 config PINCTRL_BAYTRAIL
7 bool "Intel Baytrail GPIO pin control"
11 driver for memory mapped GPIO functionality on Intel Baytrail
14 so only a small amount is available for gpio use.
18 config PINCTRL_CHERRYVIEW
19 tristate "Intel Cherryview/Braswell pinctrl and GPIO driver"
26 config PINCTRL_LYNXPOINT
27 tristate "Intel Lynxpoint pinctrl and GPIO driver"
39 config PINCTRL_MERRIFIELD
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dste-hrefv60plus.dtsi1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2012 ST-Ericsson AB
6 #include "ste-href-ab8500.dtsi"
7 #include "ste-href.dtsi"
10 model = "ST-Ericsson HREF (v60+) platform with Device Tree";
11 compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
14 /* Name the GPIO muxed rails on the HREF boards */
15 gpio@8012e000 {
16 /* GPIOs 0 - 31 */
17 gpio-line-names =
[all …]
/kernel/linux/linux-4.19/arch/arm/boot/dts/
Dste-hrefv60plus.dtsi2 * Copyright 2012 ST-Ericsson AB
8 * http://www.opensource.org/licenses/gpl-license.html
12 #include "ste-dbx5x0.dtsi"
13 #include "ste-href-ab8500.dtsi"
14 #include "ste-href.dtsi"
17 model = "ST-Ericsson HREF (v60+) platform with Device Tree";
18 compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
21 /* Name the GPIO muxed rails on the HREF boards */
22 gpio@8012e000 {
23 /* GPIOs 0 - 31 */
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/qcom/
Dmsm8996-pins.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
12 function = "gpio";
15 config {
17 drive-strength = <2>; /* 2 mA */
18 bias-pull-down; /* pull down */
19 input-enable;
28 function = "gpio";
30 config {
32 drive-strength = <16>;
[all …]
/kernel/linux/linux-4.19/drivers/regulator/
Dgpio-regulator.c2 * gpio-regulator.c
13 * Roger Quadros <ext-roger.quadros@nokia.com>
21 * non-controllable regulators, as well as for allowing testing on
32 #include <linux/regulator/gpio-regulator.h>
33 #include <linux/gpio.h>
42 struct gpio *gpios;
56 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_get_value()
57 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value()
58 return data->states[ptr].value; in gpio_regulator_get_value()
60 return -EINVAL; in gpio_regulator_get_value()
[all …]
Dfixed.c9 * Roger Quadros <ext-roger.quadros@nokia.com>
17 * non-controllable regulators, as well as for allowing testing on
27 #include <linux/gpio.h>
41 * of_get_fixed_voltage_config - extract fixed_voltage_config structure info
53 struct fixed_voltage_config *config; in of_get_fixed_voltage_config() local
54 struct device_node *np = dev->of_node; in of_get_fixed_voltage_config()
57 config = devm_kzalloc(dev, sizeof(struct fixed_voltage_config), in of_get_fixed_voltage_config()
59 if (!config) in of_get_fixed_voltage_config()
60 return ERR_PTR(-ENOMEM); in of_get_fixed_voltage_config()
62 config->init_data = of_get_regulator_init_data(dev, dev->of_node, desc); in of_get_fixed_voltage_config()
[all …]
/kernel/linux/linux-4.19/drivers/pinctrl/intel/
DKconfig1 # SPDX-License-Identifier: GPL-2.0
6 config PINCTRL_BAYTRAIL
7 bool "Intel Baytrail GPIO pin control"
15 driver for memory mapped GPIO functionality on Intel Baytrail
18 so only a small amount is available for gpio use.
22 config PINCTRL_CHERRYVIEW
23 tristate "Intel Cherryview/Braswell pinctrl and GPIO driver"
34 config PINCTRL_MERRIFIELD
41 Merrifield Family-Level Interface Shim (FLIS) driver provides an
45 config PINCTRL_INTEL
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/bcm/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
6 config PINCTRL_BCM281XX
18 framework. GPIO is provided by a separate GPIO driver.
20 config PINCTRL_BCM2835
21 bool "Broadcom BCM2835 GPIO (with PINCONF) driver"
30 Say Y here to enable the Broadcom BCM2835 GPIO driver.
32 config PINCTRL_IPROC_GPIO
33 bool "Broadcom iProc GPIO (with PINCONF) driver"
40 Say yes here to enable the Broadcom iProc GPIO driver.
42 The Broadcom iProc based SoCs- Cygnus, NS2, NSP and Stingray, use
[all …]
/kernel/linux/linux-4.19/arch/arm64/boot/dts/qcom/
Dmsm8996-pins.dtsi2 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
22 function = "gpio";
27 drive-strength = <12>;
28 bias-disable;
32 drive-strength = <16>;
33 bias-disable;
34 output-high;
40 function = "gpio";
45 drive-strength = <2>;
46 bias-pull-down;
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/msm/hdmi/
Dhdmi_connector.c18 #include <linux/gpio.h>
82 struct device *dev = &hdmi->pdev->dev; in gpio_config()
83 const struct hdmi_platform_config *config = hdmi->config; in gpio_config() local
88 struct hdmi_gpio_data gpio = config->gpios[i]; in gpio_config() local
90 if (gpio.num != -1) { in gpio_config()
91 ret = gpio_request(gpio.num, gpio.label); in gpio_config()
95 gpio.label, gpio.num, ret); in gpio_config()
99 if (gpio.output) { in gpio_config()
100 gpio_direction_output(gpio.num, in gpio_config()
101 gpio.value); in gpio_config()
[all …]
/kernel/linux/linux-4.19/drivers/pinctrl/bcm/
DKconfig5 config PINCTRL_BCM281XX
17 framework. GPIO is provided by a separate GPIO driver.
19 config PINCTRL_BCM2835
27 config PINCTRL_IPROC_GPIO
28 bool "Broadcom iProc GPIO (with PINCONF) driver"
35 Say yes here to enable the Broadcom iProc GPIO driver.
37 The Broadcom iProc based SoCs- Cygnus, NS2, NSP and Stingray, use
38 same GPIO Controller IP hence this driver could be used for all.
40 The Broadcom Cygnus SoC has 3 GPIO controllers including the ASIU
41 GPIO controller (ASIU), the chipCommonG GPIO controller (CCM), and
[all …]
/kernel/linux/linux-5.10/tools/gpio/
Dgpio-utils.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * GPIO tools - helpers library for the GPIO tools
17 #include <linux/gpio.h>
18 #include "gpio-utils.h"
20 #define CONSUMER "gpio-utils"
23 * doc: Operation of gpio
27 * ioctl, including request and release for lines of gpio, read/write
28 * the value of gpio. If the user want to do lots of read and write of
29 * lines of gpio, user should use this type of api.
32 * following api will request gpio lines, do the operation and then
[all …]
Dgpio-event-mon.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * gpio-event-mon - monitor GPIO line events from userspace
8 * gpio-event-mon -n <device-name> -o <offset>
25 #include <linux/gpio.h>
26 #include "gpio-utils.h"
31 struct gpio_v2_line_config *config, in monitor_device() argument
42 return -ENOMEM; in monitor_device()
45 if (cfd == -1) { in monitor_device()
46 ret = -errno; in monitor_device()
51 ret = gpiotools_request_line(device_name, lines, num_lines, config, in monitor_device()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/hdmi/
Dhdmi_connector.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include <linux/gpio/consumer.h>
72 const struct hdmi_platform_config *config = hdmi->config; in gpio_config() local
77 struct hdmi_gpio_data gpio = config->gpios[i]; in gpio_config() local
79 if (gpio.gpiod) { in gpio_config()
80 if (gpio.output) { in gpio_config()
81 gpiod_direction_output(gpio.gpiod, in gpio_config()
82 gpio.value); in gpio_config()
84 gpiod_direction_input(gpio.gpiod); in gpio_config()
85 gpiod_set_value_cansleep(gpio.gpiod, in gpio_config()
[all …]
/kernel/linux/linux-4.19/drivers/mfd/
DKconfig8 config MFD_CORE
13 config MFD_CS5535
17 ---help---
19 necessary for using the board's GPIO and MFGPT functionality.
21 config MFD_ALTERA_A10SR
29 accessing the external gpio extender (LEDs & buttons) and
32 config MFD_ACT8945A
33 tristate "Active-semi ACT8945A"
38 Support for the ACT8945A PMIC from Active-semi. This device
39 features three step-down DC/DC converters and four low-dropout
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/mvebu/
Dpinctrl-dove.c1 // SPDX-License-Identifier: GPL-2.0-or-later
20 #include "pinctrl-mvebu.h"
23 #define INT_REGS_MASK ~(SZ_1M - 1)
44 /* Global Config regmap registers */
64 unsigned pid, unsigned long *config) in dove_pmu_mpp_ctrl_get() argument
68 unsigned long pmu = readl(data->base + PMU_MPP_GENERAL_CTRL); in dove_pmu_mpp_ctrl_get()
72 return mvebu_mmio_mpp_ctrl_get(data, pid, config); in dove_pmu_mpp_ctrl_get()
75 *config = (func >> shift) & MVEBU_MPP_MASK; in dove_pmu_mpp_ctrl_get()
76 *config |= CONFIG_PMU; in dove_pmu_mpp_ctrl_get()
82 unsigned pid, unsigned long config) in dove_pmu_mpp_ctrl_set() argument
[all …]
/kernel/linux/linux-4.19/drivers/pinctrl/mvebu/
Dpinctrl-dove.c24 #include "pinctrl-mvebu.h"
27 #define INT_REGS_MASK ~(SZ_1M - 1)
48 /* Global Config regmap registers */
68 unsigned pid, unsigned long *config) in dove_pmu_mpp_ctrl_get() argument
72 unsigned long pmu = readl(data->base + PMU_MPP_GENERAL_CTRL); in dove_pmu_mpp_ctrl_get()
76 return mvebu_mmio_mpp_ctrl_get(data, pid, config); in dove_pmu_mpp_ctrl_get()
79 *config = (func >> shift) & MVEBU_MPP_MASK; in dove_pmu_mpp_ctrl_get()
80 *config |= CONFIG_PMU; in dove_pmu_mpp_ctrl_get()
86 unsigned pid, unsigned long config) in dove_pmu_mpp_ctrl_set() argument
90 unsigned long pmu = readl(data->base + PMU_MPP_GENERAL_CTRL); in dove_pmu_mpp_ctrl_set()
[all …]

12345678910>>...43