]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: phy: DP83822: Add support for additional DP83825 devices
authorDan Murphy <dmurphy@ti.com>
Wed, 22 Jan 2020 15:34:55 +0000 (09:34 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2020 20:21:12 +0000 (21:21 +0100)
Add PHY IDs for the DP83825CS, DP83825CM and the DP83825S devices to the
DP83822 driver.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/Kconfig
drivers/net/phy/dp83822.c

index cc677ddd271953f6de990c89f9309954e55dbcb2..71fc778ce398852f547d953361ec3fcc12461be1 100644 (file)
@@ -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"
index 5159b28baa0f2273cf187fa28120e5c76f74178d..fe9aa3ad52a71f8bbea3c26f1b08a1bb4a1e33c4 100644 (file)
@@ -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.
  */
 #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);