<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="">Hi!<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 19 Feb 2015, at 04:14, 郭传鈜 <<a href="mailto:gch981213@gmail.com" class="">gch981213@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><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" class="">https://github.com/981213/openwrt/commit/47fa84df4dcc9b8bfe49ed2211d463ed014e2df2</a><br class=""></div></div></div></blockquote><div><br class=""></div><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 class=""></div><div>OR</div><div><br class=""></div><div>In the dst file under the esw, change the value of portmap to 3f.</div><div>XD</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div 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>
_______________________________________________<br class="">openwrt-devel mailing list<br class=""><a href="mailto:openwrt-devel@lists.openwrt.org" class="">openwrt-devel@lists.openwrt.org</a><br class="">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel<br class=""></div></blockquote></div><br class=""></div></body></html>