Home
last modified time | relevance | path

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

12345678910>>...22

/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/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.cpp1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors
9 #include <phosphor-logging/lg2.hpp>
15 namespace gpio namespace
33 CLI::App app{"Monitor GPIO line for requested state change"}; in main()
38 app.add_option("-c,--config", gpioFileName, "Name of config json file") in main()
39 ->required() in main()
40 ->check(CLI::ExistingFile); in main()
52 /* Get list of gpio config details from json file */ in main()
56 lg2::error("GPIO monitor config file not found: {FILE}", "FILE", in main()
[all …]
H A DgpioMon.hpp1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors
16 namespace gpio namespace
20 * @brief Responsible for catching GPIO state change
35 * @param[in] line - GPIO line from libgpiod
36 * @param[in] config - configuration of line with event
37 * @param[in] io - io service
38 * @param[in] target - systemd unit to be started on GPIO
40 * @param[in] targets - systemd units to be started on GPIO
42 * @param[in] lineMsg - GPIO line message to be used for log
[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/phosphor-gpio-monitor/multi-presence/
H A Dmain.cpp1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors
9 #include <phosphor-logging/lg2.hpp>
15 namespace gpio namespace
23 /**< Enable pull-up. */
25 /**< Enable pull-down. */
34 CLI::App app{"Monitor gpio presence status"}; in main()
39 app.add_option("-c,--config", gpioFileName, "Name of config json file") in main()
40 ->required() in main()
41 ->check(CLI::ExistingFile); in main()
[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/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/phosphor-buttons/inc/
H A Dgpio.hpp8 // http://www.apache.org/licenses/LICENSE-2.0
26 // enum to represent gpio states
33 // enum to represent gpio polarity
46 // this struct has the gpio config for single gpio
49 int fd; // io fd mapped with the gpio
58 * config which is set from gpio defs json file.
59 * The fd of the configured gpio is stored in ButtonConfig.gpios container
60 * @return int returns 0 on successful config of all gpios
66 * @brief configures and initializes the single gpio
67 * @return int returns 0 on successful config of all gpios
[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 …]
/openbmc/u-boot/drivers/i2c/muxes/
H A DKconfig1 config I2C_MUX
10 config SPL_I2C_MUX
19 config I2C_ARB_GPIO_CHALLENGE
20 bool "GPIO-based I2C arbitration"
26 a GPIO.
28 config I2C_MUX_PCA954x
38 config I2C_MUX_GPIO
39 tristate "GPIO-based I2C multiplexer"
43 a GPIO based I2C multiplexer. This driver provides access to
45 through GPIO pins.
/openbmc/phosphor-buttons/src/
H A Dmain.cpp8 // http://www.apache.org/licenses/LICENSE-2.0
21 #include <phosphor-logging/elog-errors.hpp>
22 #include <phosphor-logging/lg2.hpp>
57 // load cpld config from gpio defs json file and create button interface in main()
82 // load gpio config from gpio defs json file and create button interface in main()
91 buttonCfg.type = ConfigType::gpio; in main()
93 /* The following code checks if the gpio config read in main()
94 from json file is single gpio config or group gpio config, in main()
96 lg2::debug("Found button config : {FORM_FACTOR_NAME}", in main()
102 for (const auto& config : groupGpio) in main() local
[all …]
H A DhostSelector_switch.cpp4 #include "gpio.hpp"
8 #include <phosphor-logging/lg2.hpp>
35 if (config.gpios[index].fd == fd) in getGpioIndex()
69 if (config.type == ConfigType::gpio) in setInitialHostSelectorValue()
74 (getValueFromFd(config.gpios[index].fd) == '0') in setInitialHostSelectorValue()
77 setHostSelectorValue(config.gpios[index].fd, gpioState); in setInitialHostSelectorValue()
81 else if (config.type == ConfigType::cpld) in setInitialHostSelectorValue()
83 hsPosMapped = getValueFromFd(config.cpld.cpldMappedFd) - '0'; in setInitialHostSelectorValue()
92 if (config.extraJsonInfo.value("polling_mode", false)) in setInitialHostSelectorValue()
94 // If polling mode is enabled, set up a timer to poll the GPIO state in setInitialHostSelectorValue()
[all …]
/openbmc/obmc-console/
H A Dconsole-mux.c9 #include "console-server.h"
10 #include "console-mux.h"
11 #include "config.h"
23 static const char *key_mux_gpios = "mux-gpios";
24 static const char *key_mux_index = "mux-index";
57 length = comma - current; in extract_mux_gpio_name()
76 console_mux_find_gpio_by_index(struct console_gpio *gpio, in console_mux_find_gpio_by_index() argument
81 gpio->name = extract_mux_gpio_name(config_gpio_names); in console_mux_find_gpio_by_index()
82 if (gpio->name == NULL) { in console_mux_find_gpio_by_index()
83 warnx("could not extract mux gpio name from config '%s'", in console_mux_find_gpio_by_index()
[all …]
/openbmc/u-boot/drivers/pinctrl/
H A DKconfig7 config PINCTRL
14 config PINCTRL_FULL
19 This provides Linux-compatible device tree interface for the pinctrl
24 If this option is disabled (it is the only possible choice for non-DT
27 It is totally up to the implementation of each low-level driver.
30 config PINCTRL_GENERIC
40 If you need to handle vendor-specific DT properties, you can disable
44 config PINMUX
55 config PINCONF
62 config SPL_PINCTRL
[all …]
/openbmc/u-boot/drivers/led/
H A DKconfig3 config LED
8 U-Boot provides a uclass API to implement this feature. LED drivers
9 can provide access to board-specific LEDs. Use of the device tree
12 config LED_BCM6328
23 config LED_BCM6358
31 config LED_BLINK
40 config SPL_LED
49 config LED_GPIO
50 bool "LED support for GPIO-connected LEDs"
53 Enable support for LEDs which are connected to GPIO lines. These
[all …]
/openbmc/openbmc/meta-raspberrypi/recipes-bsp/bootfiles/
H A Drpi-config_git.bb1 DESCRIPTION = "Commented config.txt file for the Raspberry Pi. \
2 The Raspberry Pi config.txt file is read by the GPU before \
11 SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=https;branch=master \
12 file://0001-config.txt-reintroduce-start_x.patch \
28 VC4DTBO ?= "vc4-kms-v3d"
45 install -d ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}
46 CONFIG=${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
48 cp ${S}/config.txt $CONFIG
50 if [ -n "${KEY_DECODE_MPG2}" ]; then
51 sed -i '/#decode_MPG2=/ c\decode_MPG2=${KEY_DECODE_MPG2}' $CONFIG
[all …]
/openbmc/x86-power-control/
H A DREADME.md16 its config file.
18 x86-power-control uses default json file (power-config-host0.json) for GPIO
20 power-config-host0.json file.
24 Definitions can be configured by two type: GPIO and DBUS
26 ### GPIO subsection
28 For the platform having direct GPIO access can use the type GPIO and define like
35 "Type": "GPIO"
41 For the platform not having direct GPIO access can use dbus based event monitor
55 x86-power-control will monitor the property change from the given DbusName and
64 ### chassis-system-reset
[all …]
/openbmc/entity-manager/src/gpio-presence/
H A Dgpio_presence_manager.hpp2 * SPDX-FileCopyrightText: Copyright (c) 2022-2024. All rights
3 * reserved. SPDX-License-Identifier: Apache-2.0
27 auto start() -> void;
31 auto getPresence(const std::string& name) -> bool;
35 auto setupBusName() const -> std::string;
38 // @param[in] obj object path for the new config
39 // @param[in] config configuration for the new object
41 std::unique_ptr<DevicePresence> config) -> void;
43 // update presence information based on new gpio state
44 // @param[in] gpioLine name of the gpio line
[all …]
/openbmc/u-boot/arch/arm/include/asm/arch-tegra/
H A Dgpio.h1 /* SPDX-License-Identifier: GPL-2.0+ */
9 #include <dt-bindings/gpio/tegra-gpio.h>
28 u32 gpio:16; member
35 * @param config List of GPIO configurations
36 * @param len Number of config items in list
38 void gpio_config_table(const struct tegra_gpio_config *config, int len);
/openbmc/openbmc/meta-openembedded/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/
H A Drun-ptest.in3 ptestdir=$(dirname "$(readlink -f "$0")")
4 testbin="gpio-sysfs-compat-tests"
6 modprobe gpio-sim
9 mountpoint -q /sys/kernel/config
10 if [ "$?" -ne "0" ]; then
11 mount -t configfs configfs /sys/kernel/config
16 ./$testbin -v --gpio-class @mountpoint@ --chown-user gpio-test > ./$testbin.out 2>&1
17 if [ $? -ne 0 ]; then
/openbmc/u-boot/arch/x86/cpu/broadwell/
H A Dpinctrl_broadwell.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include <asm/gpio.h>
16 #include <asm/arch/gpio.h>
17 #include <dt-bindings/gpio/x86-gpio.h>
19 #include <dm/uclass-internal.h>
49 const void *blob = gd->fdt_blob; in broadwell_pinctrl_read_configs()
62 return -ENOSPC; in broadwell_pinctrl_read_configs()
66 conf->node = node; in broadwell_pinctrl_read_configs()
67 conf->phandle = phandle; in broadwell_pinctrl_read_configs()
68 conf->mode_gpio = fdtdec_get_bool(blob, node, "mode-gpio"); in broadwell_pinctrl_read_configs()
[all …]
/openbmc/u-boot/doc/device-tree-bindings/pinctrl/
H A Drockchip,pinctrl.txt6 muxing options with option 0 being the use as a GPIO.
8 Please refer to pinctrl-bindings.txt in this directory for details of the
14 config of the pins in that group. The 'pins' selects the function mode(also
15 named pin mode) this pin can work on and the 'config' configures various pad
16 settings such as pull-up, etc.
19 defined as gpio sub-nodes of the pinmux controller.
22 - compatible: one of "rockchip,rk2928-pinctrl", "rockchip,rk3066a-pinctrl"
23 "rockchip,rk3066b-pinctrl", "rockchip,rk3188-pinctrl"
24 "rockchip,rk3288-pinctrl"
25 - rockchip,grf: phandle referencing a syscon providing the
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libgpiod/libgpiod-2.x/
H A Drun-ptest3 ptestdir=$(dirname "$(readlink -f "$0")")
6 export GPIODBUS_TEST_DAEMON_PATH="$ptestdir/tests/gpio-manager"
9 # libgpiod v2 uses gpio-sim - a configfs-based testing module. We need to
12 mountpoint /sys/kernel/config > /dev/null || mount -t configfs configfs /sys/kernel/config
15 systemctl stop gpio-manager 2> /dev/null > /dev/null
16 service gpio-manager stop 2> /dev/null > /dev/null
22 if [ $? -ne 0 ]; then
29 run_one_test gpiod-test
30 run_one_test gpio-tools-test.bash
31 run_one_test gpiod-cxx-test
[all …]

12345678910>>...22