Home
last modified time | relevance | path

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

12345678910>>...44

/openbmc/linux/drivers/gpio/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
3 # GPIO infrastructure and drivers
7 bool "GPIO Support"
9 This enables GPIO support through the generic GPIO library.
11 one or more of the GPIO drivers below.
17 config GPIOLIB_FASTPATH_LIMIT
29 config OF_GPIO
34 config GPIO_ACPI
38 config GPIOLIB_IRQCHIP
42 config OF_GPIO_MM_GPIOCHIP
[all …]
H A Dgpio-regmap.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * regmap based generic GPIO driver
17 #include <linux/gpio/driver.h>
18 #include <linux/gpio/regmap.h>
33 int (*reg_mask_xlate)(struct gpio_regmap *gpio, unsigned int base,
48 static int gpio_regmap_simple_xlate(struct gpio_regmap *gpio, in gpio_regmap_simple_xlate() argument
52 unsigned int line = offset % gpio->ngpio_per_reg; in gpio_regmap_simple_xlate()
53 unsigned int stride = offset / gpio->ngpio_per_reg; in gpio_regmap_simple_xlate()
55 *reg = base + stride * gpio->reg_stride; in gpio_regmap_simple_xlate()
63 struct gpio_regmap *gpio = gpiochip_get_data(chip); in gpio_regmap_get() local
[all …]
H A 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 …]
/openbmc/u-boot/drivers/gpio/
H A DKconfig2 # GPIO infrastructure and drivers
5 menu "GPIO Support"
7 config DM_GPIO
8 bool "Enable Driver Model for GPIO drivers"
11 Enable driver model for GPIO access. The standard GPIO
13 the GPIO uclass. Drivers provide methods to query the
15 is defined in include/asm-generic/gpio.h.
17 config GPIO_HOG
18 bool "Enable GPIO hog support"
22 Enable gpio hog support
[all …]
H A Dtegra_gpio.c1 // SPDX-License-Identifier: GPL-2.0+
3 * NVIDIA Tegra20 GPIO handling.
4 * (C) Copyright 2010-2012,2015
21 #include <asm/gpio.h>
22 #include <dm/device-internal.h>
23 #include <dt-bindings/gpio/gpio.h>
33 int base_gpio; /* Port number for this port (0, 1,.., n-1) */
36 /* Information about each port at run-time */
39 int base_gpio; /* Port number for this port (0, 1,.., n-1) */
42 /* Return config of pin 'gpio' as GPIO (1) or SFIO (0) */
[all …]
/openbmc/linux/drivers/pinctrl/
H A 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_AMD
35 bool "AMD GPIO pin control"
44 The driver for memory mapped GPIO functionality on AMD platforms
[all …]
H A 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
12 #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 …]
/openbmc/linux/drivers/pinctrl/bcm/
H A 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 tristate "Broadcom BCM2835 GPIO (with PINCONF) driver"
30 Say Y here to enable the Broadcom BCM2835 GPIO driver.
32 config PINCTRL_BCM4908
44 If compiled as module it will be called pinctrl-bcm4908.
46 config PINCTRL_BCM63XX
55 config PINCTRL_BCM6318
[all …]
/openbmc/linux/drivers/pinctrl/intel/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
6 config PINCTRL_BAYTRAIL
7 bool "Intel Baytrail GPIO pin control"
10 driver for memory mapped GPIO functionality on Intel Baytrail
13 so only a small amount is available for gpio use.
17 config PINCTRL_CHERRYVIEW
18 tristate "Intel Cherryview/Braswell pinctrl and GPIO driver"
24 config PINCTRL_LYNXPOINT
25 tristate "Intel Lynxpoint pinctrl and GPIO driver"
32 config PINCTRL_INTEL
[all …]
/openbmc/linux/Documentation/admin-guide/gpio/
H A Dgpio-sim.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
3 Configfs GPIO Simulator
6 The configfs GPIO Simulator (gpio-sim) provides a way to create simulated GPIO
8 using the standard GPIO character device interface as well as manipulated
12 ------------------------
14 The gpio-sim module registers a configfs subsystem called ``'gpio-sim'``. For
21 **Group:** ``/config/gpio-sim``
23 This is the top directory of the gpio-sim configfs tree.
25 **Group:** ``/config/gpio-sim/gpio-device``
27 **Attribute:** ``/config/gpio-sim/gpio-device/dev_name``
[all …]
/openbmc/phosphor-buttons/
H A DREADME.md1 # phosphor-buttons
3 Phosphor-buttons has a collection of IO event handler interfaces for physical
8 its associated IO for event changes and emits signals that the button-handler
22 - Short press: Do a host power off
23 - Long press, as determined by the 'long-press-time-ms' meson option: Do a
28 The 'power-button-profile' meson option can be used to select custom power
33 - host_then_chassis_poweroff: When power is on, short presses are ignored and a
38 ### Multi-Host Buttons
40 See [this section below](#group-gpio-config).
46 - If 'reset-button-do-warm-reboot' meson option is set to enabled, does warm
[all …]
/openbmc/linux/arch/arm/boot/dts/st/
H A 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";
13 thermal-zones {
14 chassis-thermal {
16 polling-delay = <20000>;
18 polling-delay-passive = <2000>;
[all …]
H A Dste-ux500-samsung-gavini.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy Beam GT-I8530 also known as Gavini.
6 /dts-v1/;
7 #include "ste-db8500.dtsi"
8 #include "ste-ab8500.dtsi"
9 #include "ste-dbx5x0-pinctrl.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/interrupt-controller/irq.h>
[all …]
H A Dste-ux500-samsung-janice.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice.
6 /dts-v1/;
7 #include "ste-db8500.dtsi"
8 #include "ste-ab8500.dtsi"
9 #include "ste-dbx5x0-pinctrl.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/interrupt-controller/irq.h>
[all …]
H A Dste-ux500-samsung-codina.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy Ace 2 GT-I8160 also known as Codina.
11 * The Samsung tree further talks about GT-I8160P and GT-I8160chn (China).
12 * The GT-I8160 plain is known as the "europe" variant.
13 * The GT-I8160P is the CDMA version and it appears to not use the ST
15 * The GT-I8160chn appears to be the same as the europe variant.
17 * There is also the Codina-TMO, Samsung SGH-T599, which has its own device
21 /dts-v1/;
22 #include "ste-db8500.dtsi"
23 #include "ste-ab8500.dtsi"
[all …]
H A Dste-ux500-samsung-kyle.dts1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy Amp SGH-I407 also known as Kyle.
10 /dts-v1/;
11 #include "ste-db8500.dtsi"
12 #include "ste-ab8505.dtsi"
13 #include "ste-dbx5x0-pinctrl.dtsi"
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/leds/common.h>
16 #include <dt-bindings/input/input.h>
17 #include <dt-bindings/interrupt-controller/irq.h>
[all …]
/openbmc/phosphor-gpio-monitor/
H A DREADME.md1 # GPIO Monitoring
5 ### `phosphor-gpio-monitor`
7 This daemon accepts a command line parameter for monitoring single gpio line and
8 take action if requested. This implementation uses GPIO keys and only supports
9 monitoring single GPIO line, for multiple lines, user has to run this daemon
10 seperately for each gpio line.
12 ### `phosphor-multi-gpio-monitor`
14 This daemon accepts command line parameter as a well-defined GPIO configuration
15 file in json format to monitor list of gpios from config file and take action
16 defined in config based on gpio state change. It uses libgpiod library.
[all …]
H A DgpioMonMain.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
22 #include <phosphor-logging/lg2.hpp>
28 namespace gpio namespace
46 CLI::App app{"Monitor GPIO line for requested state change"}; in main()
51 app.add_option("-c,--config", gpioFileName, "Name of config json file") in main()
52 ->required() in main()
53 ->check(CLI::ExistingFile); in main()
65 /* Get list of gpio config details from json file */ in main()
69 lg2::error("GPIO monitor config file not found: {FILE}", "FILE", in main()
71 return -1; in main()
[all …]
/openbmc/linux/tools/gpio/
H A 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 …]
H A 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 …]
/openbmc/u-boot/arch/mips/mach-bmips/
H A DKconfig4 config SYS_MALLOC_F_LEN
7 config SYS_SOC
22 config SOC_BMIPS_BCM3380
32 config SOC_BMIPS_BCM6318
42 config SOC_BMIPS_BCM6328
52 config SOC_BMIPS_BCM6338
62 config SOC_BMIPS_BCM6348
72 config SOC_BMIPS_BCM6358
82 config SOC_BMIPS_BCM6368
92 config SOC_BMIPS_BCM6362
[all …]
/openbmc/phosphor-gpio-monitor/multi-presence/
H A Dmain.cpp9 * http://www.apache.org/licenses/LICENSE-2.0
23 #include <phosphor-logging/lg2.hpp>
29 namespace gpio namespace
37 /**< Enable pull-up. */
39 /**< Enable pull-down. */
48 CLI::App app{"Monitor gpio presence status"}; in main()
53 app.add_option("-c,--config", gpioFileName, "Name of config json file") in main()
54 ->required() in main()
55 ->check(CLI::ExistingFile); in main()
67 /* Get list of gpio config details from json file */ in main()
[all …]
/openbmc/u-boot/drivers/pinctrl/broadcom/
H A Dpinctrl-bcm283x.c1 // SPDX-License-Identifier: GPL-2.0
5 * Based on drivers/pinctrl/mvebu/pinctrl-mvebu.c and
6 * drivers/gpio/bcm2835_gpio.c
8 * This driver gets instantiated by the GPIO driver, because both devices
14 #include <config.h>
19 #include <dm/device-internal.h>
23 #include <asm/gpio.h>
31 static void bcm2835_gpio_set_func_id(struct udevice *dev, unsigned int gpio, in bcm2835_gpio_set_func_id() argument
38 reg_offset = BCM2835_GPIO_FSEL_BANK(gpio); in bcm2835_gpio_set_func_id()
39 field_offset = BCM2835_GPIO_FSEL_SHIFT(gpio); in bcm2835_gpio_set_func_id()
[all …]
/openbmc/linux/drivers/pinctrl/mediatek/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
5 config EINT_MTK
13 config PINCTRL_MTK
21 config PINCTRL_MTK_V2
24 config PINCTRL_MTK_MTMIPS
30 config PINCTRL_MTK_MOORE
40 config PINCTRL_MTK_PARIS
50 config PINCTRL_MT7620
57 config PINCTRL_MT7621
64 config PINCTRL_MT76X8
[all …]
/openbmc/docs/development/
H A Dadd-new-system.md19 - Review background about Yocto and BitBake
20 - Creating a new system layer
21 - Populating this new layer
22 - Building the new system and testing in QEMU
23 - Adding configs for sensors, LEDs, inventories, etc.
32 Yocto has a concept of hierarchical layers. When you build a Yocto-based
35 defined within OpenBMC can be found with the meta-\* directories in OpenBMC
57 [page](https://github.com/openbmc/openbmc/blob/master/README.md#2-download-the-source)
58 for the Romulus system (steps 2-4).
64 system will be called romulus-prime.
[all …]

12345678910>>...44