Skip to content

Commit 39db6be

Browse files
jlemonkuba-moo
authored andcommitted
net: phy: broadcom: Add PTP support for some Broadcom PHYs.
This adds PTP support for BCM54210E Broadcom PHYs, in particular, the BCM54213PE, as used in the Rasperry PI CM4. It has only been tested on that hardware. Signed-off-by: Jonathan Lemon <[email protected]> Acked-by: Richard Cochran <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 15acf89 commit 39db6be

File tree

3 files changed

+724
-0
lines changed

3 files changed

+724
-0
lines changed

drivers/net/phy/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ config AX88796B_PHY
104104
config BROADCOM_PHY
105105
tristate "Broadcom 54XX PHYs"
106106
select BCM_NET_PHYLIB
107+
select BCM_NET_PHYPTP if NETWORK_PHY_TIMESTAMPING
108+
depends on PTP_1588_CLOCK_OPTIONAL
107109
help
108110
Currently supports the BCM5411, BCM5421, BCM5461, BCM54616S, BCM5464,
109111
BCM5481, BCM54810 and BCM5482 PHYs.
@@ -160,6 +162,9 @@ config BCM_CYGNUS_PHY
160162
config BCM_NET_PHYLIB
161163
tristate
162164

165+
config BCM_NET_PHYPTP
166+
tristate
167+
163168
config CICADA_PHY
164169
tristate "Cicada PHYs"
165170
help

drivers/net/phy/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ obj-$(CONFIG_BCM84881_PHY) += bcm84881.o
4747
obj-$(CONFIG_BCM87XX_PHY) += bcm87xx.o
4848
obj-$(CONFIG_BCM_CYGNUS_PHY) += bcm-cygnus.o
4949
obj-$(CONFIG_BCM_NET_PHYLIB) += bcm-phy-lib.o
50+
obj-$(CONFIG_BCM_NET_PHYPTP) += bcm-phy-ptp.o
5051
obj-$(CONFIG_BROADCOM_PHY) += broadcom.o
5152
obj-$(CONFIG_CICADA_PHY) += cicada.o
5253
obj-$(CONFIG_CORTINA_PHY) += cortina.o

0 commit comments

Comments
 (0)