* [PATCH] net: phy: broadcom: Add support for the BCM54210E
@ 2017-04-05 5:33 Joel Stanley
2017-04-05 5:47 ` Florian Fainelli
0 siblings, 1 reply; 3+ messages in thread
From: Joel Stanley @ 2017-04-05 5:33 UTC (permalink / raw)
To: Florian Fainelli, David Miller; +Cc: Jon Mason, netdev, linux-kernel
This device is a single-port RGMII 10/100/1000BASE-T PHY with EEE & WOL.
Signed-off-by: Joel Stanley <joel@jms.id.au>
---
drivers/net/phy/broadcom.c | 13 +++++++++++++
include/linux/brcmphy.h | 2 ++
2 files changed, 15 insertions(+)
diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c
index 9cd8b27d1292..3df826323129 100644
--- a/drivers/net/phy/broadcom.c
+++ b/drivers/net/phy/broadcom.c
@@ -703,6 +703,18 @@ static struct phy_driver broadcom_drivers[] = {
.read_status = genphy_read_status,
.ack_interrupt = brcm_fet_ack_interrupt,
.config_intr = brcm_fet_config_intr,
+}, {
+ .phy_id = PHY_ID_BCM54210E,
+ .phy_id_mask = 0xfffffff0,
+ .name = "Broadcom BCM54210E",
+ .features = PHY_GBIT_FEATURES |
+ SUPPORTED_Pause | SUPPORTED_Asym_Pause,
+ .flags = PHY_HAS_MAGICANEG | PHY_HAS_INTERRUPT,
+ .config_init = bcm54xx_config_init,
+ .config_aneg = genphy_config_aneg,
+ .read_status = genphy_read_status,
+ .ack_interrupt = bcm_phy_ack_intr,
+ .config_intr = bcm_phy_config_intr,
} };
module_phy_driver(broadcom_drivers);
@@ -723,6 +735,7 @@ static struct mdio_device_id __maybe_unused broadcom_tbl[] = {
{ PHY_ID_BCM57780, 0xfffffff0 },
{ PHY_ID_BCMAC131, 0xfffffff0 },
{ PHY_ID_BCM5241, 0xfffffff0 },
+ { PHY_ID_BCM54210E, 0xfffffff0},
{ }
};
diff --git a/include/linux/brcmphy.h b/include/linux/brcmphy.h
index 55e517130311..53106b9c89f1 100644
--- a/include/linux/brcmphy.h
+++ b/include/linux/brcmphy.h
@@ -40,6 +40,8 @@
#define PHY_ID_BCM_CYGNUS 0xae025200
+#define PHY_ID_BCM54210E 0x600d84a0
+
#define PHY_BCM_OUI_MASK 0xfffffc00
#define PHY_BCM_OUI_1 0x00206000
#define PHY_BCM_OUI_2 0x0143bc00
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net: phy: broadcom: Add support for the BCM54210E
2017-04-05 5:33 [PATCH] net: phy: broadcom: Add support for the BCM54210E Joel Stanley
@ 2017-04-05 5:47 ` Florian Fainelli
2017-04-05 5:48 ` Joel Stanley
0 siblings, 1 reply; 3+ messages in thread
From: Florian Fainelli @ 2017-04-05 5:47 UTC (permalink / raw)
To: Joel Stanley, David Miller; +Cc: Jon Mason, netdev, linux-kernel
On 04/04/2017 10:33 PM, Joel Stanley wrote:
> This device is a single-port RGMII 10/100/1000BASE-T PHY with EEE & WOL.
This looks good, although Rafal did beat you to it:
0fc9ae107669760c2a8658cb5b5876dbe525e08d ("net: phy: broadcom: add
support for BCM54210E")
--
Florian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: phy: broadcom: Add support for the BCM54210E
2017-04-05 5:47 ` Florian Fainelli
@ 2017-04-05 5:48 ` Joel Stanley
0 siblings, 0 replies; 3+ messages in thread
From: Joel Stanley @ 2017-04-05 5:48 UTC (permalink / raw)
To: Florian Fainelli
Cc: David Miller, Jon Mason, netdev, Linux Kernel Mailing List
On Wed, Apr 5, 2017 at 3:17 PM, Florian Fainelli <f.fainelli@gmail.com> wrote:
>
>
> On 04/04/2017 10:33 PM, Joel Stanley wrote:
>> This device is a single-port RGMII 10/100/1000BASE-T PHY with EEE & WOL.
>
> This looks good, although Rafal did beat you to it:
>
> 0fc9ae107669760c2a8658cb5b5876dbe525e08d ("net: phy: broadcom: add
> support for BCM54210E")
Even better! Thank you.
Cheers,
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-05 5:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-05 5:33 [PATCH] net: phy: broadcom: Add support for the BCM54210E Joel Stanley
2017-04-05 5:47 ` Florian Fainelli
2017-04-05 5:48 ` Joel Stanley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).