AnsweredAssumed Answered

SAMPL CLK: 30724283 tuning: RX

Question asked by JAHoney on Jun 26, 2018
Latest reply on Jun 28, 2018 by JAHoney

                                                             SAMPL CLK: 30724283 tuning: RX
We are trying to port ADI's kernel to our own Zynq board(based on AD-FMCOMMS2-EBZ) and we met a issue when booting the kernel(4.9,I guess this is the latest version).In addition,there are 2 chips of AD9361 on our board.
We found that it showed the sample clk of AD9361 is 30724283, not 30.72MHz.The log message is as follows.

[ 1.059836] ad9361 spi1.0: ad9361_probe : enter (ad9361-2x)
[ 1.074782] random: fast init done
[ 1.094635] mmc0: Problem switching card into high-speed mode!
[ 1.100770] mmc0: new SDHC card at address 0001
[ 1.105821] mmcblk0: mmc0:0001 SD16G 14.6 GiB
[ 1.111584] mmcblk0: p1 p2 p3
[ 1.310662] ad9361 spi1.0: ad9361_probe : AD936x Rev 2 successfully initialized
[ 1.317994] ad9361 spi2.0: ad9361_probe : enter (ad9361)
[ 1.792771] ad9361 spi2.0: ad9361_probe : AD936x Rev 2 successfully initialized
[ 1.817266] cf_axi_dds 79024000.cf-ad9361-dds-core-lpc: Analog Devices CF_AXI_DDS_DDS MASTER (8.00.b) at 0x79024000 mapped to 0xf0970000, probed DDS AD9361
[ 1.842622] cf_axi_dds 79044000.cf-ad9361-dds-core-B: Analog Devices CF_AXI_DDS_DDS SLAVE (8.00.b) at 0x79044000 mapped to 0xf0974000, probed DDS AD9361
[ 1.859616] NET: Registered protocol family 17
[ 1.864186] Registering SWP/SWPB emulation handler
[ 2.062361] SAMPL CLK: 25000000 tuning: RX
[ 2.066390] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 2.070799] 0:o o o # # # # # # o o o o o o o
[ 2.075239] 1:o o o o o o o o o o o o o o # #
[ 2.225229] SAMPL CLK: 40000000 tuning: RX
[ 2.229236] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 2.233662] 0:o o o # # # # # # o o o o o o o
[ 2.238089] 1:o o o o o o # # # # # # o o # #
[ 2.420703] SAMPL CLK: 61440000 tuning: RX
[ 2.424709] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 2.429136] 0:# o o # # # # # # o o o # # # #
[ 2.433563] 1:# # # # # # # # # # # # # # # #
[ 2.438492] SAMPL CLK: 61440000 tuning: RX
[ 2.442503] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 2.446930] 0:# o o # # # # # # o O o # # # #
[ 2.451356] 1:# # # # # # # # # # # # # # # #
[ 2.634373] SAMPL CLK: 25000000 tuning: TX
[ 2.638401] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 2.642811] 0:# # # # # # # # # # # # # # # #
[ 2.647238] 1:# # o o o o o o o o o o o o o o
[ 2.797052] SAMPL CLK: 40000000 tuning: TX
[ 2.801057] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 2.805484] 0:# # # # # # # # # # # # # # # #
[ 2.809910] 1:# # o o o o o o o o o o o # # #
[ 2.992270] SAMPL CLK: 61440000 tuning: TX
[ 2.996295] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 3.000705] 0:# # # # # # # # # # # # # # # #
[ 3.005144] 1:# # o o o o o o # # # # # # # #
[ 3.010064] SAMPL CLK: 61440000 tuning: TX
[ 3.014072] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 3.018499] 0:# # # # # # # # # # # # # # # #
[ 3.022926] 1:# # o o o O o o # # # # # # # #
[ 3.064738] cf_axi_adc 79020000.cf-ad9361-lpc: ADI AIM (9.00.b) at 0x79020000 mapped to 0xf0980000, probed ADC AD9361-2 as MASTER
[ 3.227300] SAMPL CLK: 30724283 tuning: RX
[ 3.231307] 0:1:2:3:4:5:6:7:8:9:a:b:c:d:e:f:
[ 3.235734] 0:# # # # # # # # # # # # # # # #
[ 3.240160] 1:# # # # # # # # # # # # # # # #
[ 3.244595] ad9361 spi2.0: ad9361_dig_tune_delay: Tuning RX FAILED!
[ 3.267375] cf_axi_adc 79040000.cf-ad9361-B: ADI AIM (9.00.b) at 0x79040000 mapped to 0xf0990000, probed ADC AD9361 as SLAVE

However,when we cat rx_path_rates and tx_path_rates,the results are as follows.
   root:/sys/bus/iio/devices/iio:device1> cat rx_path_rates
   BBPLL:983040000 ADC:245760000 R2:122880000 R1:61440000 RF:30720000 RXSAMP:30720000

   root:/sys/bus/iio/devices/iio:device1> cat tx_path_rates
   BBPLL:983040000 DAC:122880000 T2:122880000 T1:61440000 TF:30720000 TXSAMP:30720000

Has anyone ever met this issue when porting ADI's kernel to your own boards? If you could give me any suggestion about this,I would appreciate it.

 

 

Many thanks,
Jay

Outcomes