Lines Matching defs:gpio
11 #include <linux/gpio/driver.h>
431 static int mtk_gpio_get(struct gpio_chip *chip, unsigned int gpio)
437 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio];
446 static void mtk_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value)
451 desc = (const struct mtk_pin_desc *)&hw->soc->pins[gpio];
456 static int mtk_gpio_direction_input(struct gpio_chip *chip, unsigned int gpio)
458 return pinctrl_gpio_direction_input(chip->base + gpio);
461 static int mtk_gpio_direction_output(struct gpio_chip *chip, unsigned int gpio,
464 mtk_gpio_set(chip, gpio, value);
466 return pinctrl_gpio_direction_output(chip->base + gpio);
529 * "gpio-ranges" property. Otherwise, called directly from a
532 * Documentation/devicetree/bindings/gpio/gpio.txt on how to
533 * bind pinctrl and gpio drivers via the "gpio-ranges" property.
535 if (!of_find_property(np, "gpio-ranges", NULL)) {