AnsweredAssumed Answered

Regarding AD9371 rx-tx devices not getting probed

Question asked by ronak.desai on Dec 12, 2016
Latest reply on Dec 14, 2016 by mhennerich

Hi,

 

I have a combination of Xilinx ZC706 + AD9371FMC. I have my own kennel build based off Xilinx 2016.3 Kernel where I have ported AD9371 and it's related drivers along with common IIO, SPI framework changes.

 

I am able to get this kernel running on above HW combination and I am seeing following devices getting probed successfully. I am able to read/write AD9371 files and I can see the SPI transactions on scope through test points on FMC.

 

grep ^ /sys/bus/iio/devices/iio\:device*/name
/sys/bus/iio/devices/iio:device0/name:ad7291
/sys/bus/iio/devices/iio:device1/name:xadc
/sys/bus/iio/devices/iio:device2/name:ad9528-1
/sys/bus/iio/devices/iio:device3/name:ad9371-phy

 

However, I am not able get following devices probed (when I compare with pre-built images), even though drivers implementing these devices are enabled in my kernel and in device tree. I am using latest Mykonos firmware 3.1.3 instead of the pre-built image which uses 2.0.5.  Can anyone please point me to the areas which I should debug ?

 

axi-ad9371-rx-hpc ( drivers/iio/adc/cf_axi_adc_core.c )

axi-ad9371-rx-obs-hpc ( drivers/iio/adc/ad_adc.c )

axi-ad9371-tx-hpc ( drivers/iio/frequency/cf_axi_dds.c )

 

Following is the snippet of bootlog probing ad9528 and ad9731 devices.

 

ad9528 spi32766.0: probed ad9528-1
NET: Registered protocol family 17
Registering SWP/SWPB emulation handler
ad9371 spi32766.1: ad9371_probe : enter
cf_axi_jesd204b_gt 44a60000.axi-jesd-gt-rx-tx: TX PLL NOT locked! (0xFCFC)
cf_axi_jesd204b_gt 44a60000.axi-jesd-gt-rx-tx: TX PLL NOT locked! (0xFCFC)
cf_axi_jesd204b_gt 44a60000.axi-jesd-gt-rx-tx: TX PLL NOT locked! (0xFCFC)
cf_axi_jesd204b_gt 44a60000.axi-jesd-gt-rx-tx: TX PLL NOT locked! (0xFCFC)
cf_axi_jesd204b_gt 44a60000.axi-jesd-gt-rx-tx: AXI-JESD204B (7.01.a) at 0x44A60000 mapped to 0xf0a20000,
ad9371 spi32766.1: ad9371_probe : enter
cf_axi_jesd204b_v51 44a91000.axi-jesd204b-rx: AXI-JESD204B 6.2 Rev 1, at 0x44A91000 mapped to 0xf0994000,
cf_axi_jesd204b_v51 44a90000.axi-jesd204b-tx: AXI-JESD204B 6.2 Rev 1, at 0x44A90000 mapped to 0xf0996000,
cf_axi_jesd204b_v51 44a92000.axi-jesd204b-rx-os: AXI-JESD204B 6.2 Rev 1, at 0x44A92000 mapped to 0xf099e000,
ad9371 spi32766.1: ad9371_probe : enter
random: nonblocking pool is initialized
ad9371 spi32766.1: ad9371_probe : AD9371 Rev 4, Firmware 3.1.3 successfully initialized
rtc-pcf8563 5-0051: setting system clock to 1970-01-10 04:26:56 UTC (793616)

Outcomes