]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: b53: Add SerDes support
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 5 Sep 2018 19:42:15 +0000 (12:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Sep 2018 14:48:34 +0000 (07:48 -0700)
commitfaa543b7c51d10bd5b18ad6b55e4f0506ac785f8
tree455df3206dfcf0982c27f0be0eff4650b8899bcc
parent8e1674ad53a2a62a5035d1d063edd501aaaf5e60
net: dsa: b53: Add SerDes support

Add support for the Northstar Plus SerDes which is accessed through a
special page of the switch. Since this is something that most people
probably will not want to use, make it a configurable option with a
default on ARCH_BCM_NSP where it is the most useful currently.

The SerDes supports both SGMII and 1000baseX modes for both lanes, and
2500baseX for one of the lanes, and is internally looking like a
seemingly standard MII PHY, except for the few bits that got repurposed.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/Kconfig
drivers/net/dsa/b53/Makefile
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/b53/b53_priv.h
drivers/net/dsa/b53/b53_serdes.c [new file with mode: 0644]
drivers/net/dsa/b53/b53_serdes.h [new file with mode: 0644]
drivers/net/dsa/b53/b53_srab.c