ar71xx: change PHY select logic, and update phy_masks