2008-04-30 11:55:20 BF527 EZKIT LITE: max1233 driver ported, but problems with event reporting
Konstantin Hartwich (GERMANY)
Message: 55303 hey
i had to port the ad7877 driver used by many many boards from ADI to the MAX1233 touchscreen controller.
i will try to post it as patch as sooon as possible...meanwhile here the sources directly
the communication to the chip works fine. i can read the stuff. had to bother with the spi driver also, since /CS is beeing risen between every 16bit word.
now the problem arises that after release of pen, it seems to report some noise events that disturb really badly.
to see that, you need to : echo 1 > /sys/bus/spi/drivers/max1233/spi0.2/doirqio
it is just a flag enabling, dont think much of the name..
spi_bfin...c is the changed one from the current 2008 release..
safely replace it, backing up ofcorse. main change is the csactivate() and deactivate() stuff in the read write funct..just diff and zou will see.
in max1233.c you will need to set manually the FLIP_TS stuff, to enable flipping of coordinates, since i enabled it in the kbuild and makefile...
it seems to be a timing issue, cause when the printk stuff is enables in the calculation function, it works right. but really dont want to use stuff like spin waiting.
max1233.h
max1233.c
spi_bfin5xx.c
QuoteReplyEditDelete
2008-05-01 03:50:55 Re: BF527 EZKIT LITE: max1233 driver ported, but problems with event reporting
Konstantin Hartwich (GERMANY)
Message: 55327
forgot the ezkit.c, needs to go into arch stuff search for it and diff to get modifications
ezkit.c
QuoteReplyEditDelete
2008-06-18 07:48:55 Re: BF527 EZKIT LITE: max1233 driver ported, but problems with event reporting
John Soerensen (DENMARK)
Message: 57516
Hi Konstantin,
Thanks for the driver, I really appreciate it. :-)
But I have a problem and I'm not sure if that is the you mention in your post above.
When I enable the reporting using the "echo 1 > /sys....." or runs the event_test program, I only get few bursts of data from the spi.
Do you have an idea where to look for the reason?
Thanks in advance
John
QuoteReplyEditDelete
2008-06-19 05:10:52 Re: BF527 EZKIT LITE: max1233 driver ported, but problems with event reporting
Konstantin Hartwich (GERMANY)
Message: 57578
might be that the driver stucks due to timig problems..
never mind. take this one, for me it works so far.
i have replaced the touch pressure computing function wit a static =1000 assignment when there are touching events incoming. so tslib works pretty well with that..
also, there was a spi timing issue. although the chip is specified to run up to 10 MHz which is far beyound what we need, i had to turn it down to 1 Mhz, since the max1233 was setting the next rising edge up on successfull reading of the regs (see datasheet) and somehow it keept on reading even if there was no touch, so it was reading bullsh...But this one works fine now. i had to trigger to risingedge of PENIRQ to read when completed.
if you have the time feel free to improve it and experiment. i think there is also kind of an irq issue.
the echo 1 > ... stuff is a flag that enables the reading of incoming and calculated event values that are going to send to the input device interface. see in code where the is the computing of the values..dont remember what the name was.:)
max1233_driver.tar.gz
QuoteReplyEditDelete
2008-06-20 03:19:13 Re: BF527 EZKIT LITE: max1233 driver ported, but problems with event reporting
John Soerensen (DENMARK)
Message: 57609
Great, now it works. Thanks a lot. :-)
I Think you were right about the timing issue, because now I don't get the bursts of events anymore.
Maybe I'll try an tweek it a little bit. It responds very well to pen or fingernail touch, but "soft finger" touch, that I am using in my application, isn't received very well. It might be a touch panel issue, but I will try to investigate it.
John
QuoteReplyEditDelete
2009-02-02 08:18:15 Re: BF527 EZKIT LITE: max1233 driver ported, but problems with event reporting
Maha lakshmi (INDIA)
Message: 68669
Hi,
I want to use your MAX1233 driver for my BF527-EZ KIT- Rev 1.5. I'm new to device driver. Please tell me the meaning of below functions.
VRPAIR(VLEV_100, 400000000),
VRPAIR(VLEV_105, 426000000),
VRPAIR(VLEV_110, 500000000),
VRPAIR(VLEV_115, 533000000),
VRPAIR(VLEV_120, 600000000),
Thanks,
Maha
QuoteReplyEditDelete
2009-02-02 08:45:10 Re: BF527 EZKIT LITE: max1233 driver ported, but problems with event reporting
Robin Getz (UNITED STATES)
Message: 68672
Maha:
We don't support this driver.
-Robin
QuoteReplyEditDelete
2009-10-28 13:16:45 Re: BF527 EZKIT LITE: max1233 driver ported, but problems with event reporting
Marcos Matsuo (BRAZIL)
Message: 81820
I'm trying to use the touchscreen of BF527 - EZkit Lite 1.5. For that, I'm using the files from Hartwitch (in max1233_driver.tar.gz).
But I'm having some problems. I would like to know to which release I should apply that files. Now, I'm using the last (2009R1-RC6).
When I try to compile the kernel, this problems are shown:
...
arch/blackfin/mach-bf527/boards/ezkit.c:41:33: error: linux/pata_platform.h: Arquivo ou diretório inexistente
arch/blackfin/mach-bf527/boards/ezkit.c:142: error: unknown field ‘multipoint’ specified in initializer
arch/blackfin/mach-bf527/boards/ezkit.c: In function ‘native_machine_restart’:
arch/blackfin/mach-bf527/boards/ezkit.c:1073: error: implicit declaration of function ‘bfin_gpio_reset_spi0_ssel1’
make[2]: ** [arch/blackfin/mach-bf527/boards/ezkit.o] Erro 1
make[1]: ** [arch/blackfin/mach-bf527/boards] Erro 2
make[1]: Saindo do diretório `/mnt/disco2/uClinux-dist/linux-2.6.x'
make: ** [linux] Erro 1
thanks in advance,
Matsuo.
QuoteReplyEditDelete
2009-10-28 15:41:12 Re: BF527 EZKIT LITE: max1233 driver ported, but problems with event reporting
Robin Getz (UNITED STATES)
Message: 81825
Marcos:
Same answer that I gave in Feb - We don't support the touchscreen on that development system -- sorry - you are on your own.
-Robin