-
Notifications
You must be signed in to change notification settings - Fork 897
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
base: main
Are you sure you want to change the base?
Conversation
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]>
drivers/iio/adc/ltc2387.c
Outdated
} else { | ||
ltc->lane_mode = TWO_LANES; | ||
|
||
return ltc2387_set_sampling_freq(ltc, 15 * MHz); | ||
return ltc2387_set_sampling_freq(ltc, 15 * MHz); | ||
} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Signed-off-by: Iulia Moldovan <[email protected]>
Added a separate device tree for ADAQ23878. The differences between this one and the CN0577 one, are:
@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]>
8ccc854
to
04fc46b
Compare
PR Description
PR Type
PR Checklist