From: Scott Wood <scottwood@freescale.com>
To: Richard Cochran <richardcochran@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>,
Russell King <linux@arm.linux.org.uk>,
Arnd Bergmann <arnd@arndb.de>,
Peter Zijlstra <peterz@infradead.org>,
linux-api@vger.kernel.org, devicetree-discuss@lists.ozlabs.org,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
David Miller <davem@davemloft.net>,
Paul Mackerras <paulus@samba.org>,
linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org,
John Stultz <john.stultz@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Rodolfo Giometti <giometti@linux.it>,
Christoph Lameter <cl@linux.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Krzysztof Halasa <khc@pm.waw.pl>
Subject: Re: [PATCH V11 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Date: Thu, 24 Feb 2011 11:08:04 -0600 [thread overview]
Message-ID: <20110224110804.74b546c0@schlenkerla> (raw)
In-Reply-To: <20110224163944.GA15234@riccoc20.at.omicron.at>
On Thu, 24 Feb 2011 17:39:44 +0100
Richard Cochran <richardcochran@gmail.com> wrote:
> On Wed, Feb 23, 2011 at 10:54:59AM -0700, Grant Likely wrote:
> > On Wed, Feb 23, 2011 at 11:26:12AM -0600, Scott Wood wrote:
>
> > > The eTSEC revision is probeable as well, but due the way PTP is described as
> > > a separate node, the driver doesn't have straightforward access to those
> > > registers.
> >
> > Ignorant question: Should the ptp be described as a separate node?
>
> Well, the PTP Hardware Clock function is logically separate from the
> MAC function.
The eTSEC node doesn't describe the MAC function, it describes the whole
device (or at least it should... we make an exception for MDIO, which
should probably have been a subnode instead).
> PHCs can be implemented in the MAC, in the PHY, or in
> between in an FPGA on MII bus.
>
> If the PHC is in the MAC, then it might be wise to implement one
> driver that offers both the MAC and the PHC.
>
> In the case of gianfar, it is not really necessary to combine the PHC
> into the gianfar driver, since the registers are pretty well
> separated.
How the drivers are structured in Linux is a separate concern from how the
devices are described in the device tree. The tree is supposed to be an
OS-independent representation of hardware.
If Linux has multiple drivers that correspond to portions of one node, a
toplevel driver can register platform devices for the components, adding
in any additional information like versioning that it gets from the
toplevel registers.
-Scott
next prev parent reply other threads:[~2011-02-24 17:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-23 10:37 [PATCH V11 0/4] ptp: IEEE 1588 hardware clock support Richard Cochran
2011-02-23 10:37 ` [PATCH V11 1/4] ptp: Added a brand new class driver for ptp clocks Richard Cochran
2011-02-23 10:38 ` [PATCH V11 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx Richard Cochran
2011-02-23 16:50 ` Grant Likely
2011-02-23 17:26 ` Scott Wood
2011-02-23 17:54 ` Grant Likely
2011-02-23 19:24 ` Scott Wood
2011-02-24 16:50 ` Richard Cochran
2011-02-24 17:27 ` Scott Wood
2011-02-25 7:53 ` Richard Cochran
2011-03-17 19:21 ` Grant Likely
2011-02-24 16:39 ` Richard Cochran
2011-02-24 17:08 ` Scott Wood [this message]
2011-02-24 17:26 ` Richard Cochran
2011-02-23 10:38 ` [PATCH V11 3/4] ptp: Added a clock driver for the IXP46x Richard Cochran
2011-02-23 10:38 ` [PATCH V11 4/4] ptp: Added a clock driver for the National Semiconductor PHYTER Richard Cochran
2011-02-23 10:50 ` [PATCH V11 0/4] ptp: IEEE 1588 hardware clock support Richard Cochran
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=20110224110804.74b546c0@schlenkerla \
--to=scottwood@freescale.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=arnd@arndb.de \
--cc=cl@linux.com \
--cc=davem@davemloft.net \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=giometti@linux.it \
--cc=john.stultz@linaro.org \
--cc=khc@pm.waw.pl \
--cc=linux-api@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=netdev@vger.kernel.org \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
--cc=richardcochran@gmail.com \
--cc=tglx@linutronix.de \
--cc=vapier@gentoo.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;
as well as URLs for NNTP newsgroup(s).