Hi,
We are trying to start profiles from TES on the board TEI0022 (Data Storm DAQ)
With imageadrv9002_tei0022_03_20211103.tar.gz from https://github.com/ArrowElectronics/data-storm-daq/wiki/Prepare-and-Install-the-SD-Card-(ADRV9002) we cannot load config_profile from TES 0.22.0.
adrv9002 spi0.0: adrv9002-phy Rev 12.0, Firmware 0.13.6.7, Stream 0.5.18.0, API version: 39.0.7 successfully initialized
cf_axi_adc ff230000.axi-adrv9002-rx-lpc: ADI AIM (10.01.b) at 0xFF230000 mapped to 0x7194ab6e, probed ADC ADRV9002 as MASTER
cf_axi_dds ff23a000.axi-adrv9002-tx-lpc: Analog Devices CF_AXI_DDS_DDS MASTER (9.01.b) at 0xFF23A000 mapped to 0x44e4a161, probed DDS ADRV9002
cat /root/profile.json > profile_config
cat: write error: Invalid argument
adrv9002 spi0.0: SSI interface mismatch. PHY=1, RX1=0
adrv9002 spi0.0: SSI interface mismatch. PHY=1, RX1=0
Profile Custom_1Lane_CMOS.json from https://datastormdaq.s3.us-east-2.amazonaws.com/Custom_1Lane_CMOS.json loads without problem.
The file has a many of different parameters. Eg. If I add to Custom_1Lane_CMOS.json "gainTableType": 0, - it causes same error “SSI interface mismatch. PHY=1, RX1=0”.
Ok, there may be a problem with the driver version, so update according to arrow update procedure.
Update SD image https://github.com/ArrowElectronics/data-storm-daq/wiki/ADRV9002-Platform-Build-uboot
set #define DEBUG in drivers/iio/adc/navassa/adrv9002.c & drivers/iio/adc/navassa/adrv9002_conv.c make defconfig: make socfpga_tei0022_adi_defconfig make linux: make zImage make device tree: make socfpga_cyclone5_tei0022_03_axi_hdmi_adrv9002_rx2tx2.dtb replace .dtb and zImage on /boot/ reboot dmesg boot ok: adrv9002 spi0.0: adrv9002-phy Rev 12.0, Firmware 0.13.6.7, Stream 0.5.18.0, API version: 39.0.7 successfully initialized cf_axi_adc ff230000.axi-adrv9002-rx-lpc: ADI AIM (10.01.b) at 0xFF230000 mapped to 0xec97bd7d, probed ADC ADRV9002 as MASTER cf_axi_dds ff23a000.axi-adrv9002-tx-lpc: Analog Devices CF_AXI_DDS_DDS MASTER (9.01.b) at 0xFF23A000 mapped to 0xb8487922, probed DDS ADRV9002 #same version of API .. but it same in the source codes cat /root/Custom_1Lane_CMOS.json > profile_config ok cat /root/profile.json > profile_config cat: write error: Invalid argument adrv9002 spi0.0: adrv9002_profile_bin_write:3553: size 46329 adrv9002 spi0.0: SSI interface mismatch. PHY=1, RX1=0 adrv9002 spi0.0: SSI interface mismatch. PHY=1, RX1=0 problem still here
Try with the Analog devices kernel, here we are unable to initialize the device. We do not know the consequences of where the error could be:
git clone github.com/.../linux
copy defconfig: arch/arm/configs/socfpga_tei0022_adi_defconfig from github.com/.../altera_5.4
copy dts: arch/arm/boot/dts/socfpga_cyclone5_tei0022_03_axi_hdmi_adrv9002_rx2tx2.dts from github.com/.../altera_5.4
set #define DEBUG in drivers/iio/adc/navassa/adrv9002.c & drivers/iio/adc/navassa/adrv9002_conv.c
make defconfig: make socfpga_tei0022_adi_defconfig
make linux: make zImage
make device tree: make socfpga_cyclone5_tei0022_03_axi_hdmi_adrv9002_rx2tx2.dtb
replace .dtb and zImage on /boot/
replace firmware files from adi linux firmware/ to /lib/firmware/
reboot
Linux version 5.10.0
dmesg boot fails:
SAMPL CLK: 1920000 tuning: RX1
0:1:2:3:4:5:6:7
0:o o o o o o o o
1:o o o o o o o o
2:o o o o o o o o
3:o o o o o o o o
4:o o o o o o o o
5:o o o o o o o o
6:o o o o o o o o
7:o o o o o o o o
SAMPL CLK: 1920000 tuning: TX1
0:1:2:3:4:5:6:7
0:# # # # # # # #
1:# # # # # # # #
2:# # # # # # # #
3:# # # # # # # #
4:# # # # # # # #
5:# # # # # # # #
6:# # # # # # # #
7:# # # # # # # #
adrv9002 spi0.0: Interface tuning failed: -5
cf_axi_adc: probe of ff230000.axi-adrv9002-rx-lpc failed with error -5
Where is the problem in the new kernel version?
Thanks, Tom