Skip to content

Commit 875b718

Browse files
tachicialexPaolo Abeni
authored andcommitted
net: phy: adin1100: add PHY IDs of adin1110/adin2111
Add additional PHY IDs for the internal PHYs of adin1110 and adin2111. Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Alexandru Tachici <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent cec9d59 commit 875b718

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drivers/net/phy/adin1100.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include <linux/property.h>
1616

1717
#define PHY_ID_ADIN1100 0x0283bc81
18+
#define PHY_ID_ADIN1110 0x0283bc91
19+
#define PHY_ID_ADIN2111 0x0283bca1
1820

1921
#define ADIN_FORCED_MODE 0x8000
2022
#define ADIN_FORCED_MODE_EN BIT(0)
@@ -265,7 +267,8 @@ static int adin_probe(struct phy_device *phydev)
265267

266268
static struct phy_driver adin_driver[] = {
267269
{
268-
PHY_ID_MATCH_MODEL(PHY_ID_ADIN1100),
270+
.phy_id = PHY_ID_ADIN1100,
271+
.phy_id_mask = 0xffffffcf,
269272
.name = "ADIN1100",
270273
.get_features = adin_get_features,
271274
.soft_reset = adin_soft_reset,
@@ -284,6 +287,8 @@ module_phy_driver(adin_driver);
284287

285288
static struct mdio_device_id __maybe_unused adin_tbl[] = {
286289
{ PHY_ID_MATCH_MODEL(PHY_ID_ADIN1100) },
290+
{ PHY_ID_MATCH_MODEL(PHY_ID_ADIN1110) },
291+
{ PHY_ID_MATCH_MODEL(PHY_ID_ADIN2111) },
287292
{ }
288293
};
289294

0 commit comments

Comments
 (0)