Hi,guys
BSP: LINUX 3.14
code: edt-ft5x06.c
chip:imx6q
CONFIG_TOUCHSCREEN_EDT_FT5X06=y
I add this in my .dts file:
ft5x06_ts@38 {
compatible = "ft5x06-ts,ft5x06-ts";
reg = <0x38>;
interrupt-parent = <&gpio6>;
interrupts = <7 2>;
wake-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio6 16 GPIO_ACTIVE_LOW>;
When I starting system,got this:
edt_ft5x06 2-0038: no platform data?
edt_ft5x06: probe of 2-0038 failed with error -22
what should I do now?
Thanks!
Solved! Go to Solution.
Hi,
I think 3.14 kernel's ft5x06 driver does not support device tree bindings.
Please try the attached patch [Input: edt-ft5x06 - add DT support].
Regards
bus: 'i2c': add driver edt_ft5x06
bus: 'i2c': driver_probe_device: matched device 1-0038 with driver edt_ft5x06
bus: 'i2c': really_probe: probing driver edt_ft5x06 with device 1-0038
edt_ft5x06 1-0038: no default pinctrl state
edt_ft5x06 1-0038: probe
edt_ft5x06 1-0038: no platform data?
edt_ft5x06: probe of 1-0038 failed with error -22
i2c-core: driver [edt_ft5x06] registered
Above given is the dmesg output that shown in my yocto
My device tree updation is shown below
smarc_i2c_cam: i2c-gpio-1 {
compatible = "i2c-gpio";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_smx6_i2c_gpio_1>;
gpios =
<&gpio4 10 0>, /* sda */
<&gpio1 6 0>; /* scl */
#address-cells = <1>;
#size-cells = <0>;
i2c-gpio,delay-us = <2>;
polytouch: edt_ft5x06@38 {
compatible = "edt,edt-ft5x06";
reg = <0x38>;
pinctrl-names = "default";
pinctrl-1 = <&edt_ft5x06_pins>;
interrupt-parent = <&gpio3>;
interrupts = <1 8>;
};
};
and also my board is smarc-samx6i (imx6q"Freescale" processor) Linux kernel is 3.10.17
But touch is not responding even the i2c also not responding is that any thing else i need to take care of!!
All suggestions are welcome
Hi
Thank you very much,it can be use!
But if i touch top left corner,the mouse run to bottom right corner.
It's my chip's type problem?
Not necessarily. Maybe you have to calibrate your touchscreen. For example, if you use X window manager, run "xinput_calibrator" program.
When i am trying to run "xinput_calibrator" i am getting following message
Unable to connect to X server
:smileyconfused:
if it does not support device tree bindings why do you use dts file ?
From original post :
"I add this in my .dts file:.."
Hi
Laszlo Timko is right.it can be use now!
I don't know it does not supprt DTS,so I try again and again!
Hi zhen
please also check pinctrl property as described on below example
linux-2.6-imx.git - Freescale i.MX Linux Tree
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------