ADC with DMA in imx91

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

ADC with DMA in imx91

1,682 Views
sbmd_1234
Contributor III

Hi NXP Team,


I am new to working with ADC and I wanted to implement the DMA with ADC please tell me how to implement it on the imx91 processor.


Thanks.

0 Kudos
Reply
7 Replies

1,643 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

Default driver doesn't support DMA feature, please refer RM to configure DMA registers, DMAE, and DMARn, for different channel groups.


Best Regards
Zhiming

0 Kudos
Reply

1,564 Views
sbmd_1234
Contributor III

Hi,

Do you have any reference code, or document that would be helpful for the DMA implementation with ADC.

Thanks for your help!

0 Kudos
Reply

1,552 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

I don't find such reference code in doucument.


Best Regards,
Zhiming

0 Kudos
Reply

1,542 Views
sbmd_1234
Contributor III

Hi,

How can we know the sample rate used in ADC and also if we want to configure for 200k samples per second then how could we do that?


Thanks.

0 Kudos
Reply

1,509 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Checked with SW team , they don't have plan to add DMA feature for ADC.

The adc driver has integrated with iio sensor framework, you can refer below link to access this device to get/set data you want with /sys/bus/iio/iio:deviceX/.

https://developer.toradex.com/linux-bsp/application-development/peripheral-access/adc-linux/



Best Regards,
Zhiming

0 Kudos
Reply

1,497 Views
sbmd_1234
Contributor III

Hi @Zhiming_Liu ,

Actually my concern is that I can read the ADC value as /sys/bus/iio/devices/iio:device0/in_voltage0_raw, but how can we read the desired samples per second for example I need 200k samples per second how can I read or implement.

Please help with this.

Thanks.

0 Kudos
Reply

1,460 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

The driver doesn't support iio buffer and iio scan feature, you may need refer other adc driver like drivers/iio/adc/ad7768-1.c to add them.

Best Regards,
Zhiming

0 Kudos
Reply