Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

ADC not working in our custom board

$
0
0

Hi Experts,

We are using am335x evm in our custom board and we are using am335x-5.05.00 source code in our board.we downloaded the am335x-5.06.00 source ti_adc driver in our kernel.we made the neccessary changes in our kernel and board file using the guide http://processors.wiki.ti.com/index.php/AM335x_ADC_Driver%27s_Guide.the folder /sys/bus/iio/devices/iio not created in our kernel,so we are not able to read the adc voltage level.can you please suggest me solve this issue.

Board file changes in our custom board.

static struct adc_data am335x_adc_data = {
.adc_channels = 8,
};

static struct mfd_tscadc_board tscadc = {
/* .tsc_init = &am335x_touchscreen_data, */
.adc_init = &am335x_adc_data,
};

static struct pinmux_config adc_pin_mux[] = {
{"ain0.ain0", OMAP_MUX_MODE0 | AM33XX_INPUT_EN},
{"ain2.ain2", OMAP_MUX_MODE0 | AM33XX_INPUT_EN},
{"vrefp.vrefp", OMAP_MUX_MODE0 | AM33XX_INPUT_EN},
{"vrefn.vrefn", OMAP_MUX_MODE0 | AM33XX_INPUT_EN},
{NULL, 0},
};


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>