Skip to content

Commit d068b02

Browse files
Petri Gyntherdavem330
authored andcommitted
net: phy: add BCM7425 and BCM7429 PHYs
Signed-off-by: Petri Gynther <pgynther@google.com> Acked-by: Florian Fainelli <f.fainelli@gmai.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent bc23333 commit d068b02

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

‎drivers/net/phy/bcm7xxx.c‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,32 @@ static struct phy_driver bcm7xxx_driver[] = {
350350
BCM7XXX_28NM_GPHY(PHY_ID_BCM7439, "Broadcom BCM7439"),
351351
BCM7XXX_28NM_GPHY(PHY_ID_BCM7445, "Broadcom BCM7445"),
352352
{
353+
.phy_id = PHY_ID_BCM7425,
354+
.phy_id_mask = 0xfffffff0,
355+
.name = "Broadcom BCM7425",
356+
.features = PHY_GBIT_FEATURES |
357+
SUPPORTED_Pause | SUPPORTED_Asym_Pause,
358+
.flags = 0,
359+
.config_init = bcm7xxx_config_init,
360+
.config_aneg = genphy_config_aneg,
361+
.read_status = genphy_read_status,
362+
.suspend = bcm7xxx_suspend,
363+
.resume = bcm7xxx_config_init,
364+
.driver = { .owner = THIS_MODULE },
365+
}, {
366+
.phy_id = PHY_ID_BCM7429,
367+
.phy_id_mask = 0xfffffff0,
368+
.name = "Broadcom BCM7429",
369+
.features = PHY_GBIT_FEATURES |
370+
SUPPORTED_Pause | SUPPORTED_Asym_Pause,
371+
.flags = PHY_IS_INTERNAL,
372+
.config_init = bcm7xxx_config_init,
373+
.config_aneg = genphy_config_aneg,
374+
.read_status = genphy_read_status,
375+
.suspend = bcm7xxx_suspend,
376+
.resume = bcm7xxx_config_init,
377+
.driver = { .owner = THIS_MODULE },
378+
}, {
353379
.phy_id = PHY_BCM_OUI_4,
354380
.phy_id_mask = 0xffff0000,
355381
.name = "Broadcom BCM7XXX 40nm",
@@ -381,6 +407,8 @@ static struct mdio_device_id __maybe_unused bcm7xxx_tbl[] = {
381407
{ PHY_ID_BCM7250, 0xfffffff0, },
382408
{ PHY_ID_BCM7364, 0xfffffff0, },
383409
{ PHY_ID_BCM7366, 0xfffffff0, },
410+
{ PHY_ID_BCM7425, 0xfffffff0, },
411+
{ PHY_ID_BCM7429, 0xfffffff0, },
384412
{ PHY_ID_BCM7439, 0xfffffff0, },
385413
{ PHY_ID_BCM7445, 0xfffffff0, },
386414
{ PHY_BCM_OUI_4, 0xffff0000 },

‎include/linux/brcmphy.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#define PHY_ID_BCM7250 0xae025280
1717
#define PHY_ID_BCM7364 0xae025260
1818
#define PHY_ID_BCM7366 0x600d8490
19+
#define PHY_ID_BCM7425 0x03625e60
20+
#define PHY_ID_BCM7429 0x600d8730
1921
#define PHY_ID_BCM7439 0x600d8480
2022
#define PHY_ID_BCM7445 0x600d8510
2123

0 commit comments

Comments
 (0)