[PATCH net v6 6/8] ptp: ocp: correct the DCF output frequency

From: Ahmad Byagowi

Date: Thu Nov 26 2026 - 11:43:05 EST


From: ahmadexp <ahmadexp@xxxxxxxxx>

The output selector table uses 77000 Hz for DCF, while the input table and DPLL frequency list use 77500 Hz. Requests for the advertised DCF77 output frequency consequently fail, and reading the output reports an unsupported frequency.

Use 77500 Hz for the DCF output selector.

A coding assistant helped identify and verify the selector mismatch and prepare the regression test and changelog.

Fixes: 09eeb3aecc6c ("ptp_ocp: implement DPLL ops")

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@xxxxxxxxx>
Signed-off-by: Ahmad Byagowi <ahmadexp@xxxxxxxxx>
---
drivers/ptp/ptp_ocp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c
index 3457c351958d..6bfd5792768e 100644
--- a/drivers/ptp/ptp_ocp.c
+++ b/drivers/ptp/ptp_ocp.c
@@ -1373,7 +1373,7 @@ static const struct ocp_selector ptp_ocp_sma_out[] = {
{ .name = "GNSS1", .value = 0x0004, .frequency = 1 },
{ .name = "GNSS2", .value = 0x0008, .frequency = 1 },
{ .name = "IRIG", .value = 0x0010, .frequency = 10000 },
- { .name = "DCF", .value = 0x0020, .frequency = 77000 },
+ { .name = "DCF", .value = 0x0020, .frequency = 77500 },
{ .name = "GEN1", .value = 0x0040 },
{ .name = "GEN2", .value = 0x0080 },
{ .name = "GEN3", .value = 0x0100 },
--
2.54.0 (Apple Git-157)