From: David Gibson <david@gibson.dropbear.id.au>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev Development <linuxppc-dev@ozlabs.org>
Subject: Re: EDAC platform devices for fsl_soc
Date: Sat, 20 Jan 2007 14:22:54 +1100 [thread overview]
Message-ID: <20070120032254.GA7727@localhost.localdomain> (raw)
In-Reply-To: <F5C9484B-93D7-4B08-813A-8B14D3F0F878@kernel.crashing.org>
On Tue, Jan 16, 2007 at 03:17:20PM -0600, Kumar Gala wrote:
>
> On Jan 16, 2007, at 2:46 PM, Dave wrote:
>
> > I'm trying to write an EDAC driver for the mpc8560 board. I will need
> > to access the DDR error management registers, the L2 error management
> > registers, the PCI management registers, and also the related IRQs
> > (internal 0, 2, and 8). So I would like to insert some entries into
> > the 8560 fdt in order to parse them and map the hw irq to virq in
> > order to setup the platform device resources.
> >
> > Below is what I was thinking the fdt should look like. Is that
> > reasonable?
>
> I dont see the reason to introduce nodes that are specific to EDAC.
> You should add nodes for the full device (which includes the error
> mgmt). In the case of PCI the node should be there and fixing the
> dts to report the proper irq is all that is needed.
>
> >
> > soc8560@e0000000 {
> > #address-cells = <1>;
> > #size-cells = <1>;
> > #interrupt-cells = <2>;
> > device_type = "soc";
> > ranges = <0 e0000000 00100000>;
> > reg = <e0000000 00000200>;
> > bus-frequency = <13ab6680>;
> >
> > dram_control@2000 {
> > device_type = "edac";
> > compatible = "85xx";
> > reg = <2000 e5c>;
>
> expand to cover the full 4k allocated to ddr controller
>
> > linux,phandle = <2000>;
> > interrupt-parent = <40000>;
Probably best to have dtc assign the phandles, rather than doing them
explicitly, too. Less fragile if things move about.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
prev parent reply other threads:[~2007-01-20 3:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-16 20:46 EDAC platform devices for fsl_soc Dave
2007-01-16 21:17 ` Kumar Gala
2007-01-20 3:22 ` David Gibson [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=20070120032254.GA7727@localhost.localdomain \
--to=david@gibson.dropbear.id.au \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.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).