Hi everyone,
I am trying to get a CYTMA568 multi-touch via I2C on Colibri-iMX6DL to work. I found the following Kernel-Patch to have the corresponding driver available: Add driver for Cypress Generation 5 touchscreen
Then I added the touch at my custom device tree as follows:
[ 0.394465] cyttsp5 1-0024: Error on deassert int r=-22
[ 0.399802] cyttsp5 1-0024: Fail initial startup r=-19
It seems there is something wrong with the configuration of “regmap” - the driver calls “regmap_bulk_read(…)”.
I guess the fsl i2c driver doesn’t support this - can you confirm this?
Is there any way to get this touch ready to work from yocto?
I2C connection seems to be correct as i2cdetect finds the cypress IC at 0x24.
It is a custom board. The touch is connected with i2c3 (SDA/SCL on SODIMM 194/196).
On the same bus there is an RTC M41T62. The interrupt signal is connected with GPIO7_IO10, the reset line of the touch only has a pullup.
As already mentioned, the I2C seems to work fine, as the slave responds to its address.
uname -a shows Linux colibri-imx6 5.4.47
yocto branch is dunfell
CONFIG_REGMAP_I2C is configured (even if I didn’t know this configure option before) - as well as CONFIG_REGMAP (checked with zcat /proc/config.gz)
i2cdetect, i2cdump and i2cget work with slave address 0x24 (read all 0x00). When using a differen slave address (like 0x20), the tools respond “read failed”, with 0x24 everything works.
Is there a second value missing in device-tree for the i2c slave for property “reg”. Currently I only have
reg = <0x24>;
Maybe there is a size entry missing for the regmap working correctly - but I don’t know how many registers the driver actually has, e.g.:
Please contact Cypress FAE support for bring-up of CYTMA568 with Linux.
I came to know that they have Linux support for it, but it requires (their) FAE contact.
Could you please update us if contacting Cypress FAEs solved your issues?
That would be helpful for our other community members like @loicdelorme who are facing the same situation as you.
Dear Mbehr,
I am new in linux driver. I am embedded programmer.
How can I add the Patch (https://www.spinics.net/lists/devicetree/msg207269.html) to my system and then creating dts file and compile by dtc.
as I found, first I must add patch to my os(ubuntu mate). |Then I should create dts file and compile it by dtc command. but I dont know how to add this link(https://www.spinics.net/lists/devicetree/msg207269.html) to my system.
thanks