-
Notifications
You must be signed in to change notification settings - Fork 897
Madura add orx #2923
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?
Madura add orx #2923
Conversation
ca70188
to
31ab3de
Compare
V2
|
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.
Hi,
So the first patch needs splitting... Do not mix driver code with devicetree and the config change should also be in a separate patch. Then, the second patch seems to be relevant for the whole "Add ORx support" so to me it would only be one patch. So to sum up, I think this should be:
- "iio: adc: adrv902x: Make JESD ops static"
- Add ORx support in DT;
- Add defconfig change;
- Add ORx support in the driver:
Make all JESD ops static. Signed-off-by: George Mois <[email protected]>
31ab3de
to
4ea4710
Compare
V3
|
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.
Just some minor stuff that might no need a re-spin
* | ||
* Copyright (C) 2020-2025 Analog Devices Inc. | ||
*/ | ||
#include "vcu118_adrv9025.dts" |
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.
Ah I failed to realize this... Being nitpicky, the microblaze DT should be in a separate patch. Anyways, just a hint for the future. No need to change it if there isn't a stronger reason for you to re-spin.
@@ -0,0 +1,3030 @@ | |||
{ | |||
"dataInterface": { |
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.
The firmware should be in a different patch. Different change and different directory :)
@@ -74,7 +74,7 @@ CONFIG_NET_DSA=y | |||
CONFIG_PCI=y | |||
CONFIG_DEVTMPFS=y | |||
CONFIG_DEVTMPFS_MOUNT=y | |||
CONFIG_EXTRA_FIRMWARE="ad9467_intbypass_ad9517.stp ad9517.stp Mykonos_M3.bin TaliseStream.bin TaliseTDDArmFirmware.bin TaliseTxArmFirmware.bin TaliseRxArmFirmware.bin ADRV9025_DPDCORE_FW.bin ADRV9025_FW.bin ADRV9025_RxGainTable.csv ADRV9025_TxAttenTable.csv stream_image_6E3E00EFB74FE7D465FA88A171B81B8F.bin ActiveUseCase.profile ActiveUtilInit.profile" | |||
CONFIG_EXTRA_FIRMWARE="ad9467_intbypass_ad9517.stp ad9517.stp Mykonos_M3.bin TaliseStream.bin TaliseTDDArmFirmware.bin TaliseTxArmFirmware.bin TaliseRxArmFirmware.bin ADRV9025_DPDCORE_FW.bin ADRV9025_FW.bin ADRV9025_RxGainTable.csv ADRV9025_TxAttenTable.csv stream_image_6E3E00EFB74FE7D465FA88A171B81B8F.bin ActiveUseCase.profile ActiveUtilInit.profile ActiveUseCase_NLS.profile" |
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.
It would also be a different patch
case CHAN_RX1: | ||
case CHAN_RX2: | ||
case CHAN_RX3: | ||
case CHAN_RX4: |
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.
case CHAN_RX1 ... CHAN_RX4
? If it's sequential, it should be fine
drivers/iio/adc/adrv902x/adrv9025.c
Outdated
@@ -1724,8 +1821,18 @@ static int adrv9025_clk_register(struct adrv9025_rf_phy *phy, const char *name, | |||
|
|||
switch (source) { | |||
case RX_SAMPL_CLK: | |||
adrv9025_RxLinkSamplingRateFind(phy->madDevice, &phy->deviceInitStruct, | |||
ADI_ADRV9025_FRAMER_0, | |||
&rate); |
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.
Is it a void function?
drivers/iio/adc/adrv902x/adrv9025.c
Outdated
case OBS_SAMPL_CLK: | ||
adrv9025_RxLinkSamplingRateFind(phy->madDevice, &phy->deviceInitStruct, | ||
ADI_ADRV9025_FRAMER_1, | ||
&rate); |
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.
same question, do we need to check return values?
Add ORx support in DT for ZCU102. Signed-off-by: George Mois <[email protected]>
Add ORx support in DT for VCU118. Signed-off-by: George Mois <[email protected]>
Add non-link sharing profile for ADRV9025. Signed-off-by: George Mois <[email protected]>
Update defconfig for ZynqMP. Signed-off-by: George Mois <[email protected]>
Update defconfig for MicroBlaze. Signed-off-by: George Mois <[email protected]>
Add ORx support in the ADRV902X driver. Signed-off-by: George Mois <[email protected]>
4ea4710
to
ccc2d9a
Compare
V4
|
PR Description
Add observation inputs for ADRV902X.
PR Type
PR Checklist