Florian Fainelli wrote:
Did you confirm that it does not respond with its
correct PHY ID1&ID3 values?

This is the output I get for the PHY IDs on the mdio bus when the PHYs are in power down state (this is the default state in which the device comes up): root@OpenWrt:/sys/devices/platform/ag71xx-mdio.0# for phy in ag71xx-mdio.0\:*; do echo -n "${phy}: "; cat ${phy}/phy_id; done
ag71xx-mdio.0:10: 0x00000760
ag71xx-mdio.0:11: 0x00000000
ag71xx-mdio.0:12: 0x12800000
ag71xx-mdio.0:13: 0x00000000
ag71xx-mdio.0:14: 0x00000000
ag71xx-mdio.0:15: 0x00000000
ag71xx-mdio.0:16: 0x00000000
ag71xx-mdio.0:17: 0x00000000
ag71xx-mdio.0:18: 0x00000760

This results in: ag71xx.0: no PHY found with phy_mask=00000001

And this is the output for powered up PHYs (powered up in the bootloader by interrupting automatic booting):

root@OpenWrt:/sys/devices/platform/ag71xx-mdio.0# for phy in ag71xx-mdio.0\:*; do echo -n "${phy}: "; cat ${phy}/phy_id; done
ag71xx-mdio.0:00: 0x004dd033
ag71xx-mdio.0:01: 0x004dd033
ag71xx-mdio.0:02: 0x004dd033
ag71xx-mdio.0:03: 0x004dd033
ag71xx-mdio.0:04: 0x004dd033
ag71xx-mdio.0:10: 0x00000000
ag71xx-mdio.0:11: 0x10411084
ag71xx-mdio.0:12: 0x00000000
ag71xx-mdio.0:13: 0x7fff7fff
ag71xx-mdio.0:14: 0x7fff7fff
ag71xx-mdio.0:15: 0x7fff7fff
ag71xx-mdio.0:16: 0x00c20000
ag71xx-mdio.0:17: 0x004a003a
ag71xx-mdio.0:18: 0x00000000

This results in: ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]

Is this a real PHY or is this a specific
port from a switch?

These are the 5 Ports of the AR8327N switch which is connected to GMAC0 of the AR9344 in RGMII mode.

Obviously the PHYs cannot be found when in powered down state. This is the reason why the probing of the switch fails. All the mdio bus scan sees is PHY ID garbage because the relevant PHYs aren't responding. This is why I'm trying to perform a PHY reset / auto negotiation start even before having the mdiobus_register function perform the mdio bus scan.

You can find the files/patches I use for this board here:
http://heffer.fedorapeople.org/openwrt/mynet-n750/

Thanks for your help so far!

Regards,
  Felix
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to