]> git.ipfire.org Git - thirdparty/linux.git/commit
dpll: add phase-adjust-gran pin attribute
authorIvan Vecera <ivecera@redhat.com>
Wed, 29 Oct 2025 15:32:06 +0000 (16:32 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Nov 2025 00:59:17 +0000 (17:59 -0700)
commit30176bf7c871681df506f3165ffe76ec462db991
treeb802ed743d798d31d23a1e756106cbbb9a3b9388
parent29f7ae9eba41fa5a14f68daf46577a311bfe7541
dpll: add phase-adjust-gran pin attribute

Phase-adjust values are currently limited by a min-max range. Some
hardware requires, for certain pin types, that values be multiples of
a specific granularity, as in the zl3073x driver.

Add a `phase-adjust-gran` pin attribute and an appropriate field in
dpll_pin_properties. If set by the driver, use its value to validate
user-provided phase-adjust values.

Reviewed-by: Michal Schmidt <mschmidt@redhat.com>
Reviewed-by: Petr Oros <poros@redhat.com>
Tested-by: Prathosh Satish <Prathosh.Satish@microchip.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Link: https://patch.msgid.link/20251029153207.178448-2-ivecera@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/driver-api/dpll.rst
Documentation/netlink/specs/dpll.yaml
drivers/dpll/dpll_netlink.c
include/linux/dpll.h
include/uapi/linux/dpll.h