Hi
I am using an external touch controller with DM3730 which is TCS2046. Its is same as ADS7846. The issue I have is that I can not read nor write from this bus. I have followed the procedure as below with no joy and hope someone can point me in right Direction
static struct spi_board_info VAR_SOM_OM3X_spi_board_info[] = {
[0] = {
.modalias = "ads7846",
.bus_num = 2,
.chip_select = 0,
.max_speed_hz = 1500000,
.controller_data = &ads7846_mcspi_config,
.irq = OMAP_GPIO_IRQ(VAR_SOM_OM3X_TS_GPIO),
.platform_data = &ads7846_config,
},
};
In u-boot I have added MUX VAL as
MUX_VAL(CP(ETK_D13_ES2), (IEN | PTD | DIS | M4)) /*GPIO_27 nTOUCH_IRQ*/\
MUX_VAL(CP(MCSPI2_CLK), (IEN | PTD | DIS | M0)) /*McSPI2_CLK*/\
MUX_VAL(CP(MCSPI2_SIMO), (IEN | PTD | DIS | M0)) /*McSPI2_SIMO */\
MUX_VAL(CP(MCSPI2_SOMI), (IEN | PTD | DIS | M0)) /*McSPI2_SOMI */\
MUX_VAL(CP(MCSPI2_CS0), (IEN | PTD | DIS | M0)) /*McSPI2_CS0*/\
MUX_VAL(CP(MCSPI2_CS1), (IDIS | PTD | DIS | M4)) /*McSPI2_CS1*/
the log message i am getting is
The log message I am getting is
[ 3.561218] ads7846 spi2.0: touchscreen, irq 187
[ 3.575164] ads7846 spi2.0: no device detected, test read result was 0x00000000
Not sure where I have gone wrong. Any help would be great.