From: Jason <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>
To: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
michael-QKn5cuLxLXY@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
Haojian Zhuang
<haojian.zhuang-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org>
Subject: Re: [GIT PULL v3] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt
Date: Mon, 5 Mar 2012 09:51:50 -0500 [thread overview]
Message-ID: <20120305145150.GF5050@titan.lakedaemon.net> (raw)
In-Reply-To: <201203051434.35132.arnd-r2nGTMty4D4@public.gmane.org>
On Mon, Mar 05, 2012 at 02:34:34PM +0000, Arnd Bergmann wrote:
> On Monday 05 March 2012, Jason wrote:
> > This is still bugging me. If, say, orion_wdt.c is common to all of
> > plat-orion/ shouldn't it be in an 'orion.dtsi'? With compatible =
> > "marvell,orion-wdt"? Then, if hypothetically, kirkwood used the same
> > driver but had a small tweak, then kirkwood.dtsi would have
> > "marvell,kirkwood-wdt"? Which would let the driver know that it needed
> > to apply the tweak because it was kirkwood.
>
> Some drivers are common to all orion, but others are only used in some
> out of {orion5k,kirkwood,mv78xx0,dove}. You could of course have
> an orion.dtsi that is included in kirkwood.dtsi.
As Andrew just brought up, the drivers are common across all of them,
but the registers and irqs are different. Which would seem to shoot
down the need for an orion.dtsi.
The registers/irqs are common across kirkwood, so the best place
probably is kirkwood.dtsi.
However, if they are placed in kirkwood.dtsi, having compatible =
"mrvl,88f6821-rtc" probably is not a good idea. Not all kirkwoods have
the same dev_id.
> BTW, I just realized that the patches that Haojian Zhuang sent for
> pxa/mmp are using mrvl instead of marvell, and you should definitely
> be using the same identifier both both. By convention we use the
> stock ticker symbol as a unique identifier, which would be mrvl here.
Hehehe that was in the Manual, right? ;-)
> > In this scenario, since kirkwood and dreamplug currently need no
> > modifications to the default wdt driver, they would just inherit
> > orion.dtsi's "marvell,orion-wdt", right?
>
> I would still list both, so we are future-proof in case we need
> to modify the driver in the future but don't want to modify
> the device tree.
So, in kirkwood.dtsi, compatible = "mrvl,kirkwood-rtc", "mrvl,orion-rtc";
and, drivers without tweaks would match "mrvl,orion-rtc".
> > On the driver side, since it currently has no subarch or board specific
> > tweaks, then it is only good for the generic case,
> > "marvell,orion-wdt", and thus should only match it for now.
>
> Yes.
Okay.
thx,
Jason.
next prev parent reply other threads:[~2012-03-05 14:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-05 3:41 [GIT PULL v3] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt Jason Cooper
2012-03-05 13:32 ` Jason
[not found] ` <20120305133242.GD5050-u4khhh1J0LxI1Ri9qeTfzeTW4wlIGRCZ@public.gmane.org>
2012-03-05 14:34 ` Arnd Bergmann
[not found] ` <201203051434.35132.arnd-r2nGTMty4D4@public.gmane.org>
2012-03-05 14:51 ` Jason [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-03-05 14:16 Andrew Lunn
2012-03-05 14:38 ` Jason
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=20120305145150.GF5050@titan.lakedaemon.net \
--to=jason-nlaqjdtuok4be96alqz0ja@public.gmane.org \
--cc=arnd-r2nGTMty4D4@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=haojian.zhuang-eYqpPyKDWXRBDgjK7y7TUQ@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=michael-QKn5cuLxLXY@public.gmane.org \
/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