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.
...
This driver is currently in sync with mainline kernel except for the following:
- gpio: zynq: Wakeup gpio controller when it is used as IRQ controlleruse module_platform_driver to simplify the code
gpio: zynq: Check return value of pm_runtime_get_sync
gpio: gpio- zynq: shift zynq_gpio_init() to subsys_initcall level.Check return value of irq_get_irq_data
Change Log
2016.3
Summary:
- gpio:Added zynq specific check for special pins on bank zero.
...
- 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.2
- Summary
- None
Related Links
...