logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.
Question

Using igepv2 i2c3 for New Haven Display touchpanel control

posted in IGEPv2
Saturday, February 13 2016, 08:44 AM
peter
peter
Offline
0
Good morning

Based on all your terrific help, I got the NHD-5.0-800480TFT-ATXL#-CTP video driver working!! Thanks!!! I am now trying to get the associated NHD i2c3 touchscreen working and I am not sure how to bind the ft5x06 driver (attached source) to the i2c3 on the igepv2 board

In linux-omap-2.6.37-6/arch/arm/mach-omap2/board-igep0020.c I see current i2c3 bindings to eeprom (which I assume is for EDID) and I want to change that to my touchscreen.
--------------------current----------------------------
static struct i2c_board_info __initdata igep2_i2c3_boardinfo[] = {
{
I2C_BOARD_INFO("eeprom", 0x50),
},
};
.......
omap_register_i2c_bus(3, 100, igep2_i2c3_boardinfo,
ARRAY_SIZE(igep2_i2c3_boardinfo));


In linux-omap-2.6.37-6/arch/arm/mach-omap2/board-igep00x0.c I see the similar bindings which I assume igepoo20 inherits/overides:
------------------------current----------------------------
static struct at24_platform_data at24c01_pdata __initdata = {
.byte_len = SZ_1K / 8,
.page_size = 8,
};

static struct i2c_board_info at24c01_i2c_board_info __initdata = {
I2C_BOARD_INFO("24c01", (0xa0 >> 1)),
.platform_data = &at24c01_pdata,
};

void __init igep00x0_at24c01_init(int busnum)
{
i2c_register_board_info(busnum, &at24c01_i2c_board_info, 1);


I cannot find any reference in either igep00x0.c or igep0020.c to module "at24" so cannot see where to reference "ft5x0x_ts" module to bind it to igepv2. Unfortunately, I cannot use the pre-installed spi ads7846 driver for resistive touch.

How do I change i2c3 bindings from eeprom "at24" to touchscreen "ft5x0x_ts"?

Peter

Accepted Answer

Monday, February 15 2016, 12:33 PM - #permalink
0
Hi peter,

2.6.37.y kernel doesn't have support for edt-ft5x06, this driver has support since kernel 3.6

I suggest :

Test your HW using a newer Kernel version, for example kernel 3.17.y. Follow the next tutorial: http://labs.isee.biz/index.php/Mainstream_U-Boot_and_Linux_kernel_on_the_IGEPv2. Use Kernel 3.17.y instead Kernel 3.15. Finally add dtb support for your touchscreen:

Once you validate your HW setup, backport edt-ft5x06 from kernel 3.6 to kernel 2.6.37. And add driver support to your board.c, maybe this thread can help you: https://e2e.ti.com/support/arm/sitara_arm/f/791/t/255787

Cheers!
The reply is currently minimized Show
Responses (1)
  • Accepted Answer

    peter
    peter
    Offline
    Tuesday, February 16 2016, 07:47 AM - #permalink
    0
    Hi Pau,
    Thanks for your quick answer. The solution is a bit more complex than I had hoped for but it keeps me from going down the wrong path. Thanks again.

    Peter
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat