[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GPIO support on QEMU

From: Peter Maydell
Subject: Re: GPIO support on QEMU
Date: Fri, 4 Aug 2023 11:11:58 +0100

On Fri, 4 Aug 2023 at 11:02, Swedha R <swedhar10@gmail.com> wrote:
> Hi ,
> Is qemu will support virtual GPIO drivers. How to work on GPIO in qemu?

Broadly speaking, you seem to be trying to do something
that QEMU is not set up to do. QEMU's support for GPIO
controllers and GPIO lines is almost entirely there
so we can emulate features of boards and SoCs which
are implemented via internal GPIO controllers and
GPIO lines. (For example, a board might wire up the
SD card "card present" line to a GPIO controller: so to
make the SD card work, QEMU needs to model that GPIO
controller and that line.) QEMU does not have a framework
for the equivalent of a board like a raspberry pi
where GPIO lines are exposed directly to pins that
the end-user can wire up to other boards, to sensors,
to LEDs, or to push buttons.

So if you are trying to model that sort of thing, or to
generally take an existing QEMU model and "use the
GPIO controller outputs", you are trying to push
uphill, because the facilities are basically not there
to help you.

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]