Skip to content

Commit 790e011

Browse files
committed
Merge branch 'Add-PHY-IDs-for-DP83825-6'
Dan Murphy says: ==================== Add PHY IDs for DP83825/6 Adding new PHY IDs for the DP83825 and DP83826 TI Ethernet PHYs to the DP83822 PHY driver. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 6d9f6e6 + 2ace13e commit 790e011

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

drivers/net/phy/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,10 @@ config DAVICOM_PHY
346346
Currently supports dm9161e and dm9131
347347

348348
config DP83822_PHY
349-
tristate "Texas Instruments DP83822/825 PHYs"
349+
tristate "Texas Instruments DP83822/825/826 PHYs"
350350
---help---
351-
Supports the DP83822 and DP83825I PHYs.
351+
Supports the DP83822, DP83825I, DP83825CM, DP83825CS, DP83825S,
352+
DP83826C and DP83826NC PHYs.
352353

353354
config DP83TC811_PHY
354355
tristate "Texas Instruments DP83TC811 PHY"

drivers/net/phy/dp83822.c

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
2-
/*
3-
* Driver for the Texas Instruments DP83822 PHY
2+
/* Driver for the Texas Instruments DP83822, DP83825 and DP83826 PHYs.
43
*
54
* Copyright (C) 2017 Texas Instruments Inc.
65
*/
@@ -15,7 +14,12 @@
1514
#include <linux/netdevice.h>
1615

1716
#define DP83822_PHY_ID 0x2000a240
17+
#define DP83825S_PHY_ID 0x2000a140
1818
#define DP83825I_PHY_ID 0x2000a150
19+
#define DP83825CM_PHY_ID 0x2000a160
20+
#define DP83825CS_PHY_ID 0x2000a170
21+
#define DP83826C_PHY_ID 0x2000a130
22+
#define DP83826NC_PHY_ID 0x2000a110
1923

2024
#define DP83822_DEVADDR 0x1f
2125

@@ -319,12 +323,22 @@ static int dp83822_resume(struct phy_device *phydev)
319323
static struct phy_driver dp83822_driver[] = {
320324
DP83822_PHY_DRIVER(DP83822_PHY_ID, "TI DP83822"),
321325
DP83822_PHY_DRIVER(DP83825I_PHY_ID, "TI DP83825I"),
326+
DP83822_PHY_DRIVER(DP83826C_PHY_ID, "TI DP83826C"),
327+
DP83822_PHY_DRIVER(DP83826NC_PHY_ID, "TI DP83826NC"),
328+
DP83822_PHY_DRIVER(DP83825S_PHY_ID, "TI DP83825S"),
329+
DP83822_PHY_DRIVER(DP83825CM_PHY_ID, "TI DP83825M"),
330+
DP83822_PHY_DRIVER(DP83825CS_PHY_ID, "TI DP83825CS"),
322331
};
323332
module_phy_driver(dp83822_driver);
324333

325334
static struct mdio_device_id __maybe_unused dp83822_tbl[] = {
326335
{ DP83822_PHY_ID, 0xfffffff0 },
327336
{ DP83825I_PHY_ID, 0xfffffff0 },
337+
{ DP83826C_PHY_ID, 0xfffffff0 },
338+
{ DP83826NC_PHY_ID, 0xfffffff0 },
339+
{ DP83825S_PHY_ID, 0xfffffff0 },
340+
{ DP83825CM_PHY_ID, 0xfffffff0 },
341+
{ DP83825CS_PHY_ID, 0xfffffff0 },
328342
{ },
329343
};
330344
MODULE_DEVICE_TABLE(mdio, dp83822_tbl);

0 commit comments

Comments
 (0)