Skip to content

Add device tree for ADAQ23875. Add one lane support for CN0577 #2860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

IuliaCMoldovan
Copy link
Contributor

PR Description

  • Added the device tree for ADAQ23875. It supports the ADAQ23876 as well, if the compatible is changed to "adaq23876"
  • The CN0577 device tree supports the ADAQ23878 if the compatible is changed to "adaq23878"
  • Added one lane and two lanes (default) support to both 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 and remove IP GUI params 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

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