public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v1 0/3] dpll: add ref-sync pins feature
@ 2025-04-15 17:51 Arkadiusz Kubalewski
  2025-04-15 17:51 ` [PATCH net-next v1 1/3] dpll: add reference-sync netlink attribute Arkadiusz Kubalewski
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Arkadiusz Kubalewski @ 2025-04-15 17:51 UTC (permalink / raw)
  To: donald.hunter, kuba, davem, edumazet, pabeni, horms,
	vadim.fedorenko, jiri, anthony.l.nguyen, przemyslaw.kitszel,
	andrew+netdev, aleksandr.loktionov
  Cc: netdev, linux-kernel, intel-wired-lan, linux-rdma,
	Arkadiusz Kubalewski

Allow to bind two pins and become a single source of clock signal, where
first of the pins is carring the base frequency and second provides SYNC
pulses.

Verify pins bind state/capabilities:
$ ./tools/net/ynl/pyynl/cli.py \
 --spec Documentation/netlink/specs/dpll.yaml \
 --do pin-get \
 --json '{"id":0}'
{'board-label': 'CVL-SDP22',
 'id': 0,
 [...]
 'reference-sync': [{'id': 1, 'state': 'disconnected'}],
 [...]}

Bind the pins by setting connected state between them:
$ ./tools/net/ynl/pyynl/cli.py \
 --spec Documentation/netlink/specs/dpll.yaml \
 --do pin-set \
 --json '{"id":0, "reference-sync":{"id":1, "state":"connected"}}'

Verify pins bind state:
$ ./tools/net/ynl/pyynl/cli.py \
 --spec Documentation/netlink/specs/dpll.yaml \
 --do pin-get \
 --json '{"id":0}'
{'board-label': 'CVL-SDP22',
 'id': 0,
 [...]
 'reference-sync': [{'id': 1, 'state': 'connected'}],
 [...]}

Unbind the pins by setting disconnected state between them:
$ ./tools/net/ynl/pyynl/cli.py \
 --spec Documentation/netlink/specs/dpll.yaml \
 --do pin-set \
 --json '{"id":0, "reference-sync":{"id":1, "state":"disconnected"}}'


Arkadiusz Kubalewski (3):
  dpll: add reference-sync netlink attribute
  dpll: add reference sync get/set
  ice: add ref-sync dpll pins

 Documentation/netlink/specs/dpll.yaml         |  19 ++
 drivers/dpll/dpll_core.c                      |  27 +++
 drivers/dpll/dpll_core.h                      |   1 +
 drivers/dpll/dpll_netlink.c                   | 188 ++++++++++++++++--
 drivers/dpll/dpll_nl.c                        |  10 +-
 drivers/dpll/dpll_nl.h                        |   1 +
 .../net/ethernet/intel/ice/ice_adminq_cmd.h   |   2 +
 drivers/net/ethernet/intel/ice/ice_dpll.c     | 186 +++++++++++++++++
 include/linux/dpll.h                          |  10 +
 include/uapi/linux/dpll.h                     |   1 +
 10 files changed, 425 insertions(+), 20 deletions(-)


base-commit: 420aabef3ab5fa743afb4d3d391f03ef0e777ca8
-- 
2.38.1


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

end of thread, other threads:[~2025-05-09 12:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-15 17:51 [PATCH net-next v1 0/3] dpll: add ref-sync pins feature Arkadiusz Kubalewski
2025-04-15 17:51 ` [PATCH net-next v1 1/3] dpll: add reference-sync netlink attribute Arkadiusz Kubalewski
2025-04-15 17:51 ` [PATCH net-next v1 2/3] dpll: add reference sync get/set Arkadiusz Kubalewski
2025-04-21 13:22   ` Simon Horman
2025-05-09 12:54     ` Kubalewski, Arkadiusz
2025-04-15 17:51 ` [PATCH net-next v1 3/3] ice: add ref-sync dpll pins Arkadiusz Kubalewski
2025-04-16  8:12 ` [PATCH net-next v1 0/3] dpll: add ref-sync pins feature Jiri Pirko
2025-04-16 13:01   ` Kubalewski, Arkadiusz

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