From: David Brownell <david-b@pacbell.net>
To: Hans Verkuil <hverkuil@xs4all.nl>, Andy Walls <awalls@radix.net>
Cc: Linux and Kernel Video <video4linux-list@redhat.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"davinci-linux-open-source@linux.davincidsp.com"
<davinci-linux-open-source@linux.davincidsp.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] v4l2_device/v4l2_subdev: final (?) version
Date: Sun, 30 Nov 2008 21:34:06 -0800 [thread overview]
Message-ID: <200811302134.07166.david-b@pacbell.net> (raw)
In-Reply-To: <200811301152.50971.hverkuil@xs4all.nl>
On Sunday 30 November 2008, Hans Verkuil wrote:
> > On a more philosophical note is GPIO really a single subdev or a
> > collection of independent serial & discrete buses to a collection of
> > subdevs? In cx18 depending on the board, GPIO can reset chips,
> > change audio mux paths, change the state of LED's, and in the future
> > be used as a serial line (if I ever get that soft-UART to the IR
> > blaster implemented).
>
> Definitely a collection of subdevs. Usually each chip driven by GPIO
> would have its own subdev. So ivtv implements an audio muxer subdev,
> but it might also have additional subdevs for other chips connected to
> the GPIO lines. I haven't explored all the possibilities yet, but I
> suspect that this can be a quite powerful solution.
Right. GPIO is basically a glue tech ... the focus should be what's
being glued (the various subdevs, and their parents), not on the glue.
I think a standardized set of GPIO calls, and gpiolib, makes that a
lot easier nowadays; though maybe not always painless.
Keeping to the V4L2 topic: I figure there will be some issues there
to sort out. For example, it might be important to collect key
resources like GPIOs and regulators before setting up the various I2C
clients that rely on those for proper operation, or other parts of a
complex V4L2 "assembly" (to coin a term). I understand that in some
cases those GPIOs are provided through I2C-based expanders... such
sequencing issues will become clearer as the $SUBJECT work matures.
(I'd expect the v4l2_device would manage such stuff.)
One widely accessible OMAP example: the beagleboard.org hardware uses
a GPIO to enable its DVI output, and a regulator that must be enabled
for S-Video output. Both should be disabled when their output channel
is not in use -- software doesn't handle that yet though! -- and I'd
expect an OMAP3 v4l2_device would understand such board-specific setup
issues. (Support for that isn't yet in mainline though.)
- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2008-12-01 5:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-29 17:52 [PATCH v2] v4l2_device/v4l2_subdev: final (?) version Hans Verkuil
2008-11-29 20:20 ` David Brownell
2008-11-29 21:46 ` Hans Verkuil
2008-11-29 22:22 ` David Brownell
2008-11-29 23:06 ` Hans Verkuil
2008-11-30 2:56 ` David Brownell
2008-11-29 23:31 ` Andy Walls
2008-11-30 0:40 ` Hans Verkuil
2008-11-30 2:49 ` Andy Walls
2008-11-30 10:52 ` Hans Verkuil
2008-12-01 5:34 ` David Brownell [this message]
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=200811302134.07166.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=awalls@radix.net \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=video4linux-list@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox