Hi
based on ad9176 datasheet
in mode4 and single link mode, channel interplation should be 2x or 3x but in https://github.com/analogdevicesinc/linux/blob/2021_R2/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev10-ad9172-fmc-ebz-mode4.dts, adi,channel-interpolation = <4>; and there isn't adi,dual-link property this means this node is in single-link so channel-interpolation should be 2 or 3, why this is 4, and when i set this property to 3 for example jesd_status is:
and i attach my iio_info output in this situation,
Library version: 0.24 (git tag: accb7b5) Compiled with backends: local xml ip usb serial IIO context created with local backend. Backend version: 0.24 (git tag: accb7b5) Backend description string: Linux ad9172 5.10.0-xilinx-v2021.2 #1 SMP Tue Oct 10 13:10:16 UTC 2023 aarch64 IIO context has 2 attributes: local,kernel: 5.10.0-xilinx-v2021.2 uri: local: IIO context has 4 devices: iio:device0: ams 30 channels found: voltage6: vccpsintfpddr (input) 2 channel-specific attributes found: attr 0: raw value: 18078 attr 1: scale value: 0.045776367 voltage14: vccpsio2 (input) 2 channel-specific attributes found: attr 0: raw value: 19533 attr 1: scale value: 0.091552734 voltage16: psmgtravtt (input) 2 channel-specific attributes found: attr 0: raw value: 39253 attr 1: scale value: 0.045776367 voltage23: vccplintlp (input) 2 channel-specific attributes found: attr 0: raw value: 18070 attr 1: scale value: 0.045776367 voltage0: vcc_pspll0 (input) 2 channel-specific attributes found: attr 0: raw value: 26067 attr 1: scale value: 0.045776367 voltage22: vccbram (input) 2 channel-specific attributes found: attr 0: raw value: 18284 attr 1: scale value: 0.045776367 voltage26: vccams (input) 2 channel-specific attributes found: attr 0: raw value: 39191 attr 1: scale value: 0.015258789 voltage8: vccpsintfp (input) 2 channel-specific attributes found: attr 0: raw value: 18045 attr 1: scale value: 0.045776367 temp1: remote_temp (input) 3 channel-specific attributes found: attr 0: offset value: -36058 attr 1: raw value: 40906 attr 2: scale value: 7.771514892 voltage9: vccpsaux (input) 2 channel-specific attributes found: attr 0: raw value: 39284 attr 1: scale value: 0.045776367 voltage25: vccplaux (input) 2 channel-specific attributes found: attr 0: raw value: 39261 attr 1: scale value: 0.045776367 voltage18: vccint (input) 2 channel-specific attributes found: attr 0: raw value: 18470 attr 1: scale value: 0.045776367 voltage15: psmgtravcc (input) 2 channel-specific attributes found: attr 0: raw value: 18528 attr 1: scale value: 0.045776367 temp0: ps_temp (input) 3 channel-specific attributes found: attr 0: offset value: -36058 attr 1: raw value: 41236 attr 2: scale value: 7.771514892 voltage2: vccint (input) 2 channel-specific attributes found: attr 0: raw value: 18229 attr 1: scale value: 0.045776367 voltage5: vcc_psddrpll (input) 2 channel-specific attributes found: attr 0: raw value: 39262 attr 1: scale value: 0.045776367 voltage21: vccvrefn (input) 2 channel-specific attributes found: attr 0: raw value: 6 attr 1: scale value: 0.045776367 voltage7: vccpsintlp (input) 2 channel-specific attributes found: attr 0: raw value: 18064 attr 1: scale value: 0.045776367 voltage11: vccpsio3 (input) 2 channel-specific attributes found: attr 0: raw value: 35862 attr 1: scale value: 0.091552734 temp2: pl_temp (input) 3 channel-specific attributes found: attr 0: offset value: -36058 attr 1: raw value: 40566 attr 2: scale value: 7.771514892 voltage13: vccpsio1 (input) 2 channel-specific attributes found: attr 0: raw value: 19534 attr 1: scale value: 0.091552734 voltage3: vccbram (input) 2 channel-specific attributes found: attr 0: raw value: 18257 attr 1: scale value: 0.045776367 voltage4: vccaux (input) 2 channel-specific attributes found: attr 0: raw value: 39271 attr 1: scale value: 0.045776367 voltage12: vccpsio0 (input) 2 channel-specific attributes found: attr 0: raw value: 19528 attr 1: scale value: 0.091552734 voltage10: vccpsddr (input) 2 channel-specific attributes found: attr 0: raw value: 26328 attr 1: scale value: 0.045776367 voltage24: vccplintfp (input) 2 channel-specific attributes found: attr 0: raw value: 18080 attr 1: scale value: 0.045776367 voltage1: vcc_psbatt (input) 2 channel-specific attributes found: attr 0: raw value: 987 attr 1: scale value: 0.045776367 voltage19: vccaux (input) 2 channel-specific attributes found: attr 0: raw value: 39236 attr 1: scale value: 0.045776367 voltage17: vccams (input) 2 channel-specific attributes found: attr 0: raw value: 39299 attr 1: scale value: 0.015258789 voltage20: vccvrefp (input) 2 channel-specific attributes found: attr 0: raw value: 27293 attr 1: scale value: 0.045776367 1 device-specific attributes found: attr 0: sampling_frequency ERROR: Invalid argument (22) No trigger on this device iio:device1: hmc7044 4 channels found: altvoltage2: DAC_CLK (output) 2 channel-specific attributes found: attr 0: frequency value: 368640000 attr 1: phase value: 0.000000 altvoltage3: DAC_SYSREF (output) 2 channel-specific attributes found: attr 0: frequency value: 1920000 attr 1: phase value: 0.000000 altvoltage12: FPGA_CLK (output) 2 channel-specific attributes found: attr 0: frequency value: 368640000 attr 1: phase value: 0.000000 altvoltage13: FPGA_SYSREF (output) 2 channel-specific attributes found: attr 0: frequency value: 1920000 attr 1: phase value: 0.000000 7 device-specific attributes found: attr 0: mute_request value: 0 attr 1: reseed_request value: 0 attr 2: reset_dividers_request value: 0 attr 3: sleep_request value: 0 attr 4: sync_pin_mode value: disable attr 5: sync_pin_mode_available value: disable sync sysref sync_else_sysref attr 6: sysref_request value: 0 2 debug attributes found: debug attr 0: status ERROR: Input/output error (5) debug attr 1: direct_reg_access value: 0x0 No trigger on this device iio:device2: axi-ad9172-hpc (buffer capable) 15 channels found: voltage0_i: (output, index: 0, format: le:S16/16>>0) 2 channel-specific attributes found: attr 0: sampling_frequency value: 491520000 attr 1: scale value: 1.000000000 voltage0_q: (output, index: 1, format: le:S16/16>>0) 2 channel-specific attributes found: attr 0: sampling_frequency value: 491520000 attr 1: scale value: 1.000000000 voltage1_i: (output, index: 2, format: le:S16/16>>0) 2 channel-specific attributes found: attr 0: sampling_frequency value: 491520000 attr 1: scale value: 1.000000000 voltage1_q: (output, index: 3, format: le:S16/16>>0) 2 channel-specific attributes found: attr 0: sampling_frequency value: 491520000 attr 1: scale value: 1.000000000 voltage1: nco (output) 4 channel-specific attributes found: attr 0: enable value: 0 attr 1: frequency value: 0 attr 2: phase value: 0 attr 3: sampling_frequency value: 491520000 altvoltage3: TX1_Q_F2 (output) 5 channel-specific attributes found: attr 0: frequency value: 39998110 attr 1: phase value: 0 attr 2: raw value: 1 attr 3: sampling_frequency value: 491520000 attr 4: scale value: 0.250000 altvoltage5: TX2_I_F2 (output) 5 channel-specific attributes found: attr 0: frequency value: 39998110 attr 1: phase value: 90000 attr 2: raw value: 1 attr 3: sampling_frequency value: 491520000 attr 4: scale value: 0.250000 voltage6: nco (output) 4 channel-specific attributes found: attr 0: enable value: 0 attr 1: frequency value: 0 attr 2: phase value: 0 attr 3: sampling_frequency value: 491520000 altvoltage2: TX1_Q_F1 (output) 5 channel-specific attributes found: attr 0: frequency value: 39998110 attr 1: phase value: 0 attr 2: raw value: 1 attr 3: sampling_frequency value: 491520000 attr 4: scale value: 0.250000 altvoltage1: TX1_I_F2 (output) 5 channel-specific attributes found: attr 0: frequency value: 39998110 attr 1: phase value: 90000 attr 2: raw value: 1 attr 3: sampling_frequency value: 491520000 attr 4: scale value: 0.250000 altvoltage7: TX2_Q_F2 (output) 5 channel-specific attributes found: attr 0: frequency value: 39998110 attr 1: phase value: 0 attr 2: raw value: 1 attr 3: sampling_frequency value: 491520000 attr 4: scale value: 0.250000 altvoltage4: TX2_I_F1 (output) 5 channel-specific attributes found: attr 0: frequency value: 39998110 attr 1: phase value: 90000 attr 2: raw value: 1 attr 3: sampling_frequency value: 491520000 attr 4: scale value: 0.250000 altvoltage0: TX1_I_F1 (output) 5 channel-specific attributes found: attr 0: frequency value: 39998110 attr 1: phase value: 90000 attr 2: raw value: 1 attr 3: sampling_frequency value: 491520000 attr 4: scale value: 0.250000 altvoltage6: TX2_Q_F1 (output) 5 channel-specific attributes found: attr 0: frequency value: 39998110 attr 1: phase value: 0 attr 2: raw value: 1 attr 3: sampling_frequency value: 491520000 attr 4: scale value: 0.250000 voltage0: nco (output) 4 channel-specific attributes found: attr 0: enable value: 0 attr 1: frequency value: 0 attr 2: phase value: 0 attr 3: sampling_frequency value: 491520000 2 device-specific attributes found: attr 0: sync_start_enable value: disarm attr 1: sync_start_enable_available value: arm 2 buffer-specific attributes found: attr 0: data_available value: 0 attr 1: length_align_bytes value: 16 1 debug attributes found: debug attr 0: direct_reg_access value: 0x18 No trigger on this device iio_sysfs_trigger: 0 channels found: 2 device-specific attributes found: attr 0: add_trigger ERROR: Permission denied (13) attr 1: remove_trigger ERROR: Permission denied (13) No trigger on this device
when this property is 4 every thing is ok,