iMX93 ADC

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

iMX93 ADC

2,236 Views
BaselHn
Contributor II

Hi, 

I want to enhance the iMX93 ADC driver to support DMA and an iio buffer, so it can sample several samples and put them into a buffer.

Attached is my modified code. And I get the following error:

[ 1.436577] imx93-adc 44530000.adc: error -EINVAL: Failed to register this iio device.
[ 1.444518] imx93-adc: probe of 44530000.adc failed with error -22

Any help?

#

Labels (1)
0 Kudos
Reply
5 Replies

1,321 Views
mdeneen
Contributor II

Hey, did you ever get this working with continuous mode?

0 Kudos
Reply

1,181 Views
BaselHn
Contributor II

Hi @mdeneen 

Yes, I did

Tags (1)
0 Kudos
Reply

405 Views
Ridhakhalfaoui
Contributor I
Could you share your work for the continous mode please?
0 Kudos
Reply

2,188 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @BaselHn 

 

I hope you are doing very well.

 

Have you tried changing the line:

indio_dev->modes = INDIO_DIRECT_MODE; //| INDIO_BUFFER_TRIGGERED;

 

To:

indio_dev->modes = INDIO_DIRECT_MODE | INDIO_BUFFER_TRIGGERED;

 

Best regards,

Salas.

0 Kudos
Reply

1,983 Views
BaselHn
Contributor II

Hi @Manuel_Salas 

Sorry for the late response I was OOO.

Yes and I managed at last to make the ADC to work with the DMA. 

The ADC now working with DMA.

Tags (1)
0 Kudos
Reply