I have this up/down convert board: https://wiki.analog.com/resources/eval/user-guides/ad-freqcvt1-ebz
The guide doesn't tell anything about configuring the board via SPI interface. Can anyone please show me how it's done ?
Can I use a USB-to-SPI adapter to configure it from my Linux PC ? (something like this https://www.amazon.com/ARCELI-Programmer-Convertor-Parallel-Converter/dp/B07MPY65JN/ref=pd_sbs_23_1/142-1415695-6714959?_encoding=UTF8&pd_rd_i=B07MPY65JN&pd_rd_r=389c0c44-e045-43f6-a2bf-7e1c2b54d2b0&pd_rd_w=REFgL&pd_rd_wg=Wngp8&pf_rd_p=b65ee94e-1282-43fc-a8b1-8bf931f6dfab&pf_rd_r=DGZVH6SXC0D6D6MYTJVV&psc=1&refRID=DGZVH6SXC0D6D6MYTJVV )
My current setup comprises an Arria 10 GX developement board + ADRV9371-W/PCBZ and this board.
The Arria 10 is running Nios2 Linux.
Hi Nick,Sorry for the late response.
I think a best approach to configure your board will be to build a linux kernel for your board, see:
In the link there are also instructions of how to build the device tree for ADRV9371.
After that, you should be able to configure the board either using the linux fs or using IIO Oscilloscope.
Thanks for your suggestions.
But I don't see how it can help to configure the frequency converter board AD-FREQCVT1-EBZ via ADRV9371.
The AD-FREQCVT1-EBZ only has 12-header-pins at P2 for SPI communication. The only possible connection between these boards is via those header pins.
How can I configure the Linux kernel to realize this connection ?
This is an example of how to configure the dts:
and an example we use for Xilinx platforms:
You will need to define a new SPI for it and replace reg values with the chip select you will be using.
What do you mean by defining a new SPI ?
Does it mean that I have to modify the HDL to add a new IP (in Platform Designer) for the SPI interface with memory mapped addresses for the adf4351-udc-tx-pmod and adf4351-udc-rx-pmod in the device tree ?
You can take a look here:
pmod_spi is defined as spi1 and the it is included the adi-fmcomms3-up-down-converter.dtsi I send you above.