net: dsa: b53: mdio: add support for BCM53101
Subsystems (5)
PATCH 1/2 net: dsa: b53: mdio: add support for BCM53101
From: Torben Nielsen <[email protected]>
BCM53101 is a ethernet switch, very similar to the BCM53115. Enable support for it, in the existing b53 dsa driver.
--- drivers/net/dsa/b53/b53_common.c | 14 ++++++++++++++ drivers/net/dsa/b53/b53_mdio.c | 1 + drivers/net/dsa/b53/b53_priv.h | 2 ++ 3 files changed, 17 insertions(+)
drivers/net/dsa/b53/b53_common.c +14 -0
@@ -2409,6 +2409,19 @@ static const struct b53_chip_data b53_switch_chips[] = { .jumbo_pm_reg = B53_JUMBO_PORT_MASK, .jumbo_size_reg = B53_JUMBO_MAX_SIZE, }, + { + .chip_id = BCM53101_DEVICE_ID, + .dev_name = "BCM53101", + .vlans = 4096, + .enabled_ports = 0x11f, + .arl_bins = 4, + .arl_buckets = 512, + .vta_regs = B53_VTA_REGS, + .imp_port = 8, + .duplex_reg = B53_DUPLEX_STAT_GE, + .jumbo_pm_reg = B53_JUMBO_PORT_MASK, + .jumbo_size_reg = B53_JUMBO_MAX_SIZE, + }, { .chip_id = BCM53115_DEVICE_ID, .dev_name = "BCM53115",
@@ -2789,6 +2802,7 @@ int b53_switch_detect(struct b53_device *dev)return ret;switch (id32) { +case BCM53101_DEVICE_ID :case BCM53115_DEVICE_ID :case BCM53125_DEVICE_ID :case BCM53128_DEVICE_ID :
drivers/net/dsa/b53/b53_mdio.c +1 -0
@@ -374,6 +374,7 @@ static void b53_mdio_shutdown(struct mdio_device *mdiodev)static const struct of_device_id b53_of_match[] = { { .compatible ="brcm,bcm5325" }, + { .compatible ="brcm,bcm53101" }, { .compatible ="brcm,bcm53115" }, { .compatible ="brcm,bcm53125" }, { .compatible ="brcm,bcm53128" },
drivers/net/dsa/b53/b53_priv.h +2 -0
@@ -66,6 +66,7 @@ enum {BCM5395_DEVICE_ID =0x95 ,BCM5397_DEVICE_ID =0x97 ,BCM5398_DEVICE_ID =0x98 , +BCM53101_DEVICE_ID =0x53101 ,BCM53115_DEVICE_ID =0x53115 ,BCM53125_DEVICE_ID =0x53125 , BCM53128_DEVICE_ID = 0x53128,
@@ -188,6 +189,7 @@ static inline int is531x5(struct b53_device *dev) {return dev->chip_id ==BCM53115_DEVICE_ID || dev->chip_id ==BCM53125_DEVICE_ID || + dev->chip_id ==BCM53101_DEVICE_ID || dev->chip_id ==BCM53128_DEVICE_ID || dev->chip_id ==BCM53134_DEVICE_ID ; }
Signature · 1 line
2.45.3
PATCH 2/2 dt-bindings: net: dsa: b53: add BCM53101 support
From: Claus Stovgaard <[email protected]>
BCM53101 is a ethernet switch, very similar to the BCM53115.
--- Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml +2 -0
@@ -16,6 +16,7 @@ properties: compatible: oneOf: - const: brcm,bcm5325 + - const: brcm,bcm53101 - const: brcm,bcm53115 - const: brcm,bcm53125 - const: brcm,bcm53128
@@ -77,6 +78,7 @@ allOf: contains: enum: - brcm,bcm5325 + - brcm,bcm53101 - brcm,bcm53115 - brcm,bcm53125 - brcm,bcm53128
Signature · 1 line
2.45.3
Re: [PATCH 2/2] dt-bindings: net: dsa: b53: add BCM53101 support
Quoted 9 lines · Claus Stovgaard
From: Claus Stovgaard <[email protected]>
BCM53101 is a ethernet switch, very similar to the BCM53115.
Signed-off-by Claus Stovgaard <[email protected]>--- Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml | 2 ++ 1 file changed, 2 insertions(+)
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Mon, 17 Feb 2025 09:05:01 +0100 you wrote:
From: Torben Nielsen <[email protected]>
BCM53101 is a ethernet switch, very similar to the BCM53115. Enable support for it, in the existing b53 dsa driver.
Signed-off-by Torben Nielsen <[email protected]>Signed-off-by Claus Stovgaard <[email protected]>[...]
Here is the summary with links:
- [1/2] net: dsa: b53: mdio: add support for BCM53101
https://git.kernel.org/netdev/net-next/c/c4f873c2b65c - [2/2] dt-bindings: net: dsa: b53: add BCM53101 support https://git.kernel.org/netdev/net-next/c/dfc4b67db06c
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html