Skip to content

Commit 3034783

Browse files
Roger Quadrosdavem330
authored andcommitted
net: phy: dp83848: add dp83822 PHY support
This PHY has a compatible register set with DP83848x so add support for it. Acked-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9fe1c98 commit 3034783

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/phy/dp83848.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define TI_DP83848C_PHY_ID 0x20005ca0
2020
#define NS_DP83848C_PHY_ID 0x20005c90
2121
#define TLK10X_PHY_ID 0x2000a210
22+
#define TI_DP83822_PHY_ID 0x2000a240
2223

2324
/* Registers */
2425
#define DP83848_MICR 0x11 /* MII Interrupt Control Register */
@@ -77,6 +78,7 @@ static struct mdio_device_id __maybe_unused dp83848_tbl[] = {
7778
{ TI_DP83848C_PHY_ID, 0xfffffff0 },
7879
{ NS_DP83848C_PHY_ID, 0xfffffff0 },
7980
{ TLK10X_PHY_ID, 0xfffffff0 },
81+
{ TI_DP83822_PHY_ID, 0xfffffff0 },
8082
{ }
8183
};
8284
MODULE_DEVICE_TABLE(mdio, dp83848_tbl);
@@ -105,6 +107,7 @@ static struct phy_driver dp83848_driver[] = {
105107
DP83848_PHY_DRIVER(TI_DP83848C_PHY_ID, "TI DP83848C 10/100 Mbps PHY"),
106108
DP83848_PHY_DRIVER(NS_DP83848C_PHY_ID, "NS DP83848C 10/100 Mbps PHY"),
107109
DP83848_PHY_DRIVER(TLK10X_PHY_ID, "TI TLK10X 10/100 Mbps PHY"),
110+
DP83848_PHY_DRIVER(TI_DP83822_PHY_ID, "TI DP83822 10/100 Mbps PHY"),
108111
};
109112
module_phy_driver(dp83848_driver);
110113

0 commit comments

Comments
 (0)