[PATCH net-next v2 0/2] dpll: Add support for phase adjustment granularity

Ivan Vecera posted 2 patches 3 months, 1 week ago
Documentation/driver-api/dpll.rst     | 36 +++++++++--------
Documentation/netlink/specs/dpll.yaml |  7 ++++
drivers/dpll/dpll_netlink.c           | 12 +++++-
drivers/dpll/zl3073x/dpll.c           | 58 +++++++--------------------
drivers/dpll/zl3073x/prop.c           | 11 +++++
include/linux/dpll.h                  |  1 +
include/uapi/linux/dpll.h             |  1 +
7 files changed, 65 insertions(+), 61 deletions(-)
[PATCH net-next v2 0/2] dpll: Add support for phase adjustment granularity
Posted by Ivan Vecera 3 months, 1 week ago
Phase-adjust values are currently limited only 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.

Patch 1: Adds 'phase-adjust-gran' pin attribute and an appropriate
         handling
Patch 2: Adds a support for this attribute into zl3073x driver

Changes:
v2:
* changed type for the attribute to u32 and added explicit cast to s32 during
  remainder computation (per Jiri's request) 

Ivan Vecera (2):
  dpll: add phase-adjust-gran pin attribute
  dpll: zl3073x: Specify phase adjustment granularity for pins

 Documentation/driver-api/dpll.rst     | 36 +++++++++--------
 Documentation/netlink/specs/dpll.yaml |  7 ++++
 drivers/dpll/dpll_netlink.c           | 12 +++++-
 drivers/dpll/zl3073x/dpll.c           | 58 +++++++--------------------
 drivers/dpll/zl3073x/prop.c           | 11 +++++
 include/linux/dpll.h                  |  1 +
 include/uapi/linux/dpll.h             |  1 +
 7 files changed, 65 insertions(+), 61 deletions(-)

-- 
2.51.0