Add PHY IDs for DP83825/6
Subsystems (3)
cover Add PHY IDs for DP83825/6
Hello
Adding new PHY IDs for the DP83825 and DP83826 TI Ethernet PHYs to the DP83822 PHY driver.
Dan
Dan Murphy (2):
phy: dp83826: Add phy IDs for DP83826N and 826NC
net: phy: DP83822: Add support for additional DP83825 devices
drivers/net/phy/Kconfig | 5 +++-- drivers/net/phy/dp83822.c | 18 ++++++++++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-)
Signature · 1 line
2.25.0
PATCH 1/2 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.
--- drivers/net/phy/Kconfig | 4 ++-- drivers/net/phy/dp83822.c | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-)
drivers/net/phy/Kconfig +2 -2
@@ -346,9 +346,9 @@ config DAVICOM_PHY Currently supports dm9161e and dm9131 config DP83822_PHY - tristate "Texas Instruments DP83822/825 PHYs" + tristate "Texas Instruments DP83822/825/826 PHYs" ---help--- - Supports the DP83822 and DP83825I PHYs. + Supports the DP83822, DP83825I, DP83826C and DP83826NC PHYs. config DP83TC811_PHY tristate "Texas Instruments DP83TC811 PHY"
drivers/net/phy/dp83822.c +6 -0
@@ -16,6 +16,8 @@#define DP83822_PHY_ID 0x2000a240#define DP83825I_PHY_ID 0x2000a150 +#define DP83826C_PHY_ID 0x2000a130 +#define DP83826NC_PHY_ID 0x2000a110#define DP83822_DEVADDR 0x1f
@@ -319,12 +321,16 @@ static int dp83822_resume(struct phy_device *phydev)static struct phy_driver dp83822_driver[] = {DP83822_PHY_DRIVER (DP83822_PHY_ID ,"TI DP83822" ),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);static struct mdio_device_id __maybe_unused dp83822_tbl[] = { {DP83822_PHY_ID ,0xfffffff0 }, {DP83825I_PHY_ID ,0xfffffff0 }, + {DP83826C_PHY_ID ,0xfffffff0 }, + {DP83826NC_PHY_ID ,0xfffffff0 }, { }, };MODULE_DEVICE_TABLE (mdio, dp83822_tbl);
Signature · 1 line
2.25.0
Re: [PATCH net-next 1/2] phy: dp83826: Add phy IDs for DP83826N and 826NC
Quoted 5 lines · Dan Murphy
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 Dan Murphy <[email protected]>
Andrew
PATCH 2/2 net: phy: DP83822: Add support for additional DP83825 devices
In reply to Dan MurphyAdd PHY IDs for the DP83825CS, DP83825CM and the DP83825S devices to the DP83822 driver.
--- drivers/net/phy/Kconfig | 3 ++- drivers/net/phy/dp83822.c | 12 ++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-)
drivers/net/phy/Kconfig +2 -1
@@ -348,7 +348,8 @@ config DAVICOM_PHY config DP83822_PHY tristate "Texas Instruments DP83822/825/826 PHYs" ---help--- - Supports the DP83822, DP83825I, DP83826C and DP83826NC PHYs. + Supports the DP83822, DP83825I, DP83825CM, DP83825CS, DP83825S, + DP83826C and DP83826NC PHYs. config DP83TC811_PHY tristate "Texas Instruments DP83TC811 PHY"
drivers/net/phy/dp83822.c +10 -2
@@ -1,6 +1,5 @@// SPDX-License-Identifier: GPL-2.0 -/* -* Driver for the Texas Instruments DP83822 PHY +/* Driver for the Texas Instruments DP83822, DP83825 and DP83826 PHYs. * * Copyright (C) 2017 Texas Instruments Inc. */
@@ -15,7 +14,10 @@#include <linux/netdevice.h> #define DP83822_PHY_ID 0x2000a240 +#define DP83825S_PHY_ID 0x2000a140#define DP83825I_PHY_ID 0x2000a150 +#define DP83825CM_PHY_ID 0x2000a160 +#define DP83825CS_PHY_ID 0x2000a170#define DP83826C_PHY_ID 0x2000a130#define DP83826NC_PHY_ID 0x2000a110
@@ -323,6 +325,9 @@ static struct phy_driver dp83822_driver[] = {DP83822_PHY_DRIVER (DP83825I_PHY_ID ,"TI DP83825I" ),DP83822_PHY_DRIVER (DP83826C_PHY_ID ,"TI DP83826C" ),DP83822_PHY_DRIVER (DP83826NC_PHY_ID ,"TI DP83826NC" ), +DP83822_PHY_DRIVER (DP83825S_PHY_ID ,"TI DP83825S" ), +DP83822_PHY_DRIVER (DP83825CM_PHY_ID ,"TI DP83825M" ), +DP83822_PHY_DRIVER (DP83825CS_PHY_ID ,"TI DP83825CS" ), };module_phy_driver (dp83822_driver);
@@ -331,6 +336,9 @@ static struct mdio_device_id __maybe_unused dp83822_tbl[] = { { DP83825I_PHY_ID, 0xfffffff0 }, { DP83826C_PHY_ID, 0xfffffff0 }, { DP83826NC_PHY_ID, 0xfffffff0 }, + { DP83825S_PHY_ID, 0xfffffff0 }, + { DP83825CM_PHY_ID, 0xfffffff0 }, + { DP83825CS_PHY_ID, 0xfffffff0 }, { }, };MODULE_DEVICE_TABLE (mdio, dp83822_tbl);
Signature · 1 line
2.25.0
Re: [PATCH net-next 2/2] net: phy: DP83822: Add support for additional DP83825 devices
Quoted 4 lines · Dan Murphy
Add PHY IDs for the DP83825CS, DP83825CM and the DP83825S devices to the DP83822 driver.
Signed-off-by Dan Murphy <[email protected]>
Andrew
David Miller
maintainerFrom: Dan Murphy <[email protected]>
Date: Wed, 22 Jan 2020 09:34:53 -0600
Quoted 2 lines
Adding new PHY IDs for the DP83825 and DP83826 TI Ethernet PHYs to the DP83822 PHY driver.
Series applied, thanks.