mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/7] net: lan966x: Add PTP Hardward Clock support
@ 2022-01-31 10:01 Horatiu Vultur
  2022-01-31 10:01 ` [PATCH net-next v2 1/7] dt-bindings: net: lan966x: Extend with the ptp interrupt Horatiu Vultur
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Horatiu Vultur @ 2022-01-31 10:01 UTC (permalink / raw)
  To: netdev, devicetree, linux-kernel
  Cc: davem, kuba, robh+dt, UNGLinuxDriver, linux, richardcochran,
	f.fainelli, vivien.didelot, vladimir.oltean, andrew,
	Horatiu Vultur

Add support for PTP Hardware Clock (PHC) for lan966x. The switch supports
both PTP 1-step and 2-step modes.

v1->v2:
- fix commit messages
- reduce the scope of the lock ptp_lock inside the function
  lan966x_ptp_hwtstamp_set
- the rx timestamping is always enabled for all packages

Horatiu Vultur (7):
  dt-bindings: net: lan966x: Extend with the ptp interrupt
  net: lan966x: Add registers that are use for ptp functionality
  net: lan966x: Add support for ptp clocks
  net: lan966x: Implement SIOCSHWTSTAMP and SIOCGHWTSTAMP
  net: lan966x: Update extraction/injection for timestamping
  net: lan966x: Add support for ptp interrupts
  net: lan966x: Implement get_ts_info

 .../net/microchip,lan966x-switch.yaml         |   2 +
 .../net/ethernet/microchip/lan966x/Makefile   |   3 +-
 .../microchip/lan966x/lan966x_ethtool.c       |  34 +
 .../ethernet/microchip/lan966x/lan966x_main.c |  89 ++-
 .../ethernet/microchip/lan966x/lan966x_main.h |  51 ++
 .../ethernet/microchip/lan966x/lan966x_ptp.c  | 618 ++++++++++++++++++
 .../ethernet/microchip/lan966x/lan966x_regs.h | 103 +++
 7 files changed, 894 insertions(+), 6 deletions(-)
 create mode 100644 drivers/net/ethernet/microchip/lan966x/lan966x_ptp.c

-- 
2.33.0


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

end of thread, other threads:[~2022-02-01 14:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-31 10:01 [PATCH net-next v2 0/7] net: lan966x: Add PTP Hardward Clock support Horatiu Vultur
2022-01-31 10:01 ` [PATCH net-next v2 1/7] dt-bindings: net: lan966x: Extend with the ptp interrupt Horatiu Vultur
2022-01-31 10:01 ` [PATCH net-next v2 2/7] net: lan966x: Add registers that are use for ptp functionality Horatiu Vultur
2022-01-31 10:01 ` [PATCH net-next v2 3/7] net: lan966x: Add support for ptp clocks Horatiu Vultur
2022-01-31 10:01 ` [PATCH net-next v2 4/7] net: lan966x: Implement SIOCSHWTSTAMP and SIOCGHWTSTAMP Horatiu Vultur
2022-01-31 10:01 ` [PATCH net-next v2 5/7] net: lan966x: Update extraction/injection for timestamping Horatiu Vultur
2022-01-31 10:01 ` [PATCH net-next v2 6/7] net: lan966x: Add support for ptp interrupts Horatiu Vultur
2022-01-31 10:01 ` [PATCH net-next v2 7/7] net: lan966x: Implement get_ts_info Horatiu Vultur
2022-02-01 14:30 ` [PATCH net-next v2 0/7] net: lan966x: Add PTP Hardward Clock support patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome