Post Go back to editing

ADRV9002 TX2 disabled while RX2 active

Thread Summary

The user is trying to configure the ADRV9002 ZCU102 reference design for a 2RX/1TX setup by disabling TX2 SSI and removing TX2-related blocks. The final answer suggests that the issue might be due to hardcoded offsets in the Linux drivers, and recommends using a modified TES profile and stream binary instead. The accompanying answers indicate that the error could be related to missing TX2 DMA or register table updates, and suggest a detailed review of the changes for debugging.
AI Generated Content
Category: Hardware
Product Number: ADRV9002

Hello, I am working with the ADRV9002 ZCU102 reference design and I would like to use the transceiver with RX1, RX2, and TX1 enabled while completely disabling TX2. To do this, I enabled the Disable Tx2 SSI option in the axi_adrv9001 IP configuration and removed the TX2-related blocks from the Vivado Block Design, including util_dac_2_upack, axi_adrv9001_tx2_dma, and all associated TX2 AXI-Stream connections, clocks, resets, and external ports. I then regenerated the HDL wrapper, updated system_top.v to remove all TX2-related ports and connections, and updated the XDC constraints to remove TX2 differential I/O ports and constraints. I also rebuilt the Yocto EDF Linux image and updated the Device Tree by removing the TX2 DMAC node, the TX2 AXI core node, the TX2 TDD node, TX2 GPIO references, and TX2-related frequency-hopping settings. The modified bitstream is generated successfully and Linux boots correctly. The ADRV9002 is detected on SPI and bound to the expected driver. However, no ADRV9002-related IIO devices are created; only the Xilinx AMS IIO device is visible under /sys/bus/iio/devices The kernel reports the following errors:

[ 3.520157] cf_axi_adc 84a00000.axi-adrv9002-rx-lpc: probe with driver cf_axi_adc failed with error -22
[ 20.459065] platform 84a09000.axi-adrv9002-rx2-lpc: deferred probe pending: (reason unknown)
[ 20.459072] platform 84a0c800.axi-adrv9002-core-tdd1-lpc: deferred probe pending: (reason unknown)
[ 20.459079] platform 84a0a000.axi-adrv9002-tx-lpc: deferred probe pending: (reason unknown)

Could you please confirm whether a 2RX/1TX configuration with TX2 SSI disabled is supported by the axi_adrv9001 HDL IP and the Linux IIO drivers? Is removing util_dac_2_upack and axi_adrv9001_tx2_dma the correct procedure after enabling Disable Tx2 SSI, or are further HDL, Device Tree, or driver changes required? Could the cf_axi_adc probe failure with error -22 indicate an unsupported configuration or an HDL/Linux driver version mismatch? 

Thank you for your help.

  • Hello 

    What you're trying to do should work but the driver for linux has hardcoded offsets, and you will have to rewrite the software drivers to accomidate the changes, since it's going to look for those drivers by default. 

     

    THAT SAID, you could achieve the same effect by setting a profile in TES and then exported the stream binary & profile to linux. I would do that first. 

    Even if you can make it work by changing the HDL, I would still insist on making sure you're running with a stream binary and profile from TES that has these modified profiles. 

     

    Best, Aubrey

  • Yes as you say it works if you just change the TES profile. The problem is that a lot of PL space has something that I don't use (as i mentioned before) and that s why I changed theHDL design. The problem now is where is the problem in the drivers? where does it come from?

  • Hello, 
    They're many possible points of failure, what that error message most likely, I can't say definitively, comes from is that the drivers are expecting something from the tx2 DMA, or a similar ip, but something hasn't been provided, or something like the register table hasn't been updated.


    I'm sorry if that's a hand-wavy answer, I'm happy to get on call, and if you want to walk me through your exact changes, I can pinpoint potential points of failure that we can debug. 

    Best, Aubrey

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.