summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Semin <fancer.lancer@gmail.com>2022-08-15 16:03:37 +0300
committerSerge Semin <fancer.lancer@gmail.com>2026-08-13 20:38:17 +0300
commit4d774b697acde32b8b45e6bb849b95ffc72b4f41 (patch)
tree4d92d218d948401acf495e234e53b1b891c8b8e6
parent159980975b441fee4f56cdfd14763d7dc36ea8b3 (diff)
downloadlinux-4d774b697acde32b8b45e6bb849b95ffc72b4f41.tar.gz
linux-4d774b697acde32b8b45e6bb849b95ffc72b4f41.zip
net: phy: marvell-88x2222: Add 88X2222R PHY ID
There is a Marvell 88X2222 PHY revision with R suffix, which is mainly compatible with the original PHY but has different ID. Let's add it to the known Marvell PHY IDs table defined in the marvell_phy.h file. Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
-rw-r--r--drivers/net/phy/marvell-88x2222.c16
-rw-r--r--include/linux/marvell_phy.h1
2 files changed, 17 insertions, 0 deletions
diff --git a/drivers/net/phy/marvell-88x2222.c b/drivers/net/phy/marvell-88x2222.c
index ba1bbb6c63d6..48ed20728314 100644
--- a/drivers/net/phy/marvell-88x2222.c
+++ b/drivers/net/phy/marvell-88x2222.c
@@ -591,11 +591,27 @@ static struct phy_driver mv2222_drivers[] = {
.read_status = mv2222_read_status,
.attach_mii_port = mv2222_attach_mii_port,
},
+ {
+ .phy_id = MARVELL_PHY_ID_88X2222R,
+ .phy_id_mask = MARVELL_PHY_ID_MASK,
+ .name = "Marvell 88X2222R",
+ .get_features = mv2222_get_features,
+ .soft_reset = mv2222_soft_reset,
+ .config_init = mv2222_config_init,
+ .config_aneg = mv2222_config_aneg,
+ .aneg_done = mv2222_aneg_done,
+ .probe = mv2222_probe,
+ .suspend = mv2222_suspend,
+ .resume = mv2222_resume,
+ .read_status = mv2222_read_status,
+ .attach_mii_port = mv2222_attach_mii_port,
+ },
};
module_phy_driver(mv2222_drivers);
static const struct mdio_device_id __maybe_unused mv2222_tbl[] = {
{ MARVELL_PHY_ID_88X2222, MARVELL_PHY_ID_MASK },
+ { MARVELL_PHY_ID_88X2222R, MARVELL_PHY_ID_MASK },
{ }
};
MODULE_DEVICE_TABLE(mdio, mv2222_tbl);
diff --git a/include/linux/marvell_phy.h b/include/linux/marvell_phy.h
index b1fbe4118414..a904fb2cc5be 100644
--- a/include/linux/marvell_phy.h
+++ b/include/linux/marvell_phy.h
@@ -26,6 +26,7 @@
#define MARVELL_PHY_ID_88X3310 0x002b09a0
#define MARVELL_PHY_ID_88E2110 0x002b09b0
#define MARVELL_PHY_ID_88X2222 0x01410f10
+#define MARVELL_PHY_ID_88X2222R 0x014131b0
#define MARVELL_PHY_ID_88Q2110 0x002b0980
#define MARVELL_PHY_ID_88Q2220 0x002b0b20