]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan966x: Add support for PTP_PF_PEROUT
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 27 Apr 2022 06:51:26 +0000 (08:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Apr 2022 11:03:18 +0000 (12:03 +0100)
commit9eb1c744c289d0103a8bc3ed23f9427308d3822a
treef69cde2d3328a4ded8b0d7406692ffdccd539deb
parent2e77734fb7b66cdc619c0c41a463c853273a91cf
net: lan966x: Add support for PTP_PF_PEROUT

Lan966x has 8 PTP programmable pins, where the last pins is hardcoded to
be used by PHC0, which does the frame timestamping. All the rest of the
PTP pins can be shared between the PHCs and can have different functions
like perout or extts. For now add support for PTP_FS_PEROUT.
The HW is not able to support absolute start time but can use the nsec
for phase adjustment when generating PPS.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_main.h
drivers/net/ethernet/microchip/lan966x/lan966x_ptp.c