Other Parts Discussed in Thread: TPS65217
Tool/software: Linux
Hi,
we are Interfacing 7'inch capacitive touch display to beaglebone black using i2c1. we updated the dts file to add touch driver under i2c1 in am335x-boneblack.dts file and please find dts modification below.
And we have inserted edt_ft5x06, but touch inputs are not sensing, Kindly suggest what wrong.
am335x-boneblack.dts:
#include <dt-bindings/interrupt-controller/irq.h>
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
status = "okay";
clock-frequency = <400000>;
ft5x06_ts@38 {
compatible = "ft5x06-ts";
reg = <0x38>;
interrupt-parent = <&gpio0>;
/*interrupts = <28 IRQ_TYPE_LEVEL_LOW>; gpio 31 */
interrupts-extended = <&gpio0 28 IRQ_TYPE_EDGE_FALLING>;
wakeup-gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
};
};
Terminal window:
root@am335x-evm:/lib/modules/4.14.67-gd315a9bb00/kernel/drivers/input/touchscreen# insmod edt-ft5x06.ko
root@am335x-evm:/lib/modules/4.14.67-gd315a9bb00/kernel/drivers/input/touchscreen# modprobe edt-ft5x06.ko
modprobe: FATAL: Module edt-ft5x06.ko not found in directory /lib/modules/4.14.67-gd315a9bb00
root@am335x-evm:~# lsmod
Module Size Used by
edt_ft5x06 20480 0
sha512_generic 20480 0
sha512_arm 24576 0
sha256_generic 20480 0
sha1_generic 16384 0
sha1_arm_neon 20480 0
sha1_arm 16384 1 sha1_arm_neon
md5 16384 0
aes_arm_bs 20480 0
crypto_simd 16384 1 aes_arm_bs
cryptd 24576 1 crypto_simd
des_generic 28672 0
cbc 16384 0
xfrm_user 32768 2
xfrm4_tunnel 16384 0
ipcomp 16384 0
xfrm_ipcomp 16384 1 ipcomp
esp4 20480 0
ah4 16384 0
af_key 36864 0
xfrm_algo 16384 5 xfrm_user,esp4,ah4,af_key,xfrm_ipcomp
bc_example 16384 0
pru_rproc 20480 0
pruss_intc 16384 1 pru_rproc
pruss 16384 1 pru_rproc
usb_f_acm 16384 1
u_serial 20480 3 usb_f_acm
usb_f_ecm 16384 1
musb_dsps 20480 0
phy_am335x 16384 2
phy_generic 16384 1 phy_am335x
musb_hdrc 98304 1 musb_dsps
phy_am335x_control 16384 1 phy_am335x
g_multi 16384 0
usb_f_mass_storage 40960 2 g_multi
usb_f_rndis 24576 2 g_multi
u_ether 20480 3 usb_f_ecm,g_multi,usb_f_rndis
libcomposite 53248 5 usb_f_ecm,usb_f_acm,usb_f_mass_storage,g_multi,usb_f_rndis
udc_core 28672 8 usb_f_ecm,usb_f_acm,usb_f_mass_storage,u_serial,musb_hdrc,u_ether,usb_f_rndis,libcomposite
snd_soc_simple_card 16384 0
snd_soc_simple_card_utils 16384 1 snd_soc_simple_card
pm33xx 16384 0
wkup_m3_ipc 16384 1 pm33xx
wkup_m3_rproc 16384 1
remoteproc 40960 3 pru_rproc,wkup_m3_rproc,wkup_m3_ipc
pvrsrvkm 413696 1 bc_example
omap_aes_driver 24576 0
crypto_engine 16384 1 omap_aes_driver
omap_crypto 16384 1 omap_aes_driver
omap_sham 28672 0
ti_emif_sram 16384 1 pm33xx
pruss_soc_bus 16384 0
at24 16384 0
rtc_omap 20480 2
musb_am335x 16384 0
omap_wdt 16384 0
sch_fq_codel 20480 3
uio_module_drv 16384 0
uio 20480 1 uio_module_drv
ftdi_sio 40960 0
usbserial 36864 1 ftdi_sio
usbcore 204800 3 ftdi_sio,musb_hdrc,usbserial
usb_common 16384 6 phy_am335x,udc_core,musb_hdrc,libcomposite,musb_dsps,usbcore
cryptodev 45056 1
root@am335x-evm:~# ps -aef
UID PID PPID C STIME TTY TIME CMD
root 1 0 1 01:53 ? 00:00:04 /sbin/init
root 2 0 0 01:53 ? 00:00:00 [kthreadd]
root 3 2 0 01:53 ? 00:00:00 [kworker/0:0]
root 4 2 0 01:53 ? 00:00:00 [kworker/0:0H]
root 5 2 0 01:53 ? 00:00:00 [kworker/u2:0]
root 6 2 0 01:53 ? 00:00:00 [mm_percpu_wq]
root 7 2 0 01:53 ? 00:00:00 [ksoftirqd/0]
root 8 2 0 01:53 ? 00:00:00 [rcu_preempt]
root 9 2 0 01:53 ? 00:00:00 [rcu_sched]
root 10 2 0 01:53 ? 00:00:00 [rcu_bh]
root 11 2 0 01:53 ? 00:00:00 [kdevtmpfs]
root 12 2 0 01:53 ? 00:00:00 [netns]
root 13 2 0 01:53 ? 00:00:00 [kworker/0:1]
root 14 2 0 01:53 ? 00:00:00 [oom_reaper]
root 15 2 0 01:53 ? 00:00:00 [writeback]
root 16 2 0 01:53 ? 00:00:00 [kcompactd0]
root 17 2 0 01:53 ? 00:00:00 [crypto]
root 18 2 0 01:53 ? 00:00:00 [kblockd]
root 19 2 0 01:53 ? 00:00:00 [edac-poller]
root 20 2 0 01:53 ? 00:00:00 [watchdogd]
root 21 2 0 01:53 ? 00:00:00 [rpciod]
root 22 2 0 01:53 ? 00:00:00 [xprtiod]
root 23 2 0 01:53 ? 00:00:00 [kswapd0]
root 24 2 0 01:53 ? 00:00:00 [nfsiod]
root 36 2 0 01:53 ? 00:00:00 [kpcitest]
root 37 2 0 01:53 ? 00:00:00 [kworker/u2:1]
root 39 2 0 01:53 ? 00:00:00 [irq/58-48060000]
root 40 2 0 01:53 ? 00:00:01 [kworker/0:2]
root 41 2 0 01:53 ? 00:00:00 [irq/54-48038000]
root 42 2 0 01:53 ? 00:00:00 [irq/53-48038000]
root 43 2 0 01:53 ? 00:00:00 [ipv6_addrconf]
root 44 2 0 01:53 ? 00:00:01 [mmcqd/0]
root 45 2 0 01:53 ? 00:00:00 [kworker/0:3]
root 46 2 0 01:53 ? 00:00:00 [irq/32-44e0b000]
root 47 2 0 01:53 ? 00:00:00 [kworker/0:4]
root 48 2 0 01:53 ? 00:00:00 [irq/59-tps65217]
root 49 2 0 01:53 ? 00:00:00 [irq/33-4802a000]
root 50 2 0 01:53 ? 00:00:00 [irq/34-4819c000]
root 51 2 0 01:53 ? 00:00:00 [kworker/0:1H]
root 52 2 0 01:53 ? 00:00:00 [mmcqd/1]
root 53 2 0 01:53 ? 00:00:00 [mmcqd/1boot0]
root 54 2 0 01:53 ? 00:00:00 [mmcqd/1boot1]
root 55 2 0 01:53 ? 00:00:00 [mmcqd/1rpmb]
root 56 2 0 01:53 ? 00:00:00 [jbd2/mmcblk0p2-]
root 57 2 0 01:53 ? 00:00:00 [ext4-rsv-conver]
root 68 2 0 01:53 ? 00:00:00 [cryptodev_queue]
root 71 1 0 01:53 ? 00:00:01 /lib/systemd/systemd-journald
root 86 2 0 01:53 ? 00:00:00 [kworker/u2:2]
root 89 1 0 01:53 ? 00:00:01 /lib/systemd/systemd-udevd
systemd+ 96 1 0 01:53 ? 00:00:00 /lib/systemd/systemd-timesyncd
systemd+ 169 1 0 01:53 ? 00:00:00 /lib/systemd/systemd-networkd
root 173 1 0 01:53 ? 00:00:00 /sbin/syslogd -n
root 186 1 0 01:53 ? 00:00:00 /sbin/klogd -n
root 192 1 0 01:53 ? 00:00:00 /usr/sbin/crond -n
message+ 208 1 0 01:53 ? 00:00:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
rpc 212 1 0 01:53 ? 00:00:00 /usr/sbin/rpcbind
root 218 2 0 01:53 ? 00:00:00 [53500000.aes-en]
root 232 2 0 01:53 ? 00:00:00 [pvr_timer]
root 272 1 0 01:53 ? 00:00:00 /usr/sbin/atd -f
root 295 1 0 01:53 ? 00:00:00 /usr/sbin/rngd -f -r /dev/urandom
root 300 1 0 01:53 ? 00:00:00 /lib/systemd/systemd-logind
avahi 318 1 0 01:53 ? 00:00:00 avahi-daemon: running [am335x-evm.local]
root 338 2 0 01:53 ? 00:00:00 [ptp0]
avahi 340 318 0 01:53 ? 00:00:00 avahi-daemon: chroot helper
root 394 2 0 01:53 ? 00:00:00 [jbd2/mmcblk1p1-]
root 395 2 0 01:53 ? 00:00:00 [ext4-rsv-conver]
root 500 1 0 01:53 ? 00:00:00 /usr/sbin/snmpd -Ls0-6d -a -f
redis 506 1 0 01:53 ? 00:00:01 /usr/bin/redis-server 127.0.0.1:6379
systemd+ 512 1 0 01:53 ? 00:00:00 /lib/systemd/systemd-resolved
root 519 1 0 01:53 ? 00:00:00 /usr/sbin/lighttpd -D -f /etc/lighttpd.conf
root 522 1 0 01:53 tty1 00:00:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
root 526 1 0 01:53 ttyS0 00:00:00 /bin/login --
root 551 2 0 01:53 ? 00:00:00 [file-storage]
root 554 1 0 01:53 ttyGS0 00:00:00 /sbin/agetty -8 -L ttyGS0 115200 xterm
rpcuser 560 1 0 01:53 ? 00:00:00 /usr/sbin/rpc.statd -F
root 576 2 0 01:53 ? 00:00:00 [pvr_workqueue]
root 747 1 0 01:54 ? 00:00:00 /usr/sbin/telnetd
nobody 756 1 0 01:54 ? 00:00:00 /usr/sbin/thttpd -d /srv/www -p 8080
root 760 1 0 01:54 ? 00:00:00 /lib/systemd/systemd --user
root 761 760 0 01:54 ? 00:00:00 (sd-pam)
root 765 526 0 01:54 ttyS0 00:00:01 -sh
root 829 1 0 01:55 ? 00:00:00 /usr/libexec/ipsec/starter --daemon charon --nofork
root 865 829 0 01:55 ? 00:00:00 /usr/libexec/ipsec/charon
root 989 1 0 01:57 ? 00:00:00 /sbin/agetty -8 -L ttyS3 115200 xterm
root 990 765 0 01:57 ttyS0 00:00:00 ps -aef
root@am335x-evm:~# touch
touch touchpad-edge-detector
root@am335x-evm:~# touch
touch touchpad-edge-detector
root@am335x-evm:~# touchpad-edge-detector
Usage: touchpad-edge-detector 12x34 /dev/input/event0This tool reads the touchpad events from the kernel and calculates
the minimum and maximum for the x and y coordinates, respectively.
The first argument is the physical size of the touchpad in mm.
root@am335x-evm:~#