net: phy: add support for qca8k switch internal PHY in at803x
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 14 May 2021 21:00:15 +0000 (23:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:30:23 +0000 (15:30 -0700)
commit272833b9b3b3969be7a91839121d86662c8c4253
tree3d70760e011cb5d4252cf59a7cd6f8e437b95b03
parentd0e13fd5626c3346dfb43831f8fb42b14764dac3
net: phy: add support for qca8k switch internal PHY in at803x

Since the at803x share the same regs, it's assumed they are based on the
same implementation. Make it part of the at803x PHY driver to skip
having redudant code.
Add initial support for qca8k internal PHYs. The internal PHYs requires
special mmd and debug values to be set based on the switch revision
passwd using the dev_flags. Supports output of idle, receive and eee_wake
errors stats.
Some debug values sets can't be translated as the documentation lacks any
reference about them.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/Kconfig
drivers/net/phy/at803x.c