Lines Matching +full:clr +full:- +full:gpios

1 /* SPDX-License-Identifier: GPL-2.0 */
11 #include <linux/pinctrl/pinconf-generic.h>
39 * struct gpio_irq_chip - GPIO interrupt controller
76 * If non-NULL, will be set as the parent of this GPIO interrupt
88 * hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the
96 * HWIRQ, return -EINVAL, but also make sure to fill in @valid_mask and
111 * &gpiochip_populate_parent_fwspec_twocell will be used. A four-cell
260 * bits from 0..(ngpios-1) set to "1" as in valid. The callback can
271 * If not %NULL, holds bitmask of GPIOs which are valid to be included
313 * struct gpio_chip - abstract a GPIO controller
315 * number or the name of the SoC IP-block implementing it.
317 * @parent: optional parent device providing the GPIOs
319 * @owner: helps prevent removal of modules exporting active GPIOs
320 * @request: optional hook for chip-specific activation, such as
322 * @free: optional hook for chip-specific deactivation, such as
327 * function, even on input-only or output-only gpio chips.
329 * This can be omitted on input-only or output-only gpio chips.
331 * This can be omitted on input-only or output-only gpio chips.
339 * @to_irq: optional hook supporting non-static gpio_to_irq() mappings;
345 * not all GPIOs are valid.
355 * DEPRECATION: providing anything non-negative and nailing the base
356 * offset of GPIO chips is deprecated. Please pass -1 as base to
359 * @ngpio: the number of GPIOs handled by this controller; the last GPIO
360 * handled is (base + ngpio - 1).
365 * names for the GPIOs in this chip. Any entry in the array
389 * @bgpio_lock: used to lock chip->bgpio_data. Also, this is needed to keep
397 * A gpio_chip can help platforms abstract various sources of GPIOs so
403 * by "offset" values in the range 0..(@ngpio - 1). When those signals
495 * If not %NULL, holds bitmask of GPIOs which are valid to be used
523 * Callback to translate a device tree GPIO specifier into a chip-
532 * Optional hook for the case that no gpio-ranges property is defined
534 * of gpio-ranges). So this callback is helpful to provide the
547 * for_each_requested_gpio_in_range - iterates over requested GPIOs in a given range
551 * @size: amount of GPIOs to check starting from @base
560 for_each_requested_gpio_in_range(chip, i, 0, chip->ngpio, label)
568 * gpiochip_add_data() - register a gpio_chip
569 * @gc: the chip to register, with gc->base initialized
570 * @data: driver-private data associated with this chip
574 * When gpiochip_add_data() is called very early during boot, so that GPIOs
575 * can be freely used, the gc->parent device must be registered before
577 * for GPIOs will fail rudely.
582 * If gc->base is negative, this requests dynamic assignment of
583 * a range of valid GPIOs.
587 * gc->base is invalid or already associated with a different chip.
640 girq->chip = (struct irq_chip *)chip; in gpio_irq_chip_set_chip()
675 void __iomem *clr, void __iomem *dirout, void __iomem *dirin,
706 return -EINVAL; in gpiochip_irqchip_add_domain()
716 * struct gpio_pin_range - pin range controlled by a gpio chip
783 return ERR_PTR(-ENODEV); in gpiod_to_chip()
790 return -EINVAL; in gpiochip_lock_as_irq()
802 if (!fwnode_property_present(child, "gpio-controller")) {} else