This patch series introduces GPIO support for Allwinner A10 and
Cubieboard.
The support is focused on input/output and interrupt functionality.
The qtest suite is also updated with tests for implemented
functionality.
Signed-off-by: Strahinja Jankovic <strahinja.p.jankovic@gmail.com>
---
Changes in v4:
- removed unused allwinner_gpio_update_all_output_lines function that
was flagged by clang
- Link to v3: https://lore.kernel.org/qemu-devel/20260913-allwinner-gpio-v3-0-a9affa474b3b@gmail.com
Changes in v3:
- replaced forward declarations of gpio_is_input and int_ctl_cfg with
definitions
- updated use of extract32 for int_cfg_n to use full stride INT_CFG_IRQ_STRIDE
- replaced custom bit manipulation with deposit32
- updated output GPIO line handling to have same behavior when lines are
configured as input as when they are assigned to special function
- removed update of outbound gpio lines in the reset function
- improved test organization with common add_test function, as suggested
- removed leftover comments
- minor style fixes
- Link to v2: https://lore.kernel.org/qemu-devel/20260829-allwinner-gpio-v2-0-f0ebcb07302e@gmail.com
Changes in v2:
- allwinner-gpio-test: Added test for interrupt triggered on both rising
and falling edge
- Link to v1: https://lore.kernel.org/qemu-devel/20260819-allwinner-gpio-v1-0-2a64866dff11@gmail.com
---
Strahinja Jankovic (3):
hw/gpio: Allwinner A10 GPIO emulation
hw/arm: Add GPIO to Allwinner A10 model
tests/qtest: Allwinner GPIO tests
MAINTAINERS | 3 +
docs/system/arm/cubieboard.rst | 1 +
hw/arm/Kconfig | 1 +
hw/arm/allwinner-a10.c | 8 +
hw/gpio/Kconfig | 3 +
hw/gpio/allwinner-gpio.c | 441 ++++++++++++++++++++++++++++
hw/gpio/meson.build | 1 +
hw/gpio/trace-events | 6 +
include/hw/arm/allwinner-a10.h | 2 +
include/hw/gpio/allwinner-gpio-regs.h | 227 +++++++++++++++
include/hw/gpio/allwinner-gpio.h | 41 +++
tests/qtest/allwinner-gpio-test.c | 535 ++++++++++++++++++++++++++++++++++
tests/qtest/meson.build | 3 +-
13 files changed, 1271 insertions(+), 1 deletion(-)
---
base-commit: 302c2f2df4d8b2eec81c38ee5d5b04e8e6e40d31
change-id: 20260818-allwinner-gpio-6ea84117df94
Best regards,
--
Strahinja Jankovic <strahinja.p.jankovic@gmail.com>