net: libphy: Add phy specific function to access mmd phy registers