Thread (1 message) 1 message, 1 author, 2011-10-14

RE: P4080 device tree problems with fsl dpaa ...

From: Robert Sciuk <hidden>
Date: 2011-10-14 21:53:10

-----Original Message-----
From: glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org [mailto:glikely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org] On Behalf Of
Grant Likely
Sent: Friday, October 14, 2011 5:49 PM
To: Robert Sciuk
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: P4080 device tree problems with fsl dpaa ...

On Fri, Oct 14, 2011 at 3:26 PM, Robert Sciuk [off-list ref]
wrote:
quoted
I've just joined the list, and I hope that this is not an
inappropriate
quoted
question, but I'm looking for some direction with respect to device
trees, and the fsl, dpaa Ethernet drivers.

I'm wondering if anyone has had any experience with the FreeScale
DPAA
quoted
drivers for the 1g dtsec interface.  We are getting interfaces
defined,
quoted
and the tx count increases, but we are not seeing packets on the
"wire".

Hi Robert,

You should send your question to the linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
mailing list.  This is more of a powerpc device driver question than
it is a device tree question, so you're more likely to get a helpful
answer there.

g.
Thanks Grant.  Will do.

Rob.


quoted
...
[    0.911592] Freescale FM module (Oct 13 2011:14:41:07)
[    0.916745] cpu6/6: fsl_mac: FSL FMan MAC API based driver ()
[    0.923077] cpu6/6: fsl_mac: ffe4e0000.ethernet: FMan dTSEC
version:
quoted
0x08240101
[    0.930403] cpu6/6: fsl_mac: ffe4e0000.ethernet: FMan MAC address:
00:a0:a9:be:ef:10
...
[    1.015863] cpu6/6: fsl_dpa: FSL DPAA Ethernet driver ()
[    1.021446] cpu6/6: fsl_dpa: ethernet.23:
dpaa_eth.c:1684:dpa_bp_create() eth%d: Using private BM buffer pools
[    1.032263] cpu6/6: Using dynamic RX QM frame queues
[    1.037242] cpu6/6: Using dynamic TX QM frame queues
[    1.042263] cpu6/6: > WARNING (FM)
[/export2/rd2/dev/robsci1/Work/gold/wr4linux-
layer/obj/hotwire1/hotwire1
quoted
/build/linux/drivers/n
et/dpa/NetCommSw/Peripherals/FM/fm.c:911 FmGetSetPortParams]:
[    1.059138] cpu6/6: FIFO size enlarged to 11008
[    1.063670] cpu6/6:
[    1.066672] cpu6/6: fsl_dpa: ethernet.23:
dpaa_eth.c:2327:dpaa_oh_probe() no OH port bindings on node
/fsl,dpaa/ethernet@0
[    1.077806] cpu6/6: fsl_dpa: ethernet.24:
dpaa_eth.c:1684:dpa_bp_create() eth%d: Using private BM buffer pools
[    1.087826] cpu6/6: Using dynamic RX QM frame queues
[    1.092798] cpu6/6: Using dynamic TX QM frame queues
...

Our device tree defines the top level Ethernet as:
ethernet@0 {
 compatible = "fsl,p4080?dpa?ethernet", "fsl,dpa?ethernet";
 fsl,qman?channel = <0x13>;
 fsl,fman?mac = <0x50>;
};

And the mac and phys are defined as follows:

ethernet@e0000 {
 cell?index = <0x0>;
 compatible = "fsl,p4080?fman?1g?mac", "fsl,fman?1g?mac";
 reg = <0xe0000 0x1000>;
 fsl,port?handles = <0x22 0x23>;
 tbi?handle = <0x24>;
 phy?handle = <0x25>;
 phy?connection?type = "sgmii";
 ptimer?handle = <0x26>;
 linux,phandle = <0x50>;
};
mdio@e1120 {
 #address?cells = <0x1>;
 #size?cells = <0x0>;
 compatible = "fsl,fman?mdio";
 reg = <0xe1120 0xee0>;
 interrupts = <0x64 0x1 0x0 0x0>;
 gpios = <0x27 0x0 0x0 0x27 0x1 0x0>;
 linux,phandle = <0x28>;
 tbi?phy@8 {
 reg = <0x8>;
 device_type = "tbi?phy";
 linux,phandle = <0x24>;
 };
 phy0: ethernet?phy@0 {
 device_type="ethernet?phy";
 compatible="broadcom,BCM5482";
 reg = <0>;
 linux,phandle = <0x25>;
 };
};


I have no idea what an OH binding is, what it might look like, and
what
quoted
it entails, but I think that it might be a significant factor in our
not
quoted
seeing a working interface.  Has anyone any experience with dpaa
device
quoted
trees, and configuration?  Any pointers?  Any docs? Shots in the
dark?
quoted
Robert Sciuk
Senior Designer, R&D.
905.738.3741 xt 22621


_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss


--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help