pinctrl: at91-pio4: Add configuration to userspace
authorRyan Wanner <Ryan.Wanner@microchip.com>
Fri, 7 Oct 2022 15:16:46 +0000 (08:16 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Oct 2022 09:56:16 +0000 (11:56 +0200)
commitfcd7631748575706210ef05a787fccbeb4d79898
treee716fcd3590fd09aa72d633d11abe1cc76ee628e
parentaef1bef2dfdd6e1bf003cb745eb3941bca01b714
pinctrl: at91-pio4: Add configuration to userspace

Adding support for line bias flags that have been implented in gpio API.
There are functions in the gpiod library that can control line bias from
userspace this adds that functionality to this driver.

Adding .pin_config_set allows the driver's pin configuration to be
accessed from userspace. The general idea for this as been taken from
stm32, intel, and rockchip drivers that have userspace access for bias
flags.

Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Tested-by: Nicolas Ferre <nicolas.ferre@microchip.com> # on sama5d27 som1 ek
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Tested-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20221007151647.98222-2-Ryan.Wanner@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91-pio4.c