AnsweredAssumed Answered

Issue when porting Linux kernel on ZCU102+ ADRV9371

Question asked by trungnguyen on May 10, 2018
Latest reply on May 14, 2018 by trungnguyen

Hi all,

We hava issue about driver of AD9371 and AD9528 on linux.

1. Platform:

- hardware: ADRV9371 kit and ZCU102 development kit.

- HDL: master branch (download date: 08/05/2018) - Vivado 2017.2 (we haven't modified anything).

- software:

   + petalinux version 2017.2.

   + kernel : master branch (download date: 08/05/2018).

2. Issue description:

 - After we import hdf (exported from projectprojects/adrv9371x/zcu102), we saw that PS's configuration in device-tree folder (pws.dtsi) is different from PS's configuration in HDL project:

  + HDL: 2 SPI instances( AD9371 and AD0528) on SPI0 bus - device tree: 1 (num-cs = <1>;).

  + HDL: width of GPIO EMIO is 95 - device tree: 32 (emio-gpio-width = <32>;)

....

3. Result:  after i change num-cs =3 and  emio-gpio-width = <64> or 95; AD9371 and AD9528 can't start ( I think that RESET pin of these IC isn't release).

 

root@xilinx-zcu102-zu9-es2-rev1_0-2017:~# dmesg | grep spi
[    2.699499] m25p80 spi0.0: SPI-NOR-UniqueID 1044001e5b870002fdff06005fdffc8cac
[    2.706672] m25p80 spi0.0: found n25q512a, expected m25p80
[    2.712184] m25p80 spi0.0: n25q512a (131072 Kbytes)
[    2.716997] 4 ofpart partitions found on MTD device spi0.0
[    2.722449] Creating 4 MTD partitions on "spi0.0":
[    3.471172] ad9371 spi1.1: ad9371_probe : enter
[    3.478317] ad9528 spi1.0: ad9528_probe
[    3.482153] spi1.0 supply vcc not found, using dummy regulator
[    3.970164] ad9371 spi1.1: ad9371_probe : enter
[    4.053276] ad9371 spi1.1: ad9371_probe : enter
[    4.085363] ad9371 spi1.1: ad9371_probe : enter

 

Please tell me if you have any hint,

Thanks and best regards,

Trung

 

Outcomes