This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Touchscreen for Beagleboard Rev C4 issue

Other Parts Discussed in Thread: ADS7846

Hi,

I am trying to configure my 7" TFT touch screen with Android 2.3.4

After I made some changes in board-omap3beagle.c like in porting guides, my board has recognized the device:

when booting:

spi3.0 supply vcc not found, using dummy regulator
ads7846 spi3.0: touchscreen, irq 293
input: ADS7846 Touchscreen as /devices/platform/omap2_mcspi.3/spi3.0/input/input1

 

and I use "getevent":

add device 1: /dev/input/event1
name: "ADS7846 Touchscreen"
could not get driver version for /dev/input/mouse0, Not a typewriter

 

however, when I touch, no event is happened and it does not work at all,

Could you please give me some suggestions for this issue

 

I connect it through expansion header, I think I use spi3.0 . Not sure with this question but I will provide what I did.

Here's my spi_board_info:

struct spi_board_info omap3evm_spi_board_info[] = {
[0] = {
.modalias = "ads7846",
.bus_num = 3,
.chip_select = 0,
.max_speed_hz = 1500000,
.controller_data = &ads7846_mcspi_config,
.irq = OMAP_GPIO_IRQ(OMAP3_EVM_TS_GPIO),
.platform_data = &ads7846_config,
},
};





static struct omap2_mcspi_device_config ads7846_mcspi_config = {
.turbo_mode = 0,
.single_channel = 1, /* 0: slave, 1: master */
};



struct ads7846_platform_data ads7846_config = {
.x_max = 0x0fff,
.y_max = 0x0fff,
.x_plate_ohms = 180,
.pressure_max = 255,
.debounce_max = 10,
.debounce_tol = 3,
.debounce_rep = 1,
.get_pendown_state = ads7846_get_pendown_state,
.keep_vref_on = 1,
.settle_delay_usecs = 150,
.wakeup = true,
};