<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 19 Feb 2015, at 09:45, 郭传鈜 <<a href="mailto:gch981213@gmail.com" class="">gch981213@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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 class=""></div><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><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">2015-02-19 15:24 GMT+08:00 Mikko Hissa <span dir="ltr" class=""><<a href="mailto:mikko.hissa@werzek.com" target="_blank" class="">mikko.hissa@werzek.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi!<div class=""><br class=""><div class=""><span class=""><blockquote type="cite" class=""><div class="">On 19 Feb 2015, at 04:14, 郭传鈜 <<a href="mailto:gch981213@gmail.com" target="_blank" class="">gch981213@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Hello,everyone!<div class="">There is a kind of Huawei HG255D which has an RTL8211CL Gigabit PHY and We are trying to add support for it.<br class=""><div class="">But I can't find anything about the RGMII and mdio-bus in any dts file of rt305x-based devices:-(</div></div><div class="">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 class="">Then I tried to do the following:</div><div class=""><a href="https://github.com/981213/openwrt/commit/47fa84df4dcc9b8bfe49ed2211d463ed014e2df2" target="_blank" class="">https://github.com/981213/openwrt/commit/47fa84df4dcc9b8bfe49ed2211d463ed014e2df2</a><br class=""></div></div></div></blockquote><div class=""><br class=""></div></span><div class="">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 class=""><br class=""></div><div class="">OR</div><div class=""><br class=""></div><div class="">In the dst file under the esw, change the value of portmap to 3f.</div><div class="">XD</div><div class=""><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><span class=""><div dir="ltr" class=""><div class="">but it doesn't work too.</div><div class="">Could someone please tell me what should I do in the dts file and how can I reset the PHY?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Sorry for my bad English:-)</div><div class=""><br class=""></div></div></span>
_______________________________________________<br class="">openwrt-devel mailing list<br class=""><a href="mailto:openwrt-devel@lists.openwrt.org" target="_blank" class="">openwrt-devel@lists.openwrt.org</a><br class=""><a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank" class="">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>