Hi Igor,
I am able to read ADC values from sysfs interface.
I am going through the imx-test-5.7 for /dev/mem interface accessing ADC. I found a strange issue . I enable vf610 adc driver and running memtool on ADC, what ever data I write to ADC registers when reading back I am able to read the updated values.
When I disable the vf610 adc driver from make menuconfig and build the kernel and update it and after running memtool on adc values are not updating. Below is the log.
root@imx6ulevk:/# ./a.out ADC1.CFG.MODE=1
write 0x00000001 to Bit 2..3 of 0x02198014
root@imx6ulevk:/# ./a.out ADC1.CFG.MODE 1
ADC1 Addr:0x2198000
ADC1.CFG Addr:0x02198014 Value:0x00000200 - Selects the mode of operation, clock source, clock divide, configure for low power, long sample time, high speed configuration and selects the sample time duration.
ADC1.CFG.MODE(2..3) :0x0
Used to set the ADC resolution mode.
Can you tell me what is the wrong I am doing.
Thanks and Regards,
Chandrasekhar