diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-03-12 11:41:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-12 17:06:37 -0800 |
commit | a9349f08ec6c1251d41ef167d27a15cc39bc5b97 (patch) | |
tree | 9d311a1da7f58735d27dbba426d3b87ee2f2ebb8 /drivers/net/ethernet/oki-semi | |
parent | 01488a0ccd9abe15565bed50a45afcddbb0fe199 (diff) | |
download | linux-stable-a9349f08ec6c1251d41ef167d27a15cc39bc5b97.tar.gz linux-stable-a9349f08ec6c1251d41ef167d27a15cc39bc5b97.tar.bz2 linux-stable-a9349f08ec6c1251d41ef167d27a15cc39bc5b97.zip |
net: dsa: bcm_sf2: setup BCM4908 internal crossbar
On some SoCs (e.g. BCM4908, BCM631[345]8) SF2 has an integrated
crossbar. It allows connecting its selected external ports to internal
ports. It's used by vendors to handle custom Ethernet setups.
BCM4908 has following 3x2 crossbar. On Asus GT-AC5300 rgmii is used for
connecting external BCM53134S switch. GPHY4 is usually used for WAN
port. More fancy devices use SerDes for 2.5 Gbps Ethernet.
┌──────────┐
SerDes ─── 0 ─┤ │
│ 3x2 ├─ 0 ─── switch port 7
GPHY4 ─── 1 ─┤ │
│ crossbar ├─ 1 ─── runner (accelerator)
rgmii ─── 2 ─┤ │
└──────────┘
Use setup data based on DT info to configure BCM4908's switch port 7.
Right now only GPHY and rgmii variants are supported. Handling SerDes
can be implemented later.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/oki-semi')
0 files changed, 0 insertions, 0 deletions