AnsweredAssumed Answered

AD9371 on ZCU102 device tree issues

Question asked by woodmeister123 on May 11, 2018
Latest reply on May 15, 2018 by woodmeister123

Hi,

 

I am trying to bootstrap a design with the AD9371 running on the ZCU102 board.

 

I have started with the Xilinx Petalinux toolset and pulled in the analog devices kernel  on the jesd204 ultrascale branch. I am using the analog devices device tree for the ad9371 on ZCU102 also from this branch. 

 

I think I have enabled all the appropriate drivers in the kernel. Unfortunately I am not seeing any evidence of the AD devices from the device tree being probed in dmesg, and no iio device node is created. I am also not seeing any AD related probes in dmesg for spi or i2c.

I have interrogated the device tree on the target and it looks to be created correctly.

 

I must be missing something obvious here, any ideas?

 

Thanks

 

Mark

 

 

 

dmesg | grep spi

 

root@xilinx-zcu102-2017_4:~# dmesg | grep spi
[ 3.538839] cdns-spi ff040000.spi: failed to add to PM domain pd-spi0: -13
[ 3.546336] m25p80 spi0.0: SPI-NOR-UniqueID 1044002c3991000307000a00f0a07189b5
[ 3.553490] m25p80 spi0.0: found n25q512a, expected m25p80
[ 3.559004] m25p80 spi0.0: n25q512a (131072 Kbytes)
[ 3.563824] 4 ofpart partitions found on MTD device spi0.0
[ 3.569278] Creating 4 MTD partitions on "spi0.0":
[ 3.574054] 0x000000000000-0x000000100000 : "qspi-fsbl-uboot"
[ 3.580260] 0x000000100000-0x000000600000 : "qspi-linux"
[ 3.585923] 0x000000600000-0x000000620000 : "qspi-device-tree"
[ 3.592117] 0x000000620000-0x000000c00000 : "qspi-rootfs"
[ 4.183677] cdns-spi ff040000.spi: failed to add to PM domain pd-spi0: -13
[ 4.871061] cdns-spi ff040000.spi: failed to add to PM domain pd-spi0: -13
[ 4.915086] cdns-spi ff040000.spi: failed to add to PM domain pd-spi0: -13
[ 5.028074] cdns-spi ff040000.spi: failed to add to PM domain pd-spi0: -13

 

dmesg | grep i2c

 

[ 3.733641] i2c /dev entries driver
[ 4.339546] cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 25
[ 4.457963] i2c i2c-0: Added multiplexed i2c bus 3
[ 4.527156] i2c i2c-0: Added multiplexed i2c bus 4
[ 4.565848] i2c i2c-0: Added multiplexed i2c bus 5
[ 4.570700] i2c i2c-0: Added multiplexed i2c bus 6
[ 4.583365] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 26
[ 4.596744] i2c i2c-1: Added multiplexed i2c bus 7
[ 4.601696] i2c i2c-1: Added multiplexed i2c bus 8
[ 4.614695] i2c i2c-1: Added multiplexed i2c bus 9
[ 4.639766] i2c i2c-1: Added multiplexed i2c bus 10
[ 4.644803] i2c i2c-1: Added multiplexed i2c bus 11
[ 4.649731] i2c i2c-1: Added multiplexed i2c bus 12
[ 4.654668] i2c i2c-1: Added multiplexed i2c bus 13
[ 4.659589] i2c i2c-1: Added multiplexed i2c bus 14
[ 4.679255] i2c i2c-1: Added multiplexed i2c bus 15
[ 4.684232] i2c i2c-1: Added multiplexed i2c bus 16
[ 4.689165] i2c i2c-1: Added multiplexed i2c bus 17
[ 4.694388] i2c i2c-1: Added multiplexed i2c bus 18
[ 4.699329] i2c i2c-1: Added multiplexed i2c bus 19
[ 4.704262] i2c i2c-1: Added multiplexed i2c bus 20
[ 4.709194] i2c i2c-1: Added multiplexed i2c bus 21
[ 4.714131] i2c i2c-1: Added multiplexed i2c bus 22

Outcomes