gpio: omap: handle pin config bias flags
authorDrew Fustini <drew@beagleboard.org>
Fri, 17 Jul 2020 19:40:43 +0000 (21:40 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Jul 2020 14:04:41 +0000 (16:04 +0200)
commit75dec56710dfafd37daa95e756c5d1840932ba90
tree91b29332e5ef2c8f61630e4d950e6738699138d2
parent50787be3ad732d804ee3ce828ee83b725e6491c8
gpio: omap: handle pin config bias flags

Modify omap_gpio_set_config() to handle pin config bias flags by calling
gpiochip_generic_config().

The pin group for the gpio line must have the corresponding pinconf
properties:

PIN_CONFIG_BIAS_PULL_UP requires "pinctrl-single,bias-pullup"
PIN_CONFIG_BIAS_PULL_DOWN requires "pinctrl-single,bias-pulldown"

This is necessary for pcs_pinconf_set() to find the requested bias
parameter in the PIN_MAP_TYPE_CONFIGS_GROUP pinctrl map.

Signed-off-by: Drew Fustini <drew@beagleboard.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20200715213738.1640030-1-drew@beagleboard.org
Link: https://lore.kernel.org/r/20200717194043.1774643-1-drew@beagleboard.org
drivers/gpio/gpio-omap.c