Hi,
I am trying to read my battery level voltage from adc channel 6 under am335x custom board. I have configured pin mux and assigned the adc and touch as below
static struct tsc_data am335x_touchscreen_data = {
.wires = 0,
.x_plate_resistance = 200,
};
static struct adc_data am335x_adc_data = {
.adc_channels = 1,
};
static struct mfd_tscadc_board tscadc = {
.tsc_init = &am335x_touchscreen_data,
.adc_init = &am335x_adc_data,
};
It has created the ADC interface under /sys/bus/iio/devices/iio\:device0/in_voltage0_raw it shows 4095. nut i am unable to operate my touchscreen. as per my configuration weather the adc is giving the values are correct or not?? using with this adc configuration my touch screen is not working.
Is there any constraint to use either adc channel or touch screen.
Please help me. how to solve my issue.
Thanks,
Lofna