]> 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)
commit77e88995d83e827761c20cf00a36b2c7f2efc230
tree455df3206dfcf0982c27f0be0eff4650b8899bcc
parent9a69ff06f0583ea6964b79b45421c53222d73d55
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