Hi Lucas, Thanks for reply. I am also using msgdma driver and Linux kernel 4.4 (not 4.1-ltsi).
Regards Sks. From: GROPOSO Lucas [mailto:lucas.grop...@reason.com.br] Sent: 23 June 2016 18:28 To: SINHA Shrikrishna; rfi@lists.rocketboards.org Subject: RE: TSE MAC with Fixed Link Hello, I meant to say kernel 4.4-ltsi, not the 3.14 one. BTW, I am using the msgdma driver, not the normal sgdma. Regards, Lucas From: SINHA Shrikrishna [mailto:shrikrishna.si...@uk.thalesgroup.com] Sent: quinta-feira, 23 de junho de 2016 11:07 To: GROPOSO Lucas; rfi@lists.rocketboards.org<mailto:rfi@lists.rocketboards.org> Subject: RE: TSE MAC with Fixed Link Hi Lucas, Thanks for response, but I still get the same error(below). I am at kernel 4.4. [ 4.711767] altera_tse ff284000.ethernet eth3: No phy-handle nor local mdio specified [ 4.719763] altera_tse ff284000.ethernet eth3: Cannot attach to PHY (error: -19) Jan 1 01:00:04 bmu user.err kernel: [ 4.711767] altera_tse ff284000.ethernet eth3: No phy-handle nor local specified Updated dts: Ethernet4: ethernet@0x100084000{ ... phy-mode = "gmii"; fixed-link { speed = <1000>; full-duplex; }; phy4: ethernet-phy@0 { reg = <3>; device_type = "ethernet-phy"; }; Thanks and Regards sks From: GROPOSO Lucas [mailto:lucas.grop...@reason.com.br] Sent: 23 June 2016 14:01 To: SINHA Shrikrishna; rfi@lists.rocketboards.org<mailto:rfi@lists.rocketboards.org> Subject: RE: TSE MAC with Fixed Link Hello, I have used the following, on a Cyclone V, kernel 3.14-ltsi. phy-mode = "gmii"; fixed-link { speed = <1000>; full-duplex; }; phy0: ethernet-phy@0 { reg = < 3 >; /* appended from boardinfo */ device_type = "ethernet-phy"; /* appended from boardinfo */ }; //end ethernet-phy@0 (phy0) }; //end ethernet@0x100000000 (eth_0_eth_tse_0) It was the only way I could make it work. Best regards, Lucas From: rfi-boun...@lists.rocketboards.org<mailto:rfi-boun...@lists.rocketboards.org> [mailto:rfi-boun...@lists.rocketboards.org] On Behalf Of SINHA Shrikrishna Sent: quinta-feira, 23 de junho de 2016 09:52 To: rfi@lists.rocketboards.org<mailto:rfi@lists.rocketboards.org> Subject: [Rfi] TSE MAC with Fixed Link Hi, I have created following node in my dts to enable use TSE mac with fixed-link (no phy) for Arria V board. Ethernet4: ethernet@0x100084000{ ..... // phy-handle = <&phy4>; status = "okay"; ethernet-phy@0 { fixed-link = <0 1 10 0 0>; }; } But, I am unable instantiate this TSE soft-IP and below is the log from /tmp/message: Jan 1 01:00:07 bmu user.err kernel: [ 7.735791] altera_tse ff284000.ethernet eth3: No phy-handle nor local mdio spec ified Jan 1 01:00:07 bmu user.err kernel: [ 7.743657] altera_tse ff284000.ethernet eth3: Cannot attach to PHY (error: -19) Jan 1 01:00:07 bmu user.err kernel: [ 7.791708] altera_tse ff285000.ethernet eth3: Could not find the PHY Jan 1 01:00:07 bmu user.err kernel: [ 7.804835] altera_tse ff285000.ethernet eth3: Cannot attach to PHY (error: -19) First error imples that "of_phy_is_fixed_link(priv->device->of_node)" failed (in the attached portion of altera_tse_main.c), though I have "fixed-link" node defined in the dts.any idea why "of_phy_is_fixed_link(priv->device->of_node)" fails or what else need to be added in the node ? --- snippet of altera_tse_main.c ---- if (!phynode) { /* check if a fixed-link is defined in device-tree */ if (of_phy_is_fixed_link(priv->device->of_node)) { rc = of_phy_register_fixed_link(priv->device->of_node); if (rc < 0) { netdev_err(dev, "cannot register fixed PHY\n"); return rc; } /* In the case of a fixed PHY, the DT node associated * to the PHY is the Ethernet MAC DT node. */ phynode = of_node_get(priv->device->of_node); fixed_link = true; netdev_dbg(dev, "fixed-link detected\n"); phydev = of_phy_connect(dev, phynode, &altera_tse_adjust_link, 0, priv->phy_iface); } else { netdev_dbg(dev, "no phy-handle found\n"); if (!priv->mdio) { netdev_err(dev, "No phy-handle nor local mdio specified\n"); return -ENODEV; } phydev = connect_local_phy(dev); } } else { netdev_dbg(dev, "phy-handle found\n"); phydev = of_phy_connect(dev, phynode, &altera_tse_adjust_link, 0, priv->phy_iface); } Thanks in advance. Sks. ________________________________ CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. ________________________________ CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.
_______________________________________________ Rfi mailing list Rfi@lists.rocketboards.org http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi