Commit 9d8c094
committed
fix(adrv937x): wire clkgen clkin1 to AD9528 ch1 to fix clock-rate mismatch
Diagnostic output from the JESD-status assert added in e4065c1
showed the real cause of the DMA timeout:
=== JESD204 RX status (sysfs) ===
Link is disabled
Measured Link Clock: 122.882 MHz
Reported Link Clock: 245.760 MHz
...
2× mismatch between measured and reported — the DT was telling the
driver ``clkin1 = 245.76 MHz`` (via the ``misc_clk_0`` fixed-clock
overlay) while the physical clock routed into the clkgen from the
AD9528 FMC output is actually 122.88 MHz. The driver couldn't
resolve the mismatch so it marked the link disabled, which stalls
the TPL DMA even though the Mykonos-side jesd204 FSM reaches
``opt_post_running_stage``.
Minimum targeted fix: swap the clkgen's ``clkin1`` reference
from ``misc_clk_0`` to ``<&clk0_ad9528 1>`` (the same wiring the
Kuiper reference DT uses) and drop the now-unused
``misc_clk_0`` overlay. Adxcvr is untouched — still routes
through the clkgen for both conv + div40. This is a clocks-only
change, no behavioural change on any other property, so it
avoids the kernel-hang class the full rewire (commit 607663b)
triggered.
Unit tests: 449 passed, 13 skipped, 4 xfailed. Hw CI will tell
us on the next bq leg whether "Link status: DATA" comes back and
the DMA starts streaming.1 parent e4065c1 commit 9d8c094
2 files changed
Lines changed: 30 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
526 | 542 | | |
527 | 543 | | |
| 544 | + | |
528 | 545 | | |
529 | 546 | | |
530 | 547 | | |
531 | | - | |
| 548 | + | |
| 549 | + | |
532 | 550 | | |
533 | 551 | | |
534 | 552 | | |
535 | 553 | | |
| 554 | + | |
536 | 555 | | |
537 | 556 | | |
538 | 557 | | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
| 558 | + | |
| 559 | + | |
549 | 560 | | |
550 | 561 | | |
551 | 562 | | |
| 563 | + | |
| 564 | + | |
552 | 565 | | |
553 | | - | |
554 | 566 | | |
555 | 567 | | |
556 | 568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 135 | | |
| 136 | + | |
141 | 137 | | |
142 | 138 | | |
143 | 139 | | |
144 | | - | |
| 140 | + | |
| 141 | + | |
145 | 142 | | |
146 | 143 | | |
| 144 | + | |
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
150 | | - | |
| 148 | + | |
| 149 | + | |
151 | 150 | | |
152 | 151 | | |
153 | 152 | | |
| |||
0 commit comments