All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Rauer <crauer@google.com>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	mst@redhat.com,  Patrick Venture <venture@google.com>,
	qemu-devel@nongnu.org, shannon.zhaosl@gmail.com,
	 qemu-arm@nongnu.org, ani@anisinha.ca, imammedo@redhat.com,
	 Enrico Weigelt <info@metux.net>
Subject: Re: [PATCH 0/2] Adds designware i2c module and adds it to virt arm
Date: Mon, 21 Feb 2022 09:47:27 -0800	[thread overview]
Message-ID: <CAFtMCFWivLhcVD4nPJov=nQb=sOXTtxJ-WeWz91nhtLpJL8fUA@mail.gmail.com> (raw)
In-Reply-To: <fff08204-2cd4-0f35-b23d-85a0eeb3ffd2@amsat.org>

[-- Attachment #1: Type: text/plain, Size: 2411 bytes --]

Hi Phil,

> What about using virtio-gpio & bitbang I2C?
>
> - virtio-gpio
> https://lore.kernel.org/qemu-devel/20201127182917.2387-5-info@metux.net/
>
> - bitbang I2C already in: hw/i2c/bitbang_i2c.c
Sorry for the delay.

That looks like it might be doable with a bit more work creating the ACPI
entries for the bitbang I2C.  This definitely seems more appropriate on the
ARM_VIRT platform instead of putting a specific controller in.

For my uses, I will have to stick with the designware controller since it
matches the system I'm emulating a little more closely.  We can hold back
the designware stuff until another SoC platform is interested in using this
controller (since it seems like it is a common one).  Hopefully someone
will find another use for the controller patches someday.

Thanks again for looking at our patches.

-Chris


On Wed, Jan 26, 2022 at 3:42 PM Philippe Mathieu-Daudé <f4bug@amsat.org>
wrote:

> +Enrico Weigelt
>
> On 26/1/22 19:03, Peter Maydell wrote:
> > On Wed, 26 Jan 2022 at 17:12, Chris Rauer <crauer@google.com> wrote:
> >>
> >>> I need to see a pretty strong justification for why we should be
> >>> adding new kinds of devices to the virt machine,
> >>
> >> The designware i2c controller is a very common controller on many
> >>   ARM SoCs.  It has device tree bindings and ACPI bindings which
> >> makes it ideal for this platform.
> >
> > No, I mean, why do we need an i2c controller on the virt
> > board at all ?
> >
> >>> Forgot to mention, but my prefered approach for providing
> >>> an i2c controller on the virt board would be to have a
> >>> PCI i2c controller: that way users who do need it can plug it
> >>> in with a -device command line option, and users who don't
> >>> need it never have to worry about it.
> >
> >>> (We seem to have an ICH9-SMB PCI device already; I have no idea if
> it's suitable.)
> >> I didn't find that device suitable because it is part of the Intel
> >> Southbridge, which may have some Intel platform quirks, and
> >> we don't need all the things in that IO hub.
> >
> > That's a pity. Is there a different PCI I2C controller we could model ?
>
> What about using virtio-gpio & bitbang I2C?
>
> - virtio-gpio
> https://lore.kernel.org/qemu-devel/20201127182917.2387-5-info@metux.net/
>
> - bitbang I2C already in: hw/i2c/bitbang_i2c.c
>
> Regards,
>
> Phil.
>

[-- Attachment #2: Type: text/html, Size: 3404 bytes --]

  reply	other threads:[~2022-02-21 17:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 21:47 [PATCH 0/2] Adds designware i2c module and adds it to virt arm Patrick Venture
2022-01-10 21:47 ` [PATCH 1/2] hw/i2c: Add designware i2c controller Patrick Venture
2022-01-10 21:47 ` [PATCH 2/2] hw/arm: Enable smbus on arm virt machine Patrick Venture
2022-01-13 11:48 ` [PATCH 0/2] Adds designware i2c module and adds it to virt arm Peter Maydell
2022-01-13 11:51   ` Peter Maydell
2022-01-26 17:12     ` Chris Rauer
2022-01-26 18:03       ` Peter Maydell
2022-01-26 22:01         ` Chris Rauer
2022-01-26 23:42         ` Philippe Mathieu-Daudé via
2022-02-21 17:47           ` Chris Rauer [this message]
2022-02-22 17:05             ` Corey Minyard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFtMCFWivLhcVD4nPJov=nQb=sOXTtxJ-WeWz91nhtLpJL8fUA@mail.gmail.com' \
    --to=crauer@google.com \
    --cc=ani@anisinha.ca \
    --cc=f4bug@amsat.org \
    --cc=imammedo@redhat.com \
    --cc=info@metux.net \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=shannon.zhaosl@gmail.com \
    --cc=venture@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.