]> Git Repo - linux.git/commit - drivers/gpio/Kconfig
gpio: modepin: Add driver support for modepin GPIO controller
authorPiyush Mehta <[email protected]>
Wed, 22 Sep 2021 13:53:19 +0000 (19:23 +0530)
committerBartosz Golaszewski <[email protected]>
Thu, 23 Sep 2021 08:09:58 +0000 (10:09 +0200)
commit7687a5b0ee9358c96d85db58bad2a3aebee562b7
tree317f202a3d0ac30f4df7df9dbcbdf316fdf56e23
parentd7f4a65cdf4f671296fab1e5b331fd3f5ab776e5
gpio: modepin: Add driver support for modepin GPIO controller

This patch adds driver support for the zynqmp modepin GPIO controller.
GPIO modepin driver set and get the value and status of the PS_MODE pin,
based on device-tree pin configuration. These four mode pins are
configurable as input/output. The mode pin has a control register, which
have lower four-bits [0:3] are configurable as input/output, next four-bits
can be used for reading the data  as input[4:7], and next setting the
output pin state output[8:11]. By default value of mode pin register is 0.

Signed-off-by: Piyush Mehta <[email protected]>
Acked-by: Michal Simek <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-zynqmp-modepin.c [new file with mode: 0644]
This page took 0.043484 seconds and 4 git commands to generate.