/openbmc/linux/drivers/i2c/muxes/ |
H A D | i2c-mux-ltc4306.c | 48 struct gpio_chip gpiochip; member 158 data->gpiochip.label = dev_name(dev); in ltc4306_gpio_init() 159 data->gpiochip.base = -1; in ltc4306_gpio_init() 160 data->gpiochip.ngpio = data->chip->num_gpios; in ltc4306_gpio_init() 161 data->gpiochip.parent = dev; in ltc4306_gpio_init() 162 data->gpiochip.can_sleep = true; in ltc4306_gpio_init() 163 data->gpiochip.get_direction = ltc4306_gpio_get_direction; in ltc4306_gpio_init() 164 data->gpiochip.direction_input = ltc4306_gpio_direction_input; in ltc4306_gpio_init() 165 data->gpiochip.direction_output = ltc4306_gpio_direction_output; in ltc4306_gpio_init() 166 data->gpiochip.get = ltc4306_gpio_get; in ltc4306_gpio_init() [all …]
|
/openbmc/phosphor-hwmon/ |
H A D | gpio_handle.cpp | 17 BuildGpioHandle(const std::string& gpiochip, const std::string& line) in BuildGpioHandle() argument 20 unsigned long chipId = std::strtoul(gpiochip.c_str(), &gpioEnd, 10); in BuildGpioHandle() 23 if (!gpioEnd || gpioEnd != &gpiochip.c_str()[gpiochip.length()]) in BuildGpioHandle() 26 entry("GPIOCHIP=%s", gpiochip.c_str())); in BuildGpioHandle()
|
H A D | gpio_handle.hpp | 14 * @param[in] gpiochip - gpiochip id as string, e.g. "0", or "1" 19 BuildGpioHandle(const std::string& gpiochip, const std::string& line);
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-msc313.c | 613 struct gpio_chip *gpiochip; in msc313_gpio_probe() local 647 gpiochip = devm_kzalloc(dev, sizeof(*gpiochip), GFP_KERNEL); in msc313_gpio_probe() 648 if (!gpiochip) in msc313_gpio_probe() 651 gpiochip->label = DRIVER_NAME; in msc313_gpio_probe() 652 gpiochip->parent = dev; in msc313_gpio_probe() 653 gpiochip->request = gpiochip_generic_request; in msc313_gpio_probe() 654 gpiochip->free = gpiochip_generic_free; in msc313_gpio_probe() 655 gpiochip->direction_input = msc313_gpio_direction_input; in msc313_gpio_probe() 656 gpiochip->direction_output = msc313_gpio_direction_output; in msc313_gpio_probe() 657 gpiochip->get = msc313_gpio_get; in msc313_gpio_probe() [all …]
|
H A D | TODO | 79 Get rid of <linux/gpio/legacy-of-mm-gpiochip.h> 175 directory per gpiochip and one file entry per line: 177 /sys/kernel/debug/gpiochip/gpiochip0 178 /sys/kernel/debug/gpiochip/gpiochip0/gpio0 179 /sys/kernel/debug/gpiochip/gpiochip0/gpio1 180 /sys/kernel/debug/gpiochip/gpiochip0/gpio2 181 /sys/kernel/debug/gpiochip/gpiochip0/gpio3 183 /sys/kernel/debug/gpiochip/gpiochip1 184 /sys/kernel/debug/gpiochip/gpiochip1/gpio0 185 /sys/kernel/debug/gpiochip/gpiochip1/gpio1
|
H A D | gpio-sama5d2-piobu.c | 112 * sama5d2_piobu_get_direction() - gpiochip get_direction 127 * sama5d2_piobu_direction_input() - gpiochip direction_input 136 * sama5d2_piobu_direction_output() - gpiochip direction_output 151 * sama5d2_piobu_get() - gpiochip get 170 * sama5d2_piobu_set() - gpiochip set 213 dev_err(&pdev->dev, "Failed to add gpiochip %d\n", ret); in sama5d2_piobu_probe()
|
H A D | gpio-ixp4xx.c | 45 * @gc: gpiochip for this instance 268 * the fixed gpiochip base. in ixp4xx_gpio_probe() 284 dev_err(dev, "failed to add SoC gpiochip\n"); in ixp4xx_gpio_probe()
|
/openbmc/linux/tools/gpio/ |
H A D | gpio-utils.c | 25 * Provide the api of gpiochip for chardev interface. There are two 37 * gpiotools_request_line() - request gpio lines in a gpiochip 38 * @device_name: The name of gpiochip without prefix "/dev/", 151 * gpiotools_release_line() - Release the line(s) of gpiochip 173 * @device_name: The name of gpiochip without prefix "/dev/", 195 * @device_name: The name of gpiochip without prefix "/dev/", 200 * @values: The array of values get from gpiochip. 234 * @device_name: The name of gpiochip without prefix "/dev/", 252 * @device_name: The name of gpiochip without prefix "/dev/", 257 * @values: The array of values set to gpiochip, must be
|
H A D | gpio-watch.c | 37 perror("unable to open gpiochip"); in main() 98 printf("%s: <gpiochip> <line0> <line1> ...\n", argv[0]); in main()
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-yosemite4/plat-svc/files/ |
H A D | yosemite4-early-sys-init | 46 GPIOCHIP=$(basename /sys/bus/i2c/devices/"$host_bus"-0023/*gpiochip*) 47 if [ "$GPIOCHIP" != "*gpiochip*" ]; then 48 gpioset "$GPIOCHIP" 24=1
|
/openbmc/linux/drivers/iio/dac/ |
H A D | ad5592r-base.c | 136 st->gpiochip.label = dev_name(st->dev); in ad5592r_gpio_init() 137 st->gpiochip.base = -1; in ad5592r_gpio_init() 138 st->gpiochip.ngpio = 8; in ad5592r_gpio_init() 139 st->gpiochip.parent = st->dev; in ad5592r_gpio_init() 140 st->gpiochip.can_sleep = true; in ad5592r_gpio_init() 141 st->gpiochip.direction_input = ad5592r_gpio_direction_input; in ad5592r_gpio_init() 142 st->gpiochip.direction_output = ad5592r_gpio_direction_output; in ad5592r_gpio_init() 143 st->gpiochip.get = ad5592r_gpio_get; in ad5592r_gpio_init() 144 st->gpiochip.set = ad5592r_gpio_set; in ad5592r_gpio_init() 145 st->gpiochip.request = ad5592r_gpio_request; in ad5592r_gpio_init() [all …]
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | probe-slot-device | 19 GPIOCHIP=$(basename /sys/bus/i2c/devices/$HOST_BUS-0023/*gpiochip*) 20 gpioset "$GPIOCHIP" 24=1
|
/openbmc/openbmc/meta-google/recipes-google/gpio/gpio-ctrl/ |
H A D | lib.sh | 21 # This maps a schematic name to a gpiochip and line at a specific offset 75 if ! sysfs="$(grep -xl "$val" /sys/class/gpio/gpiochip*/label)"; then 76 echo "Failed to find gpiochip: $val" >&2 82 for sysfs in $(echo /sys/class/gpio/gpiochip*); do 90 echo "Failed to find gpiochip: $val" >&2 105 echo "$name with gpiochip $sysfs only has $ngpio but wants $offset" >&2
|
/openbmc/phosphor-hwmon/test/ |
H A D | gpio.cpp | 13 BuildGpioHandle(const std::string& gpiochip, const std::string& line) in BuildGpioHandle() argument 15 return (gpioIntf) ? gpioIntf->build(gpiochip, line) : nullptr; in BuildGpioHandle()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | gpio-cdev | 1 What: /dev/gpiochip[0-9]+ 6 The character device files /dev/gpiochip* are the interface
|
/openbmc/openbmc/meta-ibm/meta-system1/recipes-phosphor/flash/bios-version/ |
H A D | pch-standby-check.sh | 11 # Extract gpiochip and line offset from the GPIO_PIN 12 GPIO_CHIP=$(echo "$GPIO_PIN" | cut -d' ' -f1) # Extract gpiochip
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/state/phosphor-state-manager/ |
H A D | chassis-poweron | 19 …sename "/sys/bus/i2c/devices/$SPIDER_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLOT_PWR_CTRL_ADDR/"*gpiochip*) 20 …me "/sys/bus/i2c/devices/$MANAGEMENT_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLED_PWR_CTRL_ADDR/"*gpiochip*) 21 …IO_EXP_HOST_POWER_STATUS=$(basename "/sys/bus/i2c/devices/$IO_EXP_SLOT_PWR_STATUS-0023/"*gpiochip*)
|
H A D | chassis-poweroff | 19 …sename "/sys/bus/i2c/devices/$SPIDER_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLOT_PWR_CTRL_ADDR/"*gpiochip*) 20 …L=$(basename "/sys/bus/i2c/devices/$IO_EXP_SLOT_PWR_STATUS-00$IO_EXP_BIC_PWR_CTRL_ADDR/"*gpiochip*) 21 …me "/sys/bus/i2c/devices/$MANAGEMENT_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLED_PWR_CTRL_ADDR/"*gpiochip*)
|
H A D | chassis-powercycle | 25 …sename "/sys/bus/i2c/devices/$SPIDER_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLOT_PWR_CTRL_ADDR/"*gpiochip*) 26 …me "/sys/bus/i2c/devices/$MANAGEMENT_BOARD_IO_EXP_BUS_NUM-00$IO_EXP_SLED_PWR_CTRL_ADDR/"*gpiochip*) 27 …L=$(basename "/sys/bus/i2c/devices/$IO_EXP_SLOT_PWR_STATUS-00$IO_EXP_BIC_PWR_CTRL_ADDR/"*gpiochip*)
|
/openbmc/skeleton/pysystemmgr/obmc/system/ |
H A D | __init__.py | 6 pattern = "gpiochip*" 14 open(join(path, "gpiochip"))
|
/openbmc/openbmc/meta-facebook/meta-bletchley/recipes-phosphor/sensors/phosphor-nvme/ |
H A D | nvme-json-rewrite | 14 for file in /sys/bus/i2c/drivers/pca953x/"$i"-0041/gpio/gpiochip*/base 17 GPIOCHIP_BASE="$(cat /sys/bus/i2c/drivers/pca953x/"$i"-0041/gpio/gpiochip*/base)"
|
/openbmc/linux/tools/testing/selftests/gpio/ |
H A D | gpio-mockup.sh | 281 # For each gpiochip the fence post lines, 0 and n-1, are tested, and the 285 # gpiochip is tested as well. 297 gpiochip=$(find "$DEBUGFS/$module/" -name gpiochip* -type d | sort) 298 for chip in $gpiochip; do
|
/openbmc/openbmc/meta-fii/meta-mori/recipes-mori/mori-fw-utility/mori-fw/ |
H A D | mori-lib.sh | 19 BUS_ADDR=$(gpiodetect | grep gpiochip"${CHIP_PIN[0]}" | \ 25 exit ; ls -1 -d -v gpiochip*) 28 # gpiochip# is set in reverse order of numbering for location of
|
/openbmc/linux/Documentation/admin-guide/gpio/ |
H A D | gpio-aggregator.rst | 13 GPIO controllers are exported to userspace using /dev/gpiochip* character 104 After that, a new gpiochip "door" has been created:
|
/openbmc/skeleton/pytools/ |
H A D | gpioutil | 31 pattern = "gpiochip*" 39 open(join(path, "gpiochip"))
|