Commit 783da36b authored by Dan Murphy's avatar Dan Murphy Committed by David S. Miller

phy: dp83826: Add phy IDs for DP83826N and 826NC

Add phy IDs to the DP83822 phy driver for the DP83826N
and the DP83826NC devices.  The register map and features
are the same for basic enablement.
Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6d9f6e67
...@@ -346,9 +346,9 @@ config DAVICOM_PHY ...@@ -346,9 +346,9 @@ config DAVICOM_PHY
Currently supports dm9161e and dm9131 Currently supports dm9161e and dm9131
config DP83822_PHY config DP83822_PHY
tristate "Texas Instruments DP83822/825 PHYs" tristate "Texas Instruments DP83822/825/826 PHYs"
---help--- ---help---
Supports the DP83822 and DP83825I PHYs. Supports the DP83822, DP83825I, DP83826C and DP83826NC PHYs.
config DP83TC811_PHY config DP83TC811_PHY
tristate "Texas Instruments DP83TC811 PHY" tristate "Texas Instruments DP83TC811 PHY"
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
#define DP83822_PHY_ID 0x2000a240 #define DP83822_PHY_ID 0x2000a240
#define DP83825I_PHY_ID 0x2000a150 #define DP83825I_PHY_ID 0x2000a150
#define DP83826C_PHY_ID 0x2000a130
#define DP83826NC_PHY_ID 0x2000a110
#define DP83822_DEVADDR 0x1f #define DP83822_DEVADDR 0x1f
...@@ -319,12 +321,16 @@ static int dp83822_resume(struct phy_device *phydev) ...@@ -319,12 +321,16 @@ static int dp83822_resume(struct phy_device *phydev)
static struct phy_driver dp83822_driver[] = { static struct phy_driver dp83822_driver[] = {
DP83822_PHY_DRIVER(DP83822_PHY_ID, "TI DP83822"), DP83822_PHY_DRIVER(DP83822_PHY_ID, "TI DP83822"),
DP83822_PHY_DRIVER(DP83825I_PHY_ID, "TI DP83825I"), DP83822_PHY_DRIVER(DP83825I_PHY_ID, "TI DP83825I"),
DP83822_PHY_DRIVER(DP83826C_PHY_ID, "TI DP83826C"),
DP83822_PHY_DRIVER(DP83826NC_PHY_ID, "TI DP83826NC"),
}; };
module_phy_driver(dp83822_driver); module_phy_driver(dp83822_driver);
static struct mdio_device_id __maybe_unused dp83822_tbl[] = { static struct mdio_device_id __maybe_unused dp83822_tbl[] = {
{ DP83822_PHY_ID, 0xfffffff0 }, { DP83822_PHY_ID, 0xfffffff0 },
{ DP83825I_PHY_ID, 0xfffffff0 }, { DP83825I_PHY_ID, 0xfffffff0 },
{ DP83826C_PHY_ID, 0xfffffff0 },
{ DP83826NC_PHY_ID, 0xfffffff0 },
{ }, { },
}; };
MODULE_DEVICE_TABLE(mdio, dp83822_tbl); MODULE_DEVICE_TABLE(mdio, dp83822_tbl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment