* I2C and CAN bus on MPC5200B device tree
@ 2008-01-13 22:53 Matt Sealey
2008-01-14 0:35 ` Grant Likely
0 siblings, 1 reply; 7+ messages in thread
From: Matt Sealey @ 2008-01-13 22:53 UTC (permalink / raw)
To: ppc-dev, linuxppc-embedded
Hi guys,
I know the I2C stuff is up in the air (I cannot pinpoint the documentation
for it) and have not found any CAN bus documentation for device trees.
I want to update the firmware tree to add these but, am basically looking
for those docs, or someone to go over a few points.. is there some kind of
tree standard I should be looking at, or some patch I missed which has
a driver which implements something that looks at a compatible tree?
--
Matt Sealey <matt@genesi-usa.com>
Genesi, Manager, Developer Relations
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: I2C and CAN bus on MPC5200B device tree
2008-01-13 22:53 I2C and CAN bus on MPC5200B device tree Matt Sealey
@ 2008-01-14 0:35 ` Grant Likely
2008-01-14 4:42 ` Olof Johansson
2008-01-14 8:10 ` Wolfgang Grandegger
0 siblings, 2 replies; 7+ messages in thread
From: Grant Likely @ 2008-01-14 0:35 UTC (permalink / raw)
To: Matt Sealey; +Cc: ppc-dev, linuxppc-embedded
On 1/13/08, Matt Sealey <matt@genesi-usa.com> wrote:
>
> Hi guys,
>
> I know the I2C stuff is up in the air (I cannot pinpoint the documentation
> for it) and have not found any CAN bus documentation for device trees.
>
> I want to update the firmware tree to add these but, am basically looking
> for those docs, or someone to go over a few points.. is there some kind of
> tree standard I should be looking at, or some patch I missed which has
> a driver which implements something that looks at a compatible tree?
I think some consensus has been achieved for describing i2c busses and
their attached devices, but I don't think booting-without-of.txt has
been updated with the details yet. I need to look into that more.
I don't think anyone has tackled CAN. Best bet is to draft a tree in
the way you think it should be described and post it to the list.
That will give a starting point for us to discuss it and come to
consensus.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: I2C and CAN bus on MPC5200B device tree
2008-01-14 0:35 ` Grant Likely
@ 2008-01-14 4:42 ` Olof Johansson
2008-01-14 19:04 ` Scott Wood
2008-01-14 8:10 ` Wolfgang Grandegger
1 sibling, 1 reply; 7+ messages in thread
From: Olof Johansson @ 2008-01-14 4:42 UTC (permalink / raw)
To: Grant Likely; +Cc: linuxppc-embedded, ppc-dev
On Sun, Jan 13, 2008 at 05:35:09PM -0700, Grant Likely wrote:
> On 1/13/08, Matt Sealey <matt@genesi-usa.com> wrote:
> >
> > Hi guys,
> >
> > I know the I2C stuff is up in the air (I cannot pinpoint the documentation
> > for it) and have not found any CAN bus documentation for device trees.
> >
> > I want to update the firmware tree to add these but, am basically looking
> > for those docs, or someone to go over a few points.. is there some kind of
> > tree standard I should be looking at, or some patch I missed which has
> > a driver which implements something that looks at a compatible tree?
>
> I think some consensus has been achieved for describing i2c busses and
> their attached devices, but I don't think booting-without-of.txt has
> been updated with the details yet. I need to look into that more.
I think simple devices might have been agreed upon (but it's been a
while since it was covered). Muxed busses probably hasn't. Either that
or I completely missed the emails.
-Olof
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: I2C and CAN bus on MPC5200B device tree
2008-01-14 0:35 ` Grant Likely
2008-01-14 4:42 ` Olof Johansson
@ 2008-01-14 8:10 ` Wolfgang Grandegger
2008-01-14 14:28 ` Grant Likely
2008-01-14 23:21 ` David Gibson
1 sibling, 2 replies; 7+ messages in thread
From: Wolfgang Grandegger @ 2008-01-14 8:10 UTC (permalink / raw)
To: Grant Likely; +Cc: linuxppc-embedded, ppc-dev
Grant Likely wrote:
> On 1/13/08, Matt Sealey <matt@genesi-usa.com> wrote:
>> Hi guys,
>>
>> I know the I2C stuff is up in the air (I cannot pinpoint the documentation
>> for it) and have not found any CAN bus documentation for device trees.
>>
>> I want to update the firmware tree to add these but, am basically looking
>> for those docs, or someone to go over a few points.. is there some kind of
>> tree standard I should be looking at, or some patch I missed which has
>> a driver which implements something that looks at a compatible tree?
>
> I think some consensus has been achieved for describing i2c busses and
> their attached devices, but I don't think booting-without-of.txt has
> been updated with the details yet. I need to look into that more.
>
> I don't think anyone has tackled CAN. Best bet is to draft a tree in
> the way you think it should be described and post it to the list.
> That will give a starting point for us to discuss it and come to
> consensus.
For MSCAN on the MPC5200 we currently have:
mscan@900 {
device_type = "mscan";
compatible = "mpc5200b-mscan","mpc5200-mscan";
cell-index = <0>;
interrupts = <2 11 0>;
interrupt-parent = <&mpc5200_pic>;
reg = <900 80>;
};
mscan@980 {
device_type = "mscan";
compatible = "mpc5200b-mscan","mpc5200-mscan";
cell-index = <1>;
interrupts = <2 12 0>;
interrupt-parent = <&mpc5200_pic>;
reg = <980 80>;
};
The only thing missing is a property defining the routing of the CAN
signals, CAN 1 on I2C1 pins or CAN 2 on TMR01 pins. I think it does not
make sense to describe CAN devices on the CAN bus like for I2C.
Wolfgang.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: I2C and CAN bus on MPC5200B device tree
2008-01-14 8:10 ` Wolfgang Grandegger
@ 2008-01-14 14:28 ` Grant Likely
2008-01-14 23:21 ` David Gibson
1 sibling, 0 replies; 7+ messages in thread
From: Grant Likely @ 2008-01-14 14:28 UTC (permalink / raw)
To: Wolfgang Grandegger; +Cc: linuxppc-embedded, ppc-dev
On 1/14/08, Wolfgang Grandegger <wg@grandegger.com> wrote:
> Grant Likely wrote:
> > On 1/13/08, Matt Sealey <matt@genesi-usa.com> wrote:
> >> Hi guys,
> >>
> >> I know the I2C stuff is up in the air (I cannot pinpoint the documentation
> >> for it) and have not found any CAN bus documentation for device trees.
> >>
> >> I want to update the firmware tree to add these but, am basically looking
> >> for those docs, or someone to go over a few points.. is there some kind of
> >> tree standard I should be looking at, or some patch I missed which has
> >> a driver which implements something that looks at a compatible tree?
> >
> > I think some consensus has been achieved for describing i2c busses and
> > their attached devices, but I don't think booting-without-of.txt has
> > been updated with the details yet. I need to look into that more.
> >
> > I don't think anyone has tackled CAN. Best bet is to draft a tree in
> > the way you think it should be described and post it to the list.
> > That will give a starting point for us to discuss it and come to
> > consensus.
>
> For MSCAN on the MPC5200 we currently have:
>
> mscan@900 {
> device_type = "mscan";
> compatible = "mpc5200b-mscan","mpc5200-mscan";
> cell-index = <0>;
> interrupts = <2 11 0>;
> interrupt-parent = <&mpc5200_pic>;
> reg = <900 80>;
> };
>
> mscan@980 {
> device_type = "mscan";
> compatible = "mpc5200b-mscan","mpc5200-mscan";
> cell-index = <1>;
> interrupts = <2 12 0>;
> interrupt-parent = <&mpc5200_pic>;
> reg = <980 80>;
> };
>
> The only thing missing is a property defining the routing of the CAN
> signals, CAN 1 on I2C1 pins or CAN 2 on TMR01 pins. I think it does not
> make sense to describe CAN devices on the CAN bus like for I2C.
I don't think that pin routing matters much for the device tree.
Ideally, firmware should be responsible for port_config, and as long
as it is already configured, the CAN device can find it's devices.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: I2C and CAN bus on MPC5200B device tree
2008-01-14 8:10 ` Wolfgang Grandegger
2008-01-14 14:28 ` Grant Likely
@ 2008-01-14 23:21 ` David Gibson
1 sibling, 0 replies; 7+ messages in thread
From: David Gibson @ 2008-01-14 23:21 UTC (permalink / raw)
To: Wolfgang Grandegger; +Cc: ppc-dev, linuxppc-embedded
On Mon, Jan 14, 2008 at 09:10:01AM +0100, Wolfgang Grandegger wrote:
> Grant Likely wrote:
> > On 1/13/08, Matt Sealey <matt@genesi-usa.com> wrote:
> >> Hi guys,
> >>
> >> I know the I2C stuff is up in the air (I cannot pinpoint the documentation
> >> for it) and have not found any CAN bus documentation for device trees.
> >>
> >> I want to update the firmware tree to add these but, am basically looking
> >> for those docs, or someone to go over a few points.. is there some kind of
> >> tree standard I should be looking at, or some patch I missed which has
> >> a driver which implements something that looks at a compatible tree?
> >
> > I think some consensus has been achieved for describing i2c busses and
> > their attached devices, but I don't think booting-without-of.txt has
> > been updated with the details yet. I need to look into that more.
> >
> > I don't think anyone has tackled CAN. Best bet is to draft a tree in
> > the way you think it should be described and post it to the list.
> > That will give a starting point for us to discuss it and come to
> > consensus.
>
> For MSCAN on the MPC5200 we currently have:
>
> mscan@900 {
> device_type = "mscan";
These device_type entries should not be here.
--
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-01-14 23:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-13 22:53 I2C and CAN bus on MPC5200B device tree Matt Sealey
2008-01-14 0:35 ` Grant Likely
2008-01-14 4:42 ` Olof Johansson
2008-01-14 19:04 ` Scott Wood
2008-01-14 8:10 ` Wolfgang Grandegger
2008-01-14 14:28 ` Grant Likely
2008-01-14 23:21 ` David Gibson
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).