I am writing a ADC device driver in which I am using DMA transfer from ADC register and kmaloced memory.

While adding ADC register as source in dma_map_single, it is giving error saying invalid virtual address.

I tried converting register address to virtual address using

__va, phys_to_virt(), ioremap but failed.

ADC register address: 0x5F400050

dma_map_single is accepting address with oxCXXXXXXX only.

Please guide me how to solve this issue.

Thanks and regards.