Skip to content

Commit ada9841

Browse files
CHKDSK88kuba-moo
authored andcommitted
net: phy: marvell: add basic support of 88E308X/88E609X family
This patch implements only basic support. It covers PHY used in multiple IC: PHY: 88E3082, 88E3083 Switch: 88E6096, 88E6097 Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://lore.kernel.org/r/20240402201123.2961909-1-paweldembicki@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 04af1d6 commit ada9841

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

drivers/net/phy/marvell.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3289,6 +3289,18 @@ static struct phy_driver marvell_drivers[] = {
32893289
.get_strings = marvell_get_strings,
32903290
.get_stats = marvell_get_stats,
32913291
},
3292+
{
3293+
.phy_id = MARVELL_PHY_ID_88E3082,
3294+
.phy_id_mask = MARVELL_PHY_ID_MASK,
3295+
.name = "Marvell 88E308X/88E609X Family",
3296+
/* PHY_BASIC_FEATURES */
3297+
.probe = marvell_probe,
3298+
.config_init = marvell_config_init,
3299+
.aneg_done = marvell_aneg_done,
3300+
.read_status = marvell_read_status,
3301+
.resume = genphy_resume,
3302+
.suspend = genphy_suspend,
3303+
},
32923304
{
32933305
.phy_id = MARVELL_PHY_ID_88E1112,
32943306
.phy_id_mask = MARVELL_PHY_ID_MASK,
@@ -3742,6 +3754,7 @@ module_phy_driver(marvell_drivers);
37423754

37433755
static struct mdio_device_id __maybe_unused marvell_tbl[] = {
37443756
{ MARVELL_PHY_ID_88E1101, MARVELL_PHY_ID_MASK },
3757+
{ MARVELL_PHY_ID_88E3082, MARVELL_PHY_ID_MASK },
37453758
{ MARVELL_PHY_ID_88E1112, MARVELL_PHY_ID_MASK },
37463759
{ MARVELL_PHY_ID_88E1111, MARVELL_PHY_ID_MASK },
37473760
{ MARVELL_PHY_ID_88E1111_FINISAR, MARVELL_PHY_ID_MASK },

include/linux/marvell_phy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
/* Known PHY IDs */
99
#define MARVELL_PHY_ID_88E1101 0x01410c60
10+
#define MARVELL_PHY_ID_88E3082 0x01410c80
1011
#define MARVELL_PHY_ID_88E1112 0x01410c90
1112
#define MARVELL_PHY_ID_88E1111 0x01410cc0
1213
#define MARVELL_PHY_ID_88E1118 0x01410e10

0 commit comments

Comments
 (0)