Post Go back to editing

Issues while trying to write/read using DMA to/from PS DDR

Category: Software

HI,
I am facing some issues while trying to write/read using DMA to/from PS DDR . We are testing this scenario using ADI IIO Oscilloscope . On debugging with ILA , everything seems to be fine.

Here I am using AD9361 IP core with ZCU102 Evaluation board

Ad9361 ip core read /write using dma. 



Edited the title
[edited by: iulia at 6:55 AM (GMT -4) on 21 Mar 2024]

Thread Notes

  • Hi  ,

    This is a matter for the FPGA Reference Designs forum. Please leave it in the community where I moved it.

    Best regards,
    Iulia

  • Hi lulia ,

    Sure , you can delete the duplicate thread .

  • Hello,

    Can you give us more detalis regarding the system and what you are trying to do ? Are you using Linux or No-OS ?

    Regards,

    Adrian

  • Hi,

    if you are using Linux on the Zynq PS, can you access it with ssh and debug the IIO device (ad9361) with iio_info, iio_attr ? The IIO-Oscilloscope is a GUI for libIIO, and you should be able to write/read the channels using the cli.

    > Here I am using AD9361 IP core with ZCU102 Evaluation board
    What is the exact reference design that you are using? Is it a custom design you elaborated?

  • Hi,

    Here we are using Linux and the results while debugging ad9361 with iio_info and iio_attr is shared below . We are not able to see any notable difference. 

    We have already checked with the XSA  taken from Kuiper Linux  (2022.2 directory) .  Took build and tested the same scenario with IIO oscilloscope, we are getting a proper output. 

    >What is the exact reference design that you are using? Is it a custom design you elaborated?

    I am using this same design as that of the figure. 

    iio_info version: 0.25 (git tag:c36770cc)
    Libiio version: 0.25 (git tag: c36770c) backends: local xml ip usb serial
    IIO context created with local backend.
    Backend version: 0.25 (git tag: c36770c)
    Backend description string: Linux slvu 5.15.36-xilinx-v2022.2 #1 SMP Mon Mar 11 15:37:36 UTC 2024 aarch64
    IIO context has 2 attributes:
    	local,kernel: 5.15.36-xilinx-v2022.2
    	uri: local:
    IIO context has 26 devices:
    	hwmon0: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 7
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1150000
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 846
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 1363
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon1: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 2
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 250000
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 848
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 301
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon10: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 562500
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 846
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 685
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 2000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon11: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 37500
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 848
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 38
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon12: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 350000
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1795
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 192
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon13: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 25000
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1200
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 22
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon14: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 125000
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 3300
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 35
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon15: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 125000
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1796
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 74
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon16: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 900
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 11
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon17: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 25000
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1199
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 17
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon18: max20751
    		5 channels found:
    			in2:  (input)
    			8 channel-specific attributes found:
    				attr  0: input value: 900
    				attr  1: label value: vout1
    				attr  2: lcrit value: 765
    				attr  3: lcrit_alarm value: 0
    				attr  4: max value: 1000
    				attr  5: max_alarm value: 0
    				attr  6: min value: 855
    				attr  7: min_alarm value: 0
    			curr1:  (input)
    			4 channel-specific attributes found:
    				attr  0: input value: 0
    				attr  1: label value: iout1
    				attr  2: max value: 511500
    				attr  3: max_alarm value: 0
    			in1:  (input)
    			7 channel-specific attributes found:
    				attr  0: alarm value: 0
    				attr  1: crit value: 15000
    				attr  2: input value: 11875
    				attr  3: label value: vin
    				attr  4: lcrit value: 4687
    				attr  5: max value: 14906
    				attr  6: min value: 4750
    			power1:  (input)
    			2 channel-specific attributes found:
    				attr  0: input value: 0
    				attr  1: label value: pout1
    			temp1:  (input)
    			7 channel-specific attributes found:
    				attr  0: crit value: 133000
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 46000
    				attr  3: max value: 130000
    				attr  4: max_alarm value: 0
    				attr  5: min value: -40000
    				attr  6: min_alarm value: 0
    		No trigger on this device
    	hwmon19: max20751
    		5 channels found:
    			in2:  (input)
    			8 channel-specific attributes found:
    				attr  0: input value: 1200
    				attr  1: label value: vout1
    				attr  2: lcrit value: 1100
    				attr  3: lcrit_alarm value: 0
    				attr  4: max value: 1375
    				attr  5: max_alarm value: 0
    				attr  6: min value: 1140
    				attr  7: min_alarm value: 0
    			curr1:  (input)
    			4 channel-specific attributes found:
    				attr  0: input value: 0
    				attr  1: label value: iout1
    				attr  2: max value: 511500
    				attr  3: max_alarm value: 0
    			in1:  (input)
    			7 channel-specific attributes found:
    				attr  0: alarm value: 0
    				attr  1: crit value: 15000
    				attr  2: input value: 11843
    				attr  3: label value: vin
    				attr  4: lcrit value: 4687
    				attr  5: max value: 14906
    				attr  6: min value: 4750
    			power1:  (input)
    			2 channel-specific attributes found:
    				attr  0: input value: 0
    				attr  1: label value: pout1
    			temp1:  (input)
    			7 channel-specific attributes found:
    				attr  0: crit value: 133000
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 42000
    				attr  3: max value: 130000
    				attr  4: max_alarm value: 0
    				attr  5: min value: -40000
    				attr  6: min_alarm value: 0
    		No trigger on this device
    	hwmon2: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 25000
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1816
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 11
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon3: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 37500
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1195
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 34
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon4: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 50000
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 848
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 61
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon5: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 25000
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1815
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 11
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon6: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 187500
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1189
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 154
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon7: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1795
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 4
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon8: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1809
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 1
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	hwmon9: ina226
    		4 channels found:
    			in0:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 0
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			power1:  (input)
    			3 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 37500
    			in1:  (input)
    			5 channel-specific attributes found:
    				attr  0: crit value: 0
    				attr  1: crit_alarm value: 0
    				attr  2: input value: 1814
    				attr  3: lcrit value: 0
    				attr  4: lcrit_alarm value: 0
    			curr1:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 24
    		2 device-specific attributes found:
    				attr  0: shunt_resistor value: 5000
    				attr  1: update_interval value: 35
    		No trigger on this device
    	iio:device0: ams
    		30 channels found:
    			voltage6: vccpsintfpddr (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccpsintfpddr
    				attr  1: raw value: 18470
    				attr  2: scale value: 0.045776367
    			voltage18: vccint (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccint
    				attr  1: raw value: 18473
    				attr  2: scale value: 0.045776367
    			voltage14: vccpsio2 (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccpsio2
    				attr  1: raw value: 19496
    				attr  2: scale value: 0.091552734
    			voltage16: psmgtravtt (input)
    			3 channel-specific attributes found:
    				attr  0: label value: psmgtravtt
    				attr  1: raw value: 39735
    				attr  2: scale value: 0.045776367
    			voltage23: vccplintlp (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccplintlp
    				attr  1: raw value: 18492
    				attr  2: scale value: 0.045776367
    			voltage0: vcc_pspll0 (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vcc_pspll0
    				attr  1: raw value: 26115
    				attr  2: scale value: 0.045776367
    			voltage8: vccpsintfp (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccpsintfp
    				attr  1: raw value: 18460
    				attr  2: scale value: 0.045776367
    			voltage22: vccbram (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccbram
    				attr  1: raw value: 18534
    				attr  2: scale value: 0.045776367
    			voltage26: vccams (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccams
    				attr  1: raw value: 39113
    				attr  2: scale value: 0.015258789
    			temp1: remote_temp (input)
    			4 channel-specific attributes found:
    				attr  0: label value: remote_temp
    				attr  1: offset value: -36058
    				attr  2: raw value: 40466
    				attr  3: scale value: 7.771514892
    			voltage9: vccpsaux (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccpsaux
    				attr  1: raw value: 39702
    				attr  2: scale value: 0.045776367
    			voltage25: vccplaux (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccplaux
    				attr  1: raw value: 39686
    				attr  2: scale value: 0.045776367
    			voltage15: psmgtravcc (input)
    			3 channel-specific attributes found:
    				attr  0: label value: psmgtravcc
    				attr  1: raw value: 18536
    				attr  2: scale value: 0.045776367
    			temp0: ps_temp (input)
    			4 channel-specific attributes found:
    				attr  0: label value: ps_temp
    				attr  1: offset value: -36058
    				attr  2: raw value: 40594
    				attr  3: scale value: 7.771514892
    			voltage21: vccvrefn (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccvrefn
    				attr  1: raw value: 43
    				attr  2: scale value: 0.045776367
    			voltage2: vccint (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccint
    				attr  1: raw value: 18528
    				attr  2: scale value: 0.045776367
    			voltage5: vcc_psddrpll (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vcc_psddrpll
    				attr  1: raw value: 39594
    				attr  2: scale value: 0.045776367
    			voltage7: vccpsintlp (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccpsintlp
    				attr  1: raw value: 18516
    				attr  2: scale value: 0.045776367
    			voltage11: vccpsio3 (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccpsio3
    				attr  1: raw value: 19641
    				attr  2: scale value: 0.091552734
    			temp2: pl_temp (input)
    			4 channel-specific attributes found:
    				attr  0: label value: pl_temp
    				attr  1: offset value: -36058
    				attr  2: raw value: 40296
    				attr  3: scale value: 7.771514892
    			voltage13: vccpsio1 (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccpsio1
    				attr  1: raw value: 19469
    				attr  2: scale value: 0.091552734
    			voltage3: vccbram (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccbram
    				attr  1: raw value: 18566
    				attr  2: scale value: 0.045776367
    			voltage4: vccaux (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccaux
    				attr  1: raw value: 39259
    				attr  2: scale value: 0.045776367
    			voltage12: vccpsio0 (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccpsio0
    				attr  1: raw value: 19502
    				attr  2: scale value: 0.091552734
    			voltage24: vccplintfp (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccplintfp
    				attr  1: raw value: 18444
    				attr  2: scale value: 0.045776367
    			voltage10: vccpsddr (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccpsddr
    				attr  1: raw value: 25993
    				attr  2: scale value: 0.045776367
    			voltage1: vcc_psbatt (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vcc_psbatt
    				attr  1: raw value: 32350
    				attr  2: scale value: 0.045776367
    			voltage19: vccaux (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccaux
    				attr  1: raw value: 39209
    				attr  2: scale value: 0.045776367
    			voltage17: vccams (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccams
    				attr  1: raw value: 39664
    				attr  2: scale value: 0.015258789
    			voltage20: vccvrefp (input)
    			3 channel-specific attributes found:
    				attr  0: label value: vccvrefp
    				attr  1: raw value: 27348
    				attr  2: scale value: 0.045776367
    		1 device-specific attributes found:
    				attr  0: sampling_frequency ERROR: Invalid argument (22)
    		No trigger on this device
    	iio:device1: ad9361-phy
    		11 channels found:
    			altvoltage0: RX_LO (output)
    			9 channel-specific attributes found:
    				attr  0: external value: 0
    				attr  1: fastlock_load value: 0
    				attr  2: fastlock_recall ERROR: Invalid argument (22)
    				attr  3: fastlock_save value: 0 191,207,175,175,173,143,175,175,175,89,235,207,175,175,175,238
    				attr  4: fastlock_store value: 0
    				attr  5: frequency value: 2400000000
    				attr  6: frequency_available value: [70000000 1 6000000000]
    				attr  7: label value: RX_LO
    				attr  8: powerdown value: 0
    			voltage1:  (output)
    			10 channel-specific attributes found:
    				attr  0: filter_fir_en value: 0
    				attr  1: hardwaregain value: -10.000000 dB
    				attr  2: hardwaregain_available value: [-89.750000]
    				attr  3: rf_bandwidth value: 18000000
    				attr  4: rf_bandwidth_available value: [200000 1 40000000]
    				attr  5: rf_port_select value: A
    				attr  6: rf_port_select_available value: A B
    				attr  7: rssi value: 0.00 dB
    				attr  8: sampling_frequency value: 30720000
    				attr  9: sampling_frequency_available value: [2083333 1 61440000]
    			voltage2:  (input)
    			13 channel-specific attributes found:
    				attr  0: bb_dc_offset_tracking_en value: 1
    				attr  1: filter_fir_en value: 0
    				attr  2: gain_control_mode_available value: manual fast_attack slow_attack hybrid
    				attr  3: offset value: 57
    				attr  4: quadrature_tracking_en value: 1
    				attr  5: raw value: 781
    				attr  6: rf_bandwidth value: 18000000
    				attr  7: rf_bandwidth_available value: [200000 1 56000000]
    				attr  8: rf_dc_offset_tracking_en value: 1
    				attr  9: rf_port_select_available value: A_BALANCED B_BALANCED C_BALANCED A_N A_P B_N B_P C_N C_P TX_MONITOR1 TX_MONITOR2 TX_MONITOR1_2
    				attr 10: sampling_frequency value: 30720000
    				attr 11: sampling_frequency_available value: [2083333 1 61440000]
    				attr 12: scale value: 0.305250
    			voltage2:  (output)
    			8 channel-specific attributes found:
    				attr  0: filter_fir_en value: 0
    				attr  1: raw value: 306
    				attr  2: rf_bandwidth value: 18000000
    				attr  3: rf_bandwidth_available value: [200000 1 40000000]
    				attr  4: rf_port_select_available value: A B
    				attr  5: sampling_frequency value: 30720000
    				attr  6: sampling_frequency_available value: [2083333 1 61440000]
    				attr  7: scale value: 1.000000
    			altvoltage1: TX_LO (output)
    			9 channel-specific attributes found:
    				attr  0: external value: 0
    				attr  1: fastlock_load value: 0
    				attr  2: fastlock_recall ERROR: Invalid argument (22)
    				attr  3: fastlock_save value: 0 121,97,113,245,243,117,115,117,255,169,249,255,108,191,105,81
    				attr  4: fastlock_store value: 0
    				attr  5: frequency value: 2450000000
    				attr  6: frequency_available value: [46875001 1 6000000000]
    				attr  7: label value: TX_LO
    				attr  8: powerdown value: 0
    			voltage1:  (input)
    			15 channel-specific attributes found:
    				attr  0: bb_dc_offset_tracking_en value: 1
    				attr  1: filter_fir_en value: 0
    				attr  2: gain_control_mode value: slow_attack
    				attr  3: gain_control_mode_available value: manual fast_attack slow_attack hybrid
    				attr  4: hardwaregain value: 71.000000 dB
    				attr  5: hardwaregain_available value: [-3 1 71]
    				attr  6: quadrature_tracking_en value: 1
    				attr  7: rf_bandwidth value: 18000000
    				attr  8: rf_bandwidth_available value: [200000 1 56000000]
    				attr  9: rf_dc_offset_tracking_en value: 1
    				attr 10: rf_port_select value: A_BALANCED
    				attr 11: rf_port_select_available value: A_BALANCED B_BALANCED C_BALANCED A_N A_P B_N B_P C_N C_P TX_MONITOR1 TX_MONITOR2 TX_MONITOR1_2
    				attr 12: rssi value: 111.25 dB
    				attr 13: sampling_frequency value: 30720000
    				attr 14: sampling_frequency_available value: [2083333 1 61440000]
    			voltage0:  (output)
    			10 channel-specific attributes found:
    				attr  0: filter_fir_en value: 0
    				attr  1: hardwaregain value: -10.000000 dB
    				attr  2: hardwaregain_available value: [-89.750000]
    				attr  3: rf_bandwidth value: 18000000
    				attr  4: rf_bandwidth_available value: [200000 1 40000000]
    				attr  5: rf_port_select value: A
    				attr  6: rf_port_select_available value: A B
    				attr  7: rssi value: 0.00 dB
    				attr  8: sampling_frequency value: 30720000
    				attr  9: sampling_frequency_available value: [2083333 1 61440000]
    			voltage3:  (output)
    			8 channel-specific attributes found:
    				attr  0: filter_fir_en value: 0
    				attr  1: raw value: 306
    				attr  2: rf_bandwidth value: 18000000
    				attr  3: rf_bandwidth_available value: [200000 1 40000000]
    				attr  4: rf_port_select_available value: A B
    				attr  5: sampling_frequency value: 30720000
    				attr  6: sampling_frequency_available value: [2083333 1 61440000]
    				attr  7: scale value: 1.000000
    			voltage0:  (input)
    			15 channel-specific attributes found:
    				attr  0: bb_dc_offset_tracking_en value: 1
    				attr  1: filter_fir_en value: 0
    				attr  2: gain_control_mode value: slow_attack
    				attr  3: gain_control_mode_available value: manual fast_attack slow_attack hybrid
    				attr  4: hardwaregain value: 6.000000 dB
    				attr  5: hardwaregain_available value: [-3 1 71]
    				attr  6: quadrature_tracking_en value: 1
    				attr  7: rf_bandwidth value: 18000000
    				attr  8: rf_bandwidth_available value: [200000 1 56000000]
    				attr  9: rf_dc_offset_tracking_en value: 1
    				attr 10: rf_port_select value: A_BALANCED
    				attr 11: rf_port_select_available value: A_BALANCED B_BALANCED C_BALANCED A_N A_P B_N B_P C_N C_P TX_MONITOR1 TX_MONITOR2 TX_MONITOR1_2
    				attr 12: rssi value: 28.75 dB
    				attr 13: sampling_frequency value: 30720000
    				attr 14: sampling_frequency_available value: [2083333 1 61440000]
    			temp0:  (input)
    			1 channel-specific attributes found:
    				attr  0: input value: 35088
    			out:  (input, WARN:iio_channel_get_type()=UNKNOWN)
    			1 channel-specific attributes found:
    				attr  0: voltage_filter_fir_en value: 0
    		18 device-specific attributes found:
    				attr  0: calib_mode value: auto
    				attr  1: calib_mode_available value: auto manual manual_tx_quad tx_quad rf_dc_offs rssi_gain_step
    				attr  2: dcxo_tune_coarse value: 8
    				attr  3: dcxo_tune_coarse_available value: [0 1 63]
    				attr  4: dcxo_tune_fine value: 5920
    				attr  5: dcxo_tune_fine_available value: [0 1 8191]
    				attr  6: ensm_mode value: fdd
    				attr  7: ensm_mode_available value: sleep wait alert fdd pinctrl pinctrl_fdd_indep
    				attr  8: filter_fir_config value: FIR Rx: 0,0 Tx: 0,0
    				attr  9: gain_table_config value: <gaintable AD9361 type=FULL dest=3 start=1300000000 end=4000000000>
    -3, 0x00, 0x00, 0x20
    -3, 0x00, 0x00, 0x00
    -3, 0x00, 0x00, 0x00
    -2, 0x00, 0x01, 0x00
    -1, 0x00, 0x02, 0x00
    0, 0x00, 0x03, 0x00
    1, 0x00, 0x04, 0x00
    2, 0x00, 0x05, 0x00
    3, 0x01, 0x03, 0x20
    4, 0x01, 0x04, 0x00
    5, 0x01, 0x05, 0x00
    6, 0x01, 0x06, 0x00
    7, 0x01, 0x07, 0x00
    8, 0x01, 0x08, 0x00
    9, 0x01, 0x09, 0x00
    10, 0x01, 0x0A, 0x00
    11, 0x01, 0x0B, 0x00
    12, 0x01, 0x0C, 0x00
    13, 0x01, 0x0D, 0x00
    14, 0x01, 0x0E, 0x00
    15, 0x02, 0x09, 0x20
    16, 0x02, 0x0A, 0x00
    17, 0x02, 0x0B, 0x00
    18, 0x02, 0x0C, 0x00
    19, 0x02, 0x0D, 0x00
    20, 0x02, 0x0E, 0x00
    21, 0x02, 0x0F, 0x00
    22, 0x02, 0x10, 0x00
    23, 0x02, 0x2B, 0x20
    24, 0x02, 0x2C, 0x00
    25, 0x04, 0x27, 0x20
    26, 0x04, 0x28, 0x00
    27, 0x04, 0x29, 0x00
    28, 0x04, 0x2A, 0x00
    29, 0x04, 0x2B, 0x00
    30, 0x24, 0x21, 0x20
    31, 0x24, 0x22, 0x00
    32, 0x44, 0x20, 0x20
    33, 0x44, 0x21, 0x00
    34, 0x44, 0x22, 0x00
    35, 0x44, 0x23, 0x00
    36, 0x44, 0x24, 0x00
    37, 0x44, 0x25, 0x00
    38, 0x44, 0x26, 0x00
    39, 0x44, 0x27, 0x00
    40, 0x44, 0x28, 0x00
    41, 0x44, 0x29, 0x00
    42, 0x44, 0x2A, 0x00
    43, 0x44, 0x2B, 0x00
    44, 0x44, 0x2C, 0x00
    45, 0x44, 0x2D, 0x00
    46, 0x44, 0x2E, 0x00
    47, 0x44, 0x2F, 0x00
    48, 0x44, 0x30, 0x00
    49, 0x44, 0x31, 0x00
    50, 0x64, 0x2E, 0x20
    51, 0x64, 0x2F, 0x00
    52, 0x64, 0x30, 0x00
    53, 0x64, 0x31, 0x00
    54, 0x64, 0x32, 0x00
    55, 0x64, 0x33, 0x00
    56, 0x64, 0x34, 0x00
    57, 0x64, 0x35, 0x00
    58, 0x64, 0x36, 0x00
    59, 0x64, 0x37, 0x00
    60, 0x64, 0x38, 0x00
    61, 0x65, 0x38, 0x20
    62, 0x66, 0x38, 0x20
    63, 0x67, 0x38, 0x20
    64, 0x68, 0x38, 0x20
    65, 0x69, 0x38, 0x20
    66, 0x6A, 0x38, 0x20
    67, 0x6B, 0x38, 0x20
    68, 0x6C, 0x38, 0x20
    69, 0x6D, 0x38, 0x20
    70, 0x6E, 0x38, 0x20
    71, 0x6F, 0x38, 0x20
    </gaintable>
    				attr 10: multichip_sync ERROR: Permission denied (13)
    				attr 11: rssi_gain_step_error value: lna_error: 0 0 0 0
    mixer_error: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    gain_step_calib_reg_val: 0 0 0 0 0
    				attr 12: rx_path_rates value: BBPLL:983040000 ADC:245760000 R2:122880000 R1:61440000 RF:30720000 RXSAMP:30720000
    				attr 13: trx_rate_governor value: nominal
    				attr 14: trx_rate_governor_available value: nominal highest_osr
    				attr 15: tx_path_rates value: BBPLL:983040000 DAC:122880000 T2:122880000 T1:61440000 TF:30720000 TXSAMP:30720000
    				attr 16: xo_correction value: 40000000
    				attr 17: xo_correction_available value: [40000000 1 40000000]
    		182 debug attributes found:
    				debug attr  0: digital_tune value: 0
    				debug attr  1: calibration_switch_control value: 0
    				debug attr  2: multichip_sync value: 0
    				debug attr  3: gaininfo_rx2 value: 71 76 0 0 0 0 0 0
    				debug attr  4: gaininfo_rx1 value: 6 11 0 0 0 0 0 0
    				debug attr  5: bist_timing_analysis value: 0
    				debug attr  6: gpo_set value: 0
    				debug attr  7: bist_tone value: 0
    				debug attr  8: bist_prbs value: 0
    				debug attr  9: loopback value: 0
    				debug attr 10: initialize value: 0
    				debug attr 11: adi,bb-clk-change-dig-tune-enable value: 0
    				debug attr 12: adi,axi-half-dac-rate-enable value: 0
    				debug attr 13: adi,txmon-2-lo-cm value: 48
    				debug attr 14: adi,txmon-1-lo-cm value: 48
    				debug attr 15: adi,txmon-2-front-end-gain value: 2
    				debug attr 16: adi,txmon-1-front-end-gain value: 2
    				debug attr 17: adi,txmon-duration value: 8192
    				debug attr 18: adi,txmon-delay value: 511
    				debug attr 19: adi,txmon-one-shot-mode-enable value: 0
    				debug attr 20: adi,txmon-dc-tracking-enable value: 0
    				debug attr 21: adi,txmon-high-gain value: 24
    				debug attr 22: adi,txmon-low-gain value: 0
    				debug attr 23: adi,txmon-low-high-thresh value: 37000
    				debug attr 24: adi,gpo3-tx-delay-us value: 0
    				debug attr 25: adi,gpo3-rx-delay-us value: 0
    				debug attr 26: adi,gpo2-tx-delay-us value: 0
    				debug attr 27: adi,gpo2-rx-delay-us value: 0
    				debug attr 28: adi,gpo1-tx-delay-us value: 0
    				debug attr 29: adi,gpo1-rx-delay-us value: 0
    				debug attr 30: adi,gpo0-tx-delay-us value: 0
    				debug attr 31: adi,gpo0-rx-delay-us value: 0
    				debug attr 32: adi,gpo3-slave-tx-enable value: 0
    				debug attr 33: adi,gpo3-slave-rx-enable value: 0
    				debug attr 34: adi,gpo2-slave-tx-enable value: 0
    				debug attr 35: adi,gpo2-slave-rx-enable value: 0
    				debug attr 36: adi,gpo1-slave-tx-enable value: 0
    				debug attr 37: adi,gpo1-slave-rx-enable value: 0
    				debug attr 38: adi,gpo0-slave-tx-enable value: 0
    				debug attr 39: adi,gpo0-slave-rx-enable value: 0
    				debug attr 40: adi,gpo3-inactive-state-high-enable value: 0
    				debug attr 41: adi,gpo2-inactive-state-high-enable value: 0
    				debug attr 42: adi,gpo1-inactive-state-high-enable value: 0
    				debug attr 43: adi,gpo0-inactive-state-high-enable value: 0
    				debug attr 44: adi,gpo-manual-mode-enable-mask value: 0
    				debug attr 45: adi,gpo-manual-mode-enable value: 0
    				debug attr 46: adi,aux-dac2-tx-delay-us value: 0
    				debug attr 47: adi,aux-dac2-rx-delay-us value: 0
    				debug attr 48: adi,aux-dac2-active-in-alert-enable value: 0
    				debug attr 49: adi,aux-dac2-active-in-tx-enable value: 0
    				debug attr 50: adi,aux-dac2-active-in-rx-enable value: 0
    				debug attr 51: adi,aux-dac2-default-value-mV value: 0
    				debug attr 52: adi,aux-dac1-tx-delay-us value: 0
    				debug attr 53: adi,aux-dac1-rx-delay-us value: 0
    				debug attr 54: adi,aux-dac1-active-in-alert-enable value: 0
    				debug attr 55: adi,aux-dac1-active-in-tx-enable value: 0
    				debug attr 56: adi,aux-dac1-active-in-rx-enable value: 0
    				debug attr 57: adi,aux-dac1-default-value-mV value: 0
    				debug attr 58: adi,aux-dac-manual-mode-enable value: 1
    				debug attr 59: adi,aux-adc-decimation value: 256
    				debug attr 60: adi,aux-adc-rate value: 40000000
    				debug attr 61: adi,temp-sense-decimation value: 256
    				debug attr 62: adi,temp-sense-periodic-measurement-enable value: 1
    				debug attr 63: adi,temp-sense-offset-signed value: 206
    				debug attr 64: adi,temp-sense-measurement-interval-ms value: 1000
    				debug attr 65: adi,elna-gaintable-all-index-enable value: 0
    				debug attr 66: adi,elna-rx2-gpo1-control-enable value: 0
    				debug attr 67: adi,elna-rx1-gpo0-control-enable value: 0
    				debug attr 68: adi,elna-bypass-loss-mdB value: 0
    				debug attr 69: adi,elna-gain-mdB value: 0
    				debug attr 70: adi,elna-settling-delay-ns value: 0
    				debug attr 71: adi,ctrl-outs-enable-mask value: 255
    				debug attr 72: adi,ctrl-outs-index value: 0
    				debug attr 73: adi,rssi-duration value: 1000
    				debug attr 74: adi,rssi-wait value: 1
    				debug attr 75: adi,rssi-delay value: 1
    				debug attr 76: adi,rssi-unit-is-rx-samples-enable value: 0
    				debug attr 77: adi,rssi-restart-mode value: 3
    				debug attr 78: adi,fagc-adc-large-overload-inc-steps value: 2
    				debug attr 79: adi,fagc-power-measurement-duration-in-state5 value: 64
    				debug attr 80: adi,fagc-rst-gla-if-en-agc-pulled-high-mode value: 0
    				debug attr 81: adi,fagc-rst-gla-en-agc-pulled-high-enable value: 0
    				debug attr 82: adi,fagc-rst-gla-large-lmt-overload-enable value: 1
    				debug attr 83: adi,fagc-rst-gla-large-adc-overload-enable value: 1
    				debug attr 84: adi,fagc-energy-lost-stronger-sig-gain-lock-exit-cnt value: 8
    				debug attr 85: adi,fagc-rst-gla-engergy-lost-sig-thresh-below-ll value: 10
    				debug attr 86: adi,fagc-rst-gla-engergy-lost-goto-optim-gain-enable value: 1
    				debug attr 87: adi,fagc-rst-gla-engergy-lost-sig-thresh-exceeded-enable value: 1
    				debug attr 88: adi,fagc-rst-gla-stronger-sig-thresh-above-ll value: 10
    				debug attr 89: adi,fagc-optimized-gain-offset value: 5
    				debug attr 90: adi,fagc-rst-gla-stronger-sig-thresh-exceeded-enable value: 1
    				debug attr 91: adi,fagc-use-last-lock-level-for-set-gain-enable value: 1
    				debug attr 92: adi,fagc-gain-index-type-after-exit-rx-mode value: 0
    				debug attr 93: adi,fagc-gain-increase-after-gain-lock-enable value: 0
    				debug attr 94: adi,fagc-final-overrange-count value: 3
    				debug attr 95: adi,fagc-lmt-final-settling-steps value: 1
    				debug attr 96: adi,fagc-lpf-final-settling-steps value: 1
    				debug attr 97: adi,fagc-lock-level-gain-increase-upper-limit value: 5
    				debug attr 98: adi,fagc-lock-level-lmt-gain-increase-enable value: 1
    				debug attr 99: adi,fagc-lp-thresh-increment-steps value: 1
    				debug attr 100: adi,fagc-lp-thresh-increment-time value: 5
    				debug attr 101: adi,fagc-allow-agc-gain-increase-enable value: 0
    				debug attr 102: adi,fagc-state-wait-time-ns value: 260
    				debug attr 103: adi,fagc-dec-pow-measurement-duration value: 64
    				debug attr 104: adi,agc-immed-gain-change-if-large-lmt-overload-enable value: 0
    				debug attr 105: adi,agc-immed-gain-change-if-large-adc-overload-enable value: 0
    				debug attr 106: adi,agc-gain-update-interval-us value: 1000
    				debug attr 107: adi,agc-sync-for-gain-counter-enable value: 0
    				debug attr 108: adi,agc-dig-gain-step-size value: 4
    				debug attr 109: adi,agc-dig-saturation-exceed-counter value: 3
    				debug attr 110: adi,agc-lmt-overload-large-inc-steps value: 2
    				debug attr 111: adi,agc-lmt-overload-small-exceed-counter value: 10
    				debug attr 112: adi,agc-lmt-overload-large-exceed-counter value: 10
    				debug attr 113: adi,agc-adc-lmt-small-overload-prevent-gain-inc-enable value: 0
    				debug attr 114: adi,agc-adc-large-overload-inc-steps value: 2
    				debug attr 115: adi,agc-adc-large-overload-exceed-counter value: 10
    				debug attr 116: adi,agc-adc-small-overload-exceed-counter value: 10
    				debug attr 117: adi,agc-outer-thresh-low-inc-steps value: 2
    				debug attr 118: adi,agc-outer-thresh-low value: 18
    				debug attr 119: adi,agc-inner-thresh-low-inc-steps value: 1
    				debug attr 120: adi,agc-inner-thresh-low value: 12
    				debug attr 121: adi,agc-inner-thresh-high-dec-steps value: 1
    				debug attr 122: adi,agc-inner-thresh-high value: 10
    				debug attr 123: adi,agc-outer-thresh-high-dec-steps value: 2
    				debug attr 124: adi,agc-outer-thresh-high value: 5
    				debug attr 125: adi,agc-attack-delay-extra-margin-us value: 1
    				debug attr 126: adi,mgc-split-table-ctrl-inp-gain-mode value: 0
    				debug attr 127: adi,mgc-dec-gain-step value: 2
    				debug attr 128: adi,mgc-inc-gain-step value: 2
    				debug attr 129: adi,mgc-rx2-ctrl-inp-enable value: 0
    				debug attr 130: adi,mgc-rx1-ctrl-inp-enable value: 0
    				debug attr 131: adi,gc-use-rx-fir-out-for-dec-pwr-meas-enable value: 0
    				debug attr 132: adi,gc-max-dig-gain value: 15
    				debug attr 133: adi,gc-dig-gain-enable value: 0
    				debug attr 134: adi,gc-low-power-thresh value: 24
    				debug attr 135: adi,gc-dec-pow-measurement-duration value: 8192
    				debug attr 136: adi,gc-lmt-overload-low-thresh value: 704
    				debug attr 137: adi,gc-lmt-overload-high-thresh value: 800
    				debug attr 138: adi,gc-adc-large-overload-thresh value: 58
    				debug attr 139: adi,gc-adc-small-overload-thresh value: 47
    				debug attr 140: adi,gc-adc-ovr-sample-size value: 4
    				debug attr 141: adi,gc-rx2-mode value: 2
    				debug attr 142: adi,gc-rx1-mode value: 2
    				debug attr 143: adi,update-tx-gain-in-alert-enable value: 0
    				debug attr 144: adi,tx-attenuation-mdB value: 10000
    				debug attr 145: adi,rf-tx-bandwidth-hz value: 18000000
    				debug attr 146: adi,rf-rx-bandwidth-hz value: 18000000
    				debug attr 147: adi,qec-tracking-slow-mode-enable value: 0
    				debug attr 148: adi,dc-offset-count-low-range value: 50
    				debug attr 149: adi,dc-offset-count-high-range value: 40
    				debug attr 150: adi,dc-offset-attenuation-low-range value: 5
    				debug attr 151: adi,dc-offset-attenuation-high-range value: 6
    				debug attr 152: adi,dc-offset-tracking-update-event-mask value: 5
    				debug attr 153: adi,clk-output-mode-select value: 0
    				debug attr 154: adi,external-rx-lo-enable value: 0
    				debug attr 155: adi,external-tx-lo-enable value: 0
    				debug attr 156: adi,xo-disable-use-ext-refclk-enable value: 0
    				debug attr 157: adi,tx-lo-powerdown-managed-enable value: 1
    				debug attr 158: adi,trx-synthesizer-target-fref-overwrite-hz value: 80008000
    				debug attr 159: adi,rx1-rx2-phase-inversion-enable value: 0
    				debug attr 160: adi,tx-rf-port-input-select-lock-enable value: 0
    				debug attr 161: adi,rx-rf-port-input-select-lock-enable value: 0
    				debug attr 162: adi,tx-rf-port-input-select value: 0
    				debug attr 163: adi,rx-rf-port-input-select value: 0
    				debug attr 164: adi,split-gain-table-mode-enable value: 0
    				debug attr 165: adi,1rx-1tx-mode-use-tx-num value: 1
    				debug attr 166: adi,1rx-1tx-mode-use-rx-num value: 1
    				debug attr 167: adi,2rx-2tx-mode-enable value: 1
    				debug attr 168: adi,digital-interface-tune-fir-disable value: 0
    				debug attr 169: adi,digital-interface-tune-skip-mode value: 0
    				debug attr 170: adi,tx-fastlock-pincontrol-enable value: 0
    				debug attr 171: adi,rx-fastlock-pincontrol-enable value: 0
    				debug attr 172: adi,rx-fastlock-delay-ns value: 0
    				debug attr 173: adi,tx-fastlock-delay-ns value: 0
    				debug attr 174: adi,tdd-skip-vco-cal-enable value: 0
    				debug attr 175: adi,tdd-use-dual-synth-mode-enable value: 0
    				debug attr 176: adi,debug-mode-enable value: 0
    				debug attr 177: adi,ensm-enable-txnrx-control-enable value: 0
    				debug attr 178: adi,ensm-enable-pin-pulse-mode-enable value: 0
    				debug attr 179: adi,frequency-division-duplex-independent-mode-enable value: 0
    				debug attr 180: adi,frequency-division-duplex-mode-enable value: 1
    				debug attr 181: direct_reg_access value: 0x0
    		No trigger on this device
    	iio:device2: ad7291
    		9 channels found:
    			temp0:  (input)
    			3 channel-specific attributes found:
    				attr  0: mean_raw value: 136
    				attr  1: raw value: 135
    				attr  2: scale value: 250
    			voltage1:  (input)
    			2 channel-specific attributes found:
    				attr  0: raw value: 3310
    				attr  1: scale value: 0.610351562
    			voltage5:  (input)
    			2 channel-specific attributes found:
    				attr  0: raw value: 1304
    				attr  1: scale value: 0.610351562
    			voltage2:  (input)
    			2 channel-specific attributes found:
    				attr  0: raw value: 3320
    				attr  1: scale value: 0.610351562
    			voltage6:  (input)
    			2 channel-specific attributes found:
    				attr  0: raw value: 2
    				attr  1: scale value: 0.610351562
    			voltage3:  (input)
    			2 channel-specific attributes found:
    				attr  0: raw value: 1310
    				attr  1: scale value: 0.610351562
    			voltage7:  (input)
    			2 channel-specific attributes found:
    				attr  0: raw value: 2
    				attr  1: scale value: 0.610351562
    			voltage0:  (input)
    			2 channel-specific attributes found:
    				attr  0: raw value: 3276
    				attr  1: scale value: 0.610351562
    			voltage4:  (input)
    			2 channel-specific attributes found:
    				attr  0: raw value: 1813
    				attr  1: scale value: 0.610351562
    		No trigger on this device
    	iio:device3: cf-ad9361-lpc (buffer capable)
    		4 channels found:
    			voltage0:  (input, index: 0, format: le:S12/16>>0)
    			5 channel-specific attributes found:
    				attr  0: calibbias value: 0
    				attr  1: calibphase value: 0.000000
    				attr  2: calibscale value: 1.000000
    				attr  3: samples_pps ERROR: No such device (19)
    				attr  4: sampling_frequency value: 30720000
    			voltage1:  (input, index: 1, format: le:S12/16>>0)
    			5 channel-specific attributes found:
    				attr  0: calibbias value: 0
    				attr  1: calibphase value: 0.000000
    				attr  2: calibscale value: 1.000000
    				attr  3: samples_pps ERROR: No such device (19)
    				attr  4: sampling_frequency value: 30720000
    			voltage2:  (input, index: 2, format: le:S12/16>>0)
    			5 channel-specific attributes found:
    				attr  0: calibbias value: 0
    				attr  1: calibphase value: 0.000000
    				attr  2: calibscale value: 1.000000
    				attr  3: samples_pps ERROR: No such device (19)
    				attr  4: sampling_frequency value: 30720000
    			voltage3:  (input, index: 3, format: le:S12/16>>0)
    			5 channel-specific attributes found:
    				attr  0: calibbias value: 0
    				attr  1: calibphase value: 0.000000
    				attr  2: calibscale value: 1.000000
    				attr  3: samples_pps ERROR: No such device (19)
    				attr  4: sampling_frequency value: 30720000
    		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: 8
    		2 debug attributes found:
    				debug attr  0: pseudorandom_err_check value: CH0 : PN9 : Out of Sync : PN Error
    CH1 : PN9 : Out of Sync : PN Error
    CH2 : PN9 : Out of Sync : PN Error
    CH3 : PN9 : Out of Sync : PN Error
    				debug attr  1: direct_reg_access value: 0x0
    		No trigger on this device
    	iio:device4: cf-ad9361-dds-core-lpc (buffer capable)
    		12 channels found:
    			voltage0:  (output, index: 0, format: le:S16/16>>0)
    			3 channel-specific attributes found:
    				attr  0: calibphase value: 0.000000
    				attr  1: calibscale value: 1.000000
    				attr  2: sampling_frequency value: 30720000
    			voltage1:  (output, index: 1, format: le:S16/16>>0)
    			3 channel-specific attributes found:
    				attr  0: calibphase value: 0.000000
    				attr  1: calibscale value: 1.000000
    				attr  2: sampling_frequency value: 30720000
    			voltage2:  (output, index: 2, format: le:S16/16>>0)
    			3 channel-specific attributes found:
    				attr  0: calibphase value: 0.000000
    				attr  1: calibscale value: 1.000000
    				attr  2: sampling_frequency value: 30720000
    			voltage3:  (output, index: 3, format: le:S16/16>>0)
    			3 channel-specific attributes found:
    				attr  0: calibphase value: 0.000000
    				attr  1: calibscale value: 1.000000
    				attr  2: sampling_frequency value: 30720000
    			altvoltage3: TX1_Q_F2 (output)
    			6 channel-specific attributes found:
    				attr  0: frequency value: 9279985
    				attr  1: label value: TX1_Q_F2
    				attr  2: phase value: 0
    				attr  3: raw value: 1
    				attr  4: sampling_frequency value: 30720000
    				attr  5: scale value: 0.250000
    			altvoltage5: TX2_I_F2 (output)
    			6 channel-specific attributes found:
    				attr  0: frequency value: 9279985
    				attr  1: label value: TX2_I_F2
    				attr  2: phase value: 90000
    				attr  3: raw value: 1
    				attr  4: sampling_frequency value: 30720000
    				attr  5: scale value: 0.250000
    			altvoltage2: TX1_Q_F1 (output)
    			6 channel-specific attributes found:
    				attr  0: frequency value: 9279985
    				attr  1: label value: TX1_Q_F1
    				attr  2: phase value: 0
    				attr  3: raw value: 1
    				attr  4: sampling_frequency value: 30720000
    				attr  5: scale value: 0.250000
    			altvoltage1: TX1_I_F2 (output)
    			6 channel-specific attributes found:
    				attr  0: frequency value: 9279985
    				attr  1: label value: TX1_I_F2
    				attr  2: phase value: 90000
    				attr  3: raw value: 1
    				attr  4: sampling_frequency value: 30720000
    				attr  5: scale value: 0.250000
    			altvoltage7: TX2_Q_F2 (output)
    			6 channel-specific attributes found:
    				attr  0: frequency value: 9279985
    				attr  1: label value: TX2_Q_F2
    				attr  2: phase value: 0
    				attr  3: raw value: 1
    				attr  4: sampling_frequency value: 30720000
    				attr  5: scale value: 0.250000
    			altvoltage4: TX2_I_F1 (output)
    			6 channel-specific attributes found:
    				attr  0: frequency value: 9279985
    				attr  1: label value: TX2_I_F1
    				attr  2: phase value: 90000
    				attr  3: raw value: 1
    				attr  4: sampling_frequency value: 30720000
    				attr  5: scale value: 0.250000
    			altvoltage0: TX1_I_F1 (output)
    			6 channel-specific attributes found:
    				attr  0: frequency value: 9279985
    				attr  1: label value: TX1_I_F1
    				attr  2: phase value: 90000
    				attr  3: raw value: 1
    				attr  4: sampling_frequency value: 30720000
    				attr  5: scale value: 0.250000
    			altvoltage6: TX2_Q_F1 (output)
    			6 channel-specific attributes found:
    				attr  0: frequency value: 9279985
    				attr  1: label value: TX2_Q_F1
    				attr  2: phase value: 0
    				attr  3: raw value: 1
    				attr  4: sampling_frequency value: 30720000
    				attr  5: scale value: 0.250000
    		2 device-specific attributes found:
    				attr  0: sync_start_enable value: arm
    				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: 8
    		1 debug attributes found:
    				debug attr  0: direct_reg_access value: 0x90162
    		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
    

  • Hi,

    The iio_info output looks correct expect

    samples_pps ERROR: No such device (19) on cf-ad9361-lpc 

    and that is a  Linux Software Drivers problem (might be just an improper device tree file).

    Use iio_attrib and iio_readdev to read the channels, see if any timeout or error is raised (do dmesg after iio_attrib/iio_readdev).

    The buffer readings use the DMA pipeline, so if you can obtain the samples with iio_readdev, the issue is not in HDL, nor in IIO/libIIO;

    if it timeouts, add a ILA to the ADC's AXI_DMAC interrupts (axi_ad9361_adc_dma/irq), see if they are being triggered when the transfer is completed.

  • Hi,

    On checking with iio_readdev command , it shows timing error. But  While running dmesg, we could'nt find any "time out error" . 

      

    We've checked the axi_ad9361_adc_dma/irq using ILA . Initially,  the irq is in low state, 

    When we start capturing by IIO oscilloscope  , the irq goes high . 

    >Does the sys_id IP have any role in the design ?  

    >  Is there any additional port connections required ? and also please verify  the ip configuration. 

  • First, let's discard the previous error

    samples_pps ERROR: No such device (19) on cf-ad9361-lpc 

    It looks like the PS is failing to "probe" samples_pps, if we actually dive into the source code, no such device (19) is ENODEV here and is caused when field [8] PPS_RECEIVER_ENABLE of register ADI_REG_CONFIG is low. Since it is a RO register, let's see why is is instantiate with this value, and indeed, the axi_ad9361 ip core has Pps receiver enable set to 0, so that isn't the problem then.

    Ok, now let's proceed,

    > On checking with iio_readdev command , it shows timing error

    The PS is not registering the interrupt in time or at all.

    > Initially,  the irq is in low state, When we start capturing by IIO oscilloscope  , the irq goes high . 

    That's the correct behavior.

    About the error 110 (ETIMEDOUT) itself, I couldn't find in the Linux kernel drivers a relevant return with it, I guess it is libIIO that is returning this error at buffer_check_ready.

    The DMAs IRQ (axi_ad9361_dac_dma/irq and axi_ad9361_adc_dma/irq) should be connected to a Concat/In4 and Concat/in5 respectively;

    and Concat/dout connected to pl_ps_irq1.

    In the device tree, that translates to interrupts

    <0 108 IRQ_TYPE_LEVEL_HIGH>

    and

    <0 109 IRQ_TYPE_LEVEL_HIGH>

    respectively, see zynqmp-zcu102-rev10-ad9361-fmcomms2-3.dts.

    Check all other fields of the DMAs and the AXI_AD9361 core in the device tree file, the addresses should match the ones in Vivado/Address Editor.

    Compare your design with fmcomms2/zcu102.

    "delay refclk frequency" and "dac iodelay enable" are the only fields different from the reference design fmcomms2.

    There is also debugfs files in the driver, can you probe that also?

  • Hi,

    I wanted to discuss a particular aspect of our design in comparison to the FMCOMMS2/ZCU102 configuration.

    Upon reviewing the outputs, I noticed a connection that is tied to a constant and subsequently given to an interrupt. However, I have some doubts regarding this particular setup and its implications.

    Could you please provide some clarification or insights behind this connection? 

  • Hi,

    The constant ties unused signals to a particular state so they are not left in an unknown/floating state;

    in particular, it is tying:

    * unused interrupts inputs to the non-triggered state level .

    * unused SPI subnodes/peripheral.

    Each irq has an index that should match the one defined in the Linux device tree (.dts), in this design, only 4 and 5 from ps_irq1 is being used (index 108 and 109 in the dts).