Lines Matching defs:gpio
14 #include <linux/gpio/driver.h>
43 * Symbols in this file are called "nmk_gpio" for "nomadik gpio"
106 #define PIN_SLPM_GPIO PIN_SLPM_WAKEUP_ENABLE /* In SLPM, pin is a gpio */
202 * the "gpio" namespace for generic and cross-machine functions
412 int gpio = nmk_chip->chip.base + offset;
434 dev_dbg(nmk_chip->chip.parent, "%d: clearing interrupt mask\n", gpio);
578 static int __maybe_unused nmk_prcm_gpiocr_get_mode(struct pinctrl_dev *pctldev, int gpio)
591 if (npct->soc->altcx_pins[i].pin == gpio)
916 unsigned offset, unsigned gpio)
925 [NMK_GPIO_ALT_GPIO] = "gpio",
941 mode = nmk_prcm_gpiocr_get_mode(pctldev, gpio);
944 seq_printf(s, " gpio-%-3d (%-20.20s) out %s %s",
945 gpio,
958 seq_printf(s, " gpio-%-3d (%-20.20s) in %s %s",
959 gpio,
994 unsigned gpio = chip->base;
996 for (i = 0; i < chip->ngpio; i++, gpio++) {
997 nmk_gpio_dbg_show_one(s, NULL, chip, i, gpio);
1006 unsigned offset, unsigned gpio)
1034 if (of_property_read_u32(np, "gpio-bank", &id)) {
1035 dev_err(&pdev->dev, "populate: gpio-bank property not found\n");
1343 NMK_CONFIG_PIN_ARRAY("ste,gpio", nmk_pin_gpio_modes),
1876 gpio_np = of_parse_phandle(np, "nomadik-gpio-chips", i);
1923 { .compatible = "st,nomadik-gpio", },
1929 .name = "gpio",