[PATCH 0/3] hw/gpio: Add Xilinx AXI GPIO device and petalogix_s3adsp1800 integration

Pufan Jin posted 3 patches 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261025192716.239589-1-cyan2254650260@gmail.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Alistair Francis <alistair@alistair23.me>, Peter Maydell <peter.maydell@linaro.org>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>
MAINTAINERS                              |   3 +
hw/gpio/Kconfig                          |   3 +
hw/gpio/meson.build                      |   1 +
hw/gpio/trace-events                     |   7 +
hw/gpio/xlnx-axi-gpio.c                  | 282 +++++++++++++++++
hw/microblaze/Kconfig                    |   1 +
hw/microblaze/petalogix_s3adsp1800_mmu.c |   8 +-
include/hw/gpio/xlnx-axi-gpio.h          |  59 ++++
tests/qtest/meson.build                  |   3 +-
tests/qtest/xlnx-axi-gpio-test.c         | 372 +++++++++++++++++++++++
10 files changed, 737 insertions(+), 2 deletions(-)
create mode 100644 hw/gpio/xlnx-axi-gpio.c
create mode 100644 include/hw/gpio/xlnx-axi-gpio.h
create mode 100644 tests/qtest/xlnx-axi-gpio-test.c
[PATCH 0/3] hw/gpio: Add Xilinx AXI GPIO device and petalogix_s3adsp1800 integration
Posted by Pufan Jin 4 weeks ago
This patch series adds an emulation model for the Xilinx AXI GPIO IP
core (PG144), connects it to the petalogix-s3adsp1800 MicroBlaze board,
and adds a QTest test suite.

Summary of changes:
- Patch 1: Implement Xilinx AXI GPIO IP core (PG144) supporting dual channels,
  configurable data width (1 to 32 bits), per-channel 3-state direction
  control, global interrupt enable, and per-channel interrupt generation on
  input transitions.
- Patch 2: Connect the xlnx-axi-gpio device to the petalogix-s3adsp1800 board,
  replacing the previous unimplemented stub at 0x81400000 and wiring IRQ 2
  to the Xilinx interrupt controller.
- Patch 3: Add QTest test suite covering reset state, input/output propagation,
  direction mask filtering, edge-triggered interrupt generation and
  clearing, unmapped register boundary reads, mixed I/O multiplexing,
  channel 1 & 2 physical output isolation, reset, and QOM object
  introspection via QMP.

All patches pass scripts/checkpatch.pl with 0 errors and 0 warnings,
build cleanly, and pass the full test suite.

Pufan Jin (3):
  hw/gpio: Add Xilinx AXI GPIO device
  hw/microblaze/petalogix_s3adsp1800: Connect xlnx-axi-gpio
  tests/qtest: Add Xilinx AXI GPIO test

 MAINTAINERS                              |   3 +
 hw/gpio/Kconfig                          |   3 +
 hw/gpio/meson.build                      |   1 +
 hw/gpio/trace-events                     |   7 +
 hw/gpio/xlnx-axi-gpio.c                  | 282 +++++++++++++++++
 hw/microblaze/Kconfig                    |   1 +
 hw/microblaze/petalogix_s3adsp1800_mmu.c |   8 +-
 include/hw/gpio/xlnx-axi-gpio.h          |  59 ++++
 tests/qtest/meson.build                  |   3 +-
 tests/qtest/xlnx-axi-gpio-test.c         | 372 +++++++++++++++++++++++
 10 files changed, 737 insertions(+), 2 deletions(-)
 create mode 100644 hw/gpio/xlnx-axi-gpio.c
 create mode 100644 include/hw/gpio/xlnx-axi-gpio.h
 create mode 100644 tests/qtest/xlnx-axi-gpio-test.c

-- 
2.56.0