]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpll: zl3073x: add ref-sync pair support
authorIvan Vecera <ivecera@redhat.com>
Wed, 8 Apr 2026 10:27:16 +0000 (12:27 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 15:27:34 +0000 (08:27 -0700)
commit14f269ae699869ddaca7c29c9c6c52288e3bfb73
tree061c0104315caa2d1a03f4a4ce49971cea9a621e
parenta1a702090def20ab0fea13700128861b70d91bc5
dpll: zl3073x: add ref-sync pair support

Add support for ref-sync pair registration using the 'ref-sync-sources'
phandle property from device tree. A ref-sync pair consists of a clock
reference and a low-frequency sync signal where the DPLL locks to the
clock reference but phase-aligns to the sync reference.

The implementation:
- Stores fwnode handle in zl3073x_dpll_pin during pin registration
- Adds ref_sync_get/set callbacks to read and write the sync control
  mode and pair registers
- Validates ref-sync frequency constraints: sync signal must be 8 kHz
  or less, clock reference must be 1 kHz or more and higher than sync
- Excludes sync source from automatic reference selection by setting
  its priority to NONE on connect; on disconnect the priority is left
  as NONE and the user must explicitly make the pin selectable again
- Iterates ref-sync-sources phandles to register declared pairings
  via dpll_pin_ref_sync_pair_add()

Reviewed-by: Petr Oros <poros@redhat.com>
Reviewed-by: Prathosh Satish <Prathosh.Satish@microchip.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Link: https://patch.msgid.link/20260408102716.443099-6-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/dpll/zl3073x/dpll.c