All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] net: phy: adin: implement support for 1588 start-of-packet indication
@ 2020-01-16  9:14 Alexandru Ardelean
  2020-01-16  9:14 ` [PATCH 1/4] net: phy: adin: const-ify static data Alexandru Ardelean
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Alexandru Ardelean @ 2020-01-16  9:14 UTC (permalink / raw)
  To: netdev, devicetree, linux-kernel
  Cc: davem, andrew, f.fainelli, hkallweit1, Alexandru Ardelean

The ADIN1300 & ADIN1200 PHYs support detection of IEEE 1588 time stamp
packets. This mechanism can be used to signal the MAC via a pulse-signal
when the PHY detects such a packet.
This reduces the time when the MAC can check these packets and can improve
the accuracy of the PTP algorithm.

The PHYs support configurable delays for when the signaling happens to the
MAC. These delays would typically get adjusted using a userspace phytool to
identify the best value for the setup. That values can then be added in the
system configuration via device-tree or ACPI and read as an array of 3
elements.

For the RX delays, the units are in MII clock cycles, while for TX delays
the units are in 8 nano-second intervals.

The indication of either RX or TX must use one of 4 pins from the device:
LED_0, LINK_ST, GP_CLK and INT_N.

The driver will make sure that TX SOP & RX SOP will not use the same pin.

Alexandru Ardelean (4):
  net: phy: adin: const-ify static data
  net: phy: adin: rename struct adin_hw_stat -> adin_map
  net: phy: adin: implement support for 1588 start-of-packet indication
  dt-bindings: net: adin: document 1588 TX/RX SOP bindings

 .../devicetree/bindings/net/adi,adin.yaml     |  60 +++++
 drivers/net/phy/adin.c                        | 227 +++++++++++++++++-
 2 files changed, 274 insertions(+), 13 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-01-22  2:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16  9:14 [PATCH 0/4] net: phy: adin: implement support for 1588 start-of-packet indication Alexandru Ardelean
2020-01-16  9:14 ` [PATCH 1/4] net: phy: adin: const-ify static data Alexandru Ardelean
2020-01-16 13:30   ` Andrew Lunn
2020-01-16  9:14 ` [PATCH 2/4] net: phy: adin: rename struct adin_hw_stat -> adin_map Alexandru Ardelean
2020-01-16 13:38   ` Andrew Lunn
2020-01-16 13:57     ` Ardelean, Alexandru
2020-01-16  9:14 ` [PATCH 3/4] net: phy: adin: implement support for 1588 start-of-packet indication Alexandru Ardelean
2020-01-16 13:55   ` Andrew Lunn
2020-01-16 13:58     ` Ardelean, Alexandru
2020-01-16 14:02       ` Andrew Lunn
2020-01-16 14:03         ` Ardelean, Alexandru
2020-01-16  9:14 ` [PATCH 4/4] dt-bindings: net: adin: document 1588 TX/RX SOP bindings Alexandru Ardelean
2020-01-16 13:43   ` Andrew Lunn
2020-01-16 14:00     ` Ardelean, Alexandru
2020-01-22  2:05   ` Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.