The purpose of this page is to introduce two methods for interacting with GPIO from user space on Zynq-7000 and Zynq Ultrascale+ MPSoC: the SysFs interface and the Linux kernel drivers (gpio-keys, leds-gpio).
The GPIO subsystem is documented in the kernel documentation in Documentation/gpio/.
Note: The SysFs driver has been tested and is working. It has been accepted into the mainline kernel and the old char mode GPIO driver that didn't work with arch/powerpc has been removed from the tree.
...
- 355168 gpio: zynq: protect direction in/out with a spinlock
2018.3
Summary:
- gpio: zynq: Remove call to platform_get_irq
- gpio: zynq: simplifly getting drvdata
- gpio: zynq: Setup chip->base based on alias ID
- 52b64a2 gpio: zynq: Remove call to platform_get_irq
- eb816d4 gpio: zynq: simplifly getting drvdata
- 5dd4162 gpio: zynq: Setup chip->base based on alias ID
2019.1
- summary:
- gpio: zynq: Configured zynq gpio's in boot loader stage.
- gpio: zynq: Added support runtime PM for GPIO
- gpio: zynq: Disable the irq if it is not a wakeup source
- commits:
2019.2
- summary
- gpio: zynq: Add pmc gpio support
- commits
- 9d496bd2: Add pmc gpio support
- summary
2020.1
- Summary
- gpio:zynq: Remove error prints in EPROBE_DEFER
- gpio:zynq:use module_platform_driver to simplify the code
- commits
2020.1
- Summary
- None
Related Links
- drivers/gpio/gpio-zynq.c
- GPIO User Space Application (SysFs)
- Linux User Mode Pseudo Driver
- Linux Drivers
- http://www.spinics.net/lists/arm-kernel/msg345076.html
- http://www.spinics.net/lists/arm-kernel/msg345368.html
- Documentation/gpio
- Documentation/gpio/sysfs.txt
- Documentation/devicetree/bindings/gpio
- Documentation/devicetree/bindings/leds
- Documentation/devicetree/bindings/input
- drivers/leds/leds-gpio.c
- drivers/input/keyboard/gpio_keys.c
...