mirror-linux/drivers/dpll
Ivan Vecera 9363b48376 dpll: zl3073x: Allow to configure phase offset averaging factor
The DPLL phase measurement block uses an exponential moving average with
a configurable averaging factor. Measurements are taken at approximately
40 Hz or at the reference frequency, whichever is lower.

Currently, factor=2 is used to prioritize fast response for dynamic
phase changes. For applications needing a stable, precise average phase
offset where rapid changes are unlikely, a higher factor is recommended.

Implement the .phase_offset_avg_factor_get/set callbacks to allow a user
to adjust this factor.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20250927084912.2343597-4-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-09-29 18:57:41 -07:00
..
zl3073x dpll: zl3073x: Allow to configure phase offset averaging factor 2025-09-29 18:57:41 -07:00
Kconfig dpll: Add basic Microchip ZL3073x support 2025-07-09 19:08:52 -07:00
Makefile dpll: Add basic Microchip ZL3073x support 2025-07-09 19:08:52 -07:00
dpll_core.c dpll: add reference sync get/set 2025-06-27 16:38:02 -07:00
dpll_core.h dpll: add reference sync get/set 2025-06-27 16:38:02 -07:00
dpll_netlink.c dpll: add phase_offset_avg_factor_get/set callback ops 2025-09-29 18:57:41 -07:00
dpll_netlink.h dpll: add reference sync get/set 2025-06-27 16:38:02 -07:00
dpll_nl.c dpll: add phase-offset-avg-factor device attribute to netlink spec 2025-09-29 18:57:41 -07:00
dpll_nl.h dpll: add reference-sync netlink attribute 2025-06-27 16:38:02 -07:00