Skip to content

Conversation

IuliaCMoldovan
Copy link
Contributor

@IuliaCMoldovan IuliaCMoldovan commented Jul 23, 2025

PR Description

  • Added the device tree for ADAQ23875. It supports the ADAQ23876 as well, if the compatible is changed to "adaq23876"
  • Added the device tree for ADAQ23878. The difference between this and the CN0577 (again 18-bit), is the crystal oscillator, for ADAQ is 100MHz
  • Added one lane and two lanes (default) support to the device trees. To change to one lane mode, an attribute needs to be specified "adi,use-one-lane;"
  • Tested in hardware with all combinations of one lane and two lanes, on all ADAQ devices, with the HDL changes from this PR projects/cn0577: Add build parameters, update IP GUI hdl#1850

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly (if there is the case)

Make two lanes the default mode.

Signed-off-by: Iulia Moldovan <[email protected]>
The default configuration is still two-lane mode.
To change to one-lane mode, the "adi,use-one-lane;" attribute needs to
be specified.

Signed-off-by: Iulia Moldovan <[email protected]>
- Support for ADAQ23876 is possible if the compatible in this dts is
  changed to "adaq23876".
- Support for ADAQ23878 can be found at
  arch/arm/boot/dts/xilinx/zynq-zed-adv7511-cn0577.dts, by changing
  the compatible to "adaq23878".

The default configuration is two-lane mode (without specifying any
attribute). To change to one-lane mode, the "adi,use-one-lane;" attribute
needs to be specified.

Signed-off-by: Iulia Moldovan <[email protected]>
Comment on lines 228 to 231
} else {
ltc->lane_mode = TWO_LANES;

return ltc2387_set_sampling_freq(ltc, 15 * MHz);
return ltc2387_set_sampling_freq(ltc, 15 * MHz);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this else?
After an if return, you don't need it and reviewers upstream will ask for this change

Copy link
Contributor Author

@IuliaCMoldovan IuliaCMoldovan Aug 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in a separate commit. Will squash it after review

@IuliaCMoldovan
Copy link
Contributor Author

Added a separate device tree for ADAQ23878. The differences between this one and the CN0577 one, are:

  • the crystal oscillator frequency (100MHz for ADAQ devices, and 120MHz for CN0577)
  • the compatible
  • the label names for GPIOs and other attributes

@gastmaier, I'm not sure if this is the right approach; or instead, should I include the CN0577 dts into the ADAQ23878 and just overwrite the oscillator frequency and the compatible? And leave the labels with "LTC2387"? This way there will be less code.

Will squash after review.

Signed-off-by: Iulia Moldovan <[email protected]>
@IuliaCMoldovan IuliaCMoldovan marked this pull request as draft August 26, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants