<div dir="ltr"><span style="font-size:14px">I've just changed the fpa2 value to 0x25502f28 (Port 5 is force enabled now) so swconfig shows the port as "Link down".</span><br style="font-size:14px"><div style="font-size:14px"><br></div><div style="font-size:14px">RTL8211CL isn't a switch.It's just a gigabit PHY and other 4 ports of this router is connected to the intergated switch:-)</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-19 16:01 GMT+08:00 Mikko Hissa <span dir="ltr"><<a href="mailto:mikko.hissa@werzek.com" target="_blank">mikko.hissa@werzek.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>On 19 Feb 2015, at 09:45, 郭传鈜 <<a href="mailto:gch981213@gmail.com" target="_blank">gch981213@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Portmap?This value is only for the default VLAN config of the switch right? But the problem I'm facing is that the link status of port 5 is always "link down" even if I plugged in the network cable:-(</div></div></blockquote><div><br></div></span><div><div>Actually no, the switch has like two logical switches and it doesn't forward packets between those two (LAN/WAN).</div><div>Does swconfig show the port as disabled?</div></div><span class=""><br><blockquote type="cite"><div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-19 15:24 GMT+08:00 Mikko Hissa <span dir="ltr"><<a href="mailto:mikko.hissa@werzek.com" target="_blank">mikko.hissa@werzek.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi!<div><br><div><span><blockquote type="cite"><div>On 19 Feb 2015, at 04:14, 郭传鈜 <<a href="mailto:gch981213@gmail.com" target="_blank">gch981213@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Hello,everyone!<div>There is a kind of Huawei HG255D which has an RTL8211CL Gigabit PHY and We are trying to add support for it.<br><div>But I can't find anything about the RGMII and mdio-bus in any dts file of rt305x-based devices:-(</div></div><div>The only device I found which used the interface is WL-351 with an RTL8366 switch  but it doesn't use the MDIO interface to control it. I tried to copy the fpa2 and fct2 value from WL-351.dts but ,of course, it doesn't work.</div><div>Then I tried to do the following:</div><div><a href="https://github.com/981213/openwrt/commit/47fa84df4dcc9b8bfe49ed2211d463ed014e2df2" target="_blank">https://github.com/981213/openwrt/commit/47fa84df4dcc9b8bfe49ed2211d463ed014e2df2</a><br></div></div></div></blockquote><div><br></div></span><div>Yes, there's that and then you need to configure registers for gdma2 in the ethernet driver... Register a second netdev and map packets, to the corresponding netdev/gdma (in/out) interface, by dma descriptors. </div><div><br></div><div>OR</div><div><br></div><div>In the dst file under the esw, change the value of portmap to 3f.</div><div>XD</div><div><br></div><br><blockquote type="cite"><div><span><div dir="ltr"><div>but it doesn't work too.</div><div>Could someone please tell me what should I do in the dts file and how can I reset the PHY?</div><div><br></div><div><br></div><div>Sorry for my bad English:-)</div><div><br></div></div></span>
_______________________________________________<br>openwrt-devel mailing list<br><a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank">openwrt-devel@lists.openwrt.org</a><br><a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>
</div></blockquote></span></div><br></div></blockquote></div><br></div>