net: phy: BCM54210PE does not support PTP
authorPhil Elwell <phil@raspberrypi.com>
Sat, 5 Nov 2022 11:46:08 +0000 (11:46 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:25 +0000 (11:33 +0000)
commite07861e27f04e6bf7bc68e68c1967a89b7ba478c
treeb6194fb91b407c23158a8e075d83f608184e591c
parentfa2fbf57b61fba4a9464941856b9b787efb8d21d
net: phy: BCM54210PE does not support PTP

BCM54213PE is an Ethernet PHY that supports PTP hardware timestamping.
BCM54210PW ia another Ethernet PHY, but one without PTP support.
Unfortunately the two PHYs return the same ID when queried, so some
extra information is required to determine whether the PHY is PTP-
capable.

There are two Raspberry Pi products that use these PHYs - Pi 4B and
CM4 - and fortunately they use different PHY addresses, so use that as
a differentiator. Choose to treat a PHY with the same ID but another
address as a BCM54210PE, which seems more common.

See: https://github.com/raspberrypi/linux/issues/5104

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/net/phy/bcm-phy-ptp.c