Post Go back to editing

Interfacing AD9152-FMC-EBZ with ZCU102

Category: Software
Product Number: AD9152

Hi,

I'm trying to interface AD9152-FMC-EBZ with ZCU102. I already went through the following steps:

1. Generated the hardware platform (.xsa) for EVAL-AD9152 with "set device AD9152" and "set mode 04" using generic reference design https://wiki.analog.com/resources/eval/user-guides/ad-dac-fmc-ebz 

2-Cloned https://github.com/analogdevicesinc/linux.git and went through ./build_zynqmp_kernel_image.sh with giving "zynqmp-zcu102-rev10-ad9144-fmc-ebz.dts" as devicetree.

3-Got through this analog wiki page https://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-ebz/software/linux/zynqmp to build linux kernel and make sd card out of Image, BOOT.BIN and system.dtb

After running the linux, I get following available contexts by doing "iio_info -s"

  Available contexts:
0: 10.2.24.96 (AD9152-FMC-EBZ on ZynqMP ZCU102 Rev1.0), serial=Empty Field [ip:analog.local]
1: fe80::44ae:554a:8908:c45%eth0 (AD9152-FMC-EBZ on ZynqMP ZCU102 Rev1.0), serial=Empty Field [ip:analog.local]
2: (xilinx-ams,ina226,ina226,ina226,ina226,ina226,ina226,ina226,max20751,ina226,ina226,ina226,ina226,ina226,ina226,ina226,ina226, on ZynqMP ZCU102 Rev1.0) [local:]

but when I look at /sys/bus/iio/devices/, I have 

iio:device0 iio_sysfs_trigger

which iio:device0 is for zcu102 itself

root@analog:/sys/bus/iio/devices/iio:device0# cat name
xilinx-ams

I don't know why I can't see AD9152-FMC-EBZ here?

I also tried to get access through pyadi-iio, but I get following error:

>>> import adi
>>> tx=adi.ad9152(uri="ip:analog.local")
>>> tx.dds_single_tone(200000000,0.5)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/dist-packages/adi/dds.py", line 120, in dds_single_tone
chans = len(self.dds_scales)
File "/usr/local/lib/python3.9/dist-packages/adi/dds.py", line 72, in dds_scales
return self._read_dds("scale")
File "/usr/local/lib/python3.9/dist-packages/adi/dds.py", line 39, in _read_dds
for indx in range(len(self._txdac.channels)):
AttributeError: 'NoneType' object has no attribute 'channels'
>>>