Skip to content
Commit 7bfe91ef authored by Jonathan Lemon's avatar Jonathan Lemon Committed by Jakub Kicinski
Browse files

net: phy: Add support for 1PPS out and external timestamps



The perout function is used to generate a 1PPS signal, synchronized
to the PHC.  This is accomplished by a using the hardware oneshot
functionality, which is reset by a timer.

The external timestamp function is set up for a 1PPS input pulse,
and uses a timer to poll for temestamps.

Both functions use the SYNC_OUT/SYNC_IN1 pin, so cannot run
simultaneously.

Co-developed-by: default avatarLasse Johnsen <l@ssejohnsen.me>
Signed-off-by: default avatarLasse Johnsen <l@ssejohnsen.me>
Signed-off-by: default avatarJonathan Lemon <jonathan.lemon@gmail.com>
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 39db6be7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment