dpll: phase unit display and frequency monitoring
Status from this message: This series was applied to iproute2/iproute2-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 0 repliesApplied
- v22 patches 2 repliesSuperseded
- v12 patches 4 repliesSuperseded
Changes in v3 from the cover letter
- replaced DPLL_PR_PHASE_OFFSET and DPLL_PR_MEASURED_FREQUENCY macros with dpll_pr_phase_offset() and dpll_pr_measured_frequency() functions
- added frequency monitor status to device show man page output list
- simplified device set synopsis in man page
- removed stray blank line in patch 1
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dpll: add ps unit to phase-related pin attributesdpll/ | +25 | 0 replies | |
| 2/2 | dpll: add frequency monitoring supportbash-completion/ dpll/ man/ | +71 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Petr Oros |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH iproute2-next v3 0/2] dpll: phase unit display and frequency monitoring
This series improves dpll pin output formatting and adds support for the frequency monitoring feature.
Patch 1 adds picosecond unit to phase-adjust-min, phase-adjust-max and phase-adjust attributes. It also introduces dpll_pr_phase_offset() helper that properly formats phase-offset as fractional picoseconds by dividing the raw kernel value by DPLL_PHASE_OFFSET_DIVIDER.
Patch 2 adds support for the new frequency monitoring feature including the DPLL_A_FREQUENCY_MONITOR device attribute and DPLL_A_PIN_MEASURED_FREQUENCY pin attribute. The measured frequency is displayed as fractional Hz using dpll_pr_measured_frequency() helper since the kernel reports the value in millihertz. It also refactors phase-offset-monitor parsing into a shared helper.
Tested on EDS2 development board with zl3073x DPLL:
# dpll pin show package-label REF0P
pin id 196:
module-name: zl3073x
clock-id: 13709406750444215013
board-label: SyncE IN M1 CLK1
package-label: REF0P
type: synce-eth-port
frequency: 125000000 Hz
measured-frequency: 124999326.000 Hz
frequency-supported:
2500000 Hz
25000000 Hz
125000000 Hz
capabilities: 0x6 state-can-change priority-can-change
phase-adjust-min: -2147483648 ps
phase-adjust-max: 2147483647 ps
phase-adjust: 0 ps
parent-device:
id 14 direction input prio 10 state selectable phase-offset 0.000 ps
id 15 direction input prio 0 state connected phase-offset 323.000 psChanges:
v3:
- replaced DPLL_PR_PHASE_OFFSET and DPLL_PR_MEASURED_FREQUENCY macros with dpll_pr_phase_offset() and dpll_pr_measured_frequency() functions
- added frequency monitor status to device show man page output list
- simplified device set synopsis in man page
- removed stray blank line in patch 1
v2:
- fixed very long line in the man page
Ivan Vecera (2):
dpll: add ps unit to phase-related pin attributes
dpll: add frequency monitoring support
bash-completion/dpll | 4 +- dpll/dpll.c | 93 +++++++++++++++++++++++++++++++++++--------- man/man8/dpll.8 | 21 +++++++++- 3 files changed, 96 insertions(+), 22 deletions(-)
Signature · 1 line
2.53.0