From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>,
Lee Jones <lee.jones@linaro.org>, Arnd Bergmann <arnd@arndb.de>,
Tony Lindgren <tony@atomide.com>,
Rob Herring <rob.herring@calxeda.com>,
Rob Landley <rob@landley.net>, Jon Loeliger <jdl@jdl.com>,
Stephen Warren <swarren@wwwdotorg.org>,
David Gibson <david@gibson.dropbear.id.au>,
Benoit Cousson <b-cousson@ti.com>,
Mitch Bradley <wmb@firmworks.com>, Alan Tull <atull@altera.com>,
linux-omap@vger.kernel.org, devicetree-discuss@lists.ozlabs.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
Matt Porter <mporter@ti.com>, Russ Dill <Russ.Dill@ti.com>,
Koen Kooi <koen@dominion.thruhere.net>,
Joel A Fernandes <agnel.joel@gmail.com>,
Rob Clark <robdclark@gmail.com>,
Jason Kridner <jkridner@beagleboard.org>,
Matt Ranostay <mranostay@gmail.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Linus Walleij <linus.walleij@stericsson.com>,
Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Subject: Re: [PATCH 1/5] capemgr: Beaglebone DT overlay based cape manager
Date: Tue, 26 Mar 2013 11:40:58 -0700 [thread overview]
Message-ID: <20130326184058.GA4194@kroah.com> (raw)
In-Reply-To: <20130326161610.804983E2499@localhost>
On Tue, Mar 26, 2013 at 04:16:10PM +0000, Grant Likely wrote:
> On Tue, 8 Jan 2013 12:10:20 +0200, Pantelis Antoniou <panto@antoniou-consulting.com> wrote:
> > Hi Lee,
> >
> > On Jan 8, 2013, at 12:00 PM, Lee Jones wrote:
> >
> > >>>>> At the end of the line, some kind of hardware glue is going to be needed.
> > >>>>>
> > >>>>> I just feel that drawing from a sample size of 1 (maybe 2 if I get to throw
> > >>>>> in the beagleboard), it is a bit premature to think about making it overly
> > >>>>> general, besides the part that are obviously part of the infrastructure
> > >>>>> (like the DT overlay stuff).
> > >>>>>
> > >>>>> What I'm getting at, is that we need some user experience about this, before
> > >>>>> going away and creating structure out of possible misconception about the uses.
> > >>>>
> > >>>> IMHO stuff like this will be needed by many SoCs. Some examples of similar
> > >>>> things for omaps that have eventually become generic frameworks have been
> > >>>> the clock framework, USB OTG support, runtime PM, pinmux framework and
> > >>>> so on.
> > >>>>
> > >>>> So I suggest a minimal generic API from the start as that will make things
> > >>>> a lot easier in the long run.
> > >>>
> > >>> I agree. The ux500 platform already has the concept of "user interface boards",
> > >>> which currently is not well integrated into devicetree. I believe Sascha
> > >>> mentioned that Pengutronix had been shipping some other systems with add-on
> > >>> boards and generating device tree binaries from source for each combination.
> > >>>
> > >>> Ideally, both of the above should be able to use the same DT overlay logic
> > >>> as BeagleBone, and I'm sure there are more of those.
> > >>
> > >> Hmm, I see.
> > >>
> > >> I will need some more information about the interface of the 'user interface boards'.
> > >> I.e. how is the board identified, what is typically present on those boards, etc.
> > >
> > > User Interface Boards are mearly removable PCBs which are interchangeable
> > > amongst various hardware platforms. They are connected via numerous
> > > connectors which carry all sorts of different data links; i2c, spi, rs232,
> > > etc. The UIB I'm looking at right now has a touchscreen, speakers, a key
> > > pad, leds, jumpers, switches and a bunch of sensors.
> > >
> > > You can find a small example of how we interface to these by viewing
> > > 'arch/arm/boot/dts/stuib.dtsi'. To add a UIB to a particular build, we
> > > currently include it as a *.dtsi from a platform's dts file.
> >
> > I see. What I'm asking about is whether there's a method where you can read
> > an EEPROM, or some GPIO code combination where I can find out what kind of board
> > is plugged each time.
> >
> > If there is not, there is no way to automatically load the overlays; you can always
> > use the kernel command line, or have the a user space application to request the loading
> > of a specific board's overlay.
> >
>
> In this case the best thing to do is announce the availability of the
> expansion via a request_firmware() call and let udev handle supplying
> the correct overlay file.
The code to load firmware files was recently removed from udev, now that
the kernel handles this automatically itself :)
But yes, the same call still applies, request_firmware() should work
fine here.
thanks,
greg k-h
next prev parent reply other threads:[~2013-03-26 18:41 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-07 18:51 [PATCH 0/5] DT Overlay based cape manager for TI's Beaglebone Pantelis Antoniou
2013-01-07 18:51 ` [PATCH 1/5] capemgr: Beaglebone DT overlay based cape manager Pantelis Antoniou
2013-01-07 20:09 ` Tony Lindgren
2013-01-07 20:13 ` Pantelis Antoniou
2013-01-07 20:23 ` Tony Lindgren
2013-01-07 20:26 ` Pantelis Antoniou
2013-01-07 20:35 ` Tony Lindgren
2013-01-07 20:40 ` Pantelis Antoniou
2013-01-07 21:05 ` Tony Lindgren
2013-01-07 21:35 ` Arnd Bergmann
2013-01-08 9:15 ` Pantelis Antoniou
2013-01-08 9:51 ` Guennadi Liakhovetski
2013-01-08 10:07 ` Pantelis Antoniou
2013-01-08 10:00 ` Lee Jones
2013-01-08 10:10 ` Pantelis Antoniou
2013-01-08 10:48 ` Lee Jones
2013-01-08 12:12 ` Arnd Bergmann
2013-01-08 13:26 ` Pantelis Antoniou
2013-01-08 16:12 ` Arnd Bergmann
2013-01-09 8:11 ` Lee Jones
2013-01-09 8:29 ` Linus Walleij
2013-03-26 16:16 ` Grant Likely
2013-03-26 18:40 ` Greg Kroah-Hartman [this message]
2013-01-08 11:14 ` Sascha Hauer
2013-04-15 10:14 ` Jean-Christophe PLAGNIOL-VILLARD
2013-01-07 18:51 ` [PATCH 2/5] capemgr: Add beaglebone's cape driver bindings Pantelis Antoniou
2013-03-26 17:36 ` Grant Likely
2013-03-27 9:26 ` Pantelis Antoniou
2013-01-07 18:51 ` [PATCH 3/5] capemgr: am335x-bone capemgr bindings Pantelis Antoniou
2013-01-07 18:51 ` [PATCH 4/5] capemgr: firmware makefiles for DT objects Pantelis Antoniou
2013-01-07 18:51 ` [PATCH 5/5] capemgr: Weather cape cape definition Pantelis Antoniou
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=20130326184058.GA4194@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=Russ.Dill@ti.com \
--cc=agnel.joel@gmail.com \
--cc=arnd@arndb.de \
--cc=atull@altera.com \
--cc=b-cousson@ti.com \
--cc=david@gibson.dropbear.id.au \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=g.liakhovetski@gmx.de \
--cc=grant.likely@secretlab.ca \
--cc=jdl@jdl.com \
--cc=jkridner@beagleboard.org \
--cc=koen@dominion.thruhere.net \
--cc=lee.jones@linaro.org \
--cc=linus.walleij@stericsson.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=mporter@ti.com \
--cc=mranostay@gmail.com \
--cc=panto@antoniou-consulting.com \
--cc=rob.herring@calxeda.com \
--cc=rob@landley.net \
--cc=robdclark@gmail.com \
--cc=s.hauer@pengutronix.de \
--cc=swarren@wwwdotorg.org \
--cc=tony@atomide.com \
--cc=wmb@firmworks.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