TDM driver is not working on P1025rdb board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TDM driver is not working on P1025rdb board

638 Views
amanagantivinod
Contributor III

Hi supporting community.

 

We are working on TDM interface on P1025rdb board, with SDK1.3.2.

 

1>  Programmed QE with "fsl_qe_ucode_1021_10_A.bin" file.

2> Changed Device-tree file for internal-loopback mode

3> Provided external clock supply for  clock and sync for TDM_C interface (ce_pb6(frame sync), ce_pb11(clock)).

4> Compiled ucc_tdm_test.c as loadable module.

 

TDM probe is called and it is configured in loopback mode.

When ucc_tdm_test.ko module is loaded with loopback mode, it is writing data to TDM device, but got stuck in reading the data.

 

According to my understanding processor is not getting any interrupt from QE related TDM. Hence blocked in wait_event_interruptible function call inside ucc_tdm_read().

 

Please guide us in fixing the issue, as it is blocking further development.  Here I attached the used .dts file and the logs

 

Your help is appreciated.

We are working on TDM interface using P1025rdb board, with SDK1.3.2.

Programmed QE with "fsl_qe_ucode_1021_10_A.bin" file.
Changed Device-tree file for internal-loopback mode
Provided external clock supply for  clock and sync.
Compiled ucc_tdm_test.c as loadable module.

TDM probe is called and it is configured in loopback mode.
When ucc_tdm_test.ko module is loaded with loopback mode, it is writing data to TDM device, but got stuck in reading the data.

According to my understanding processor is not getting any interrupt from QE related TDM. Hence blocked in wait_event_interruptible function call inside ucc_tdm_read().

Original Attachment has been moved to: p1025rdb_32b.dts.zip

Original Attachment has been moved to: tdm_internal_loopback_logs.txt.zip

Labels (1)
0 Kudos
2 Replies

366 Views
bpe
NXP Employee
NXP Employee

The SDK provides a workable configuration for QE TDM. Did you test the driver unmodified,

as specified here:

QUICC Engine Time Division Multiplexing User Manual


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

366 Views
amanagantivinod
Contributor III

Hi  Platon,

Thanks for your reply,

We followed the steps mentioned in the document. we are not using pq_mds-t1 card, but we are driving clock and sync signals from external supply. still it didn't work for us, while debugging further we found that in internal loopback mode we have to make use of R_SYNC, RX_CLK, pins for common signals, but previously  we were using T_SYNC and TX_CLK only.

After swapping T_SYNC and TX_CLK to R_SYNC and RX_CLK also we are not able to do internal loopback.

Bellow are the pins configuration used for our testing

P1025RDB-PA          reference board

TDM-C (ucc-5)         interface

CE_PB -  7               TDMC_RSYNC

CE_PB - 10              TDMC_RCLK    (IRQ#6)

CE_PB -  4               TDMC_TXD

CE_PB -  5               TDMC_RXD

We configured ce_pb-6 as TSYNC, and ce_pb-11 as T_CLK, but physically there is no source is connected to these pins.

Could you please tell us where we are doing wrong, based on above information. we tried sdk1.0.1, and 1.3.2, 1.8 also, it would help us if you mention the SDK version, in which above mentioned reference board's TDM is validated.

Thanks in advance for your great support,

Vinod Kumar.

0 Kudos