您尚未登录。

楼主 #1 2019-09-25 18:22:49

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

ft6336触摸ic问题

官方给的iic设备地址是0x38,但是i2cdetect出来的是0x48,很奇怪!!!
修改设备树如下

&i2c0 {
	status = "okay";
	focaltech@48{ 
	compatible = "focaltech,fts";	
	reg = <0x48>;  					
	interrupt-parent = <&pio>;				
	interrupts = <1 5 IRQ_TYPE_LEVEL_LOW>;
	focaltech,reset-gpio = <1 3 GPIO_ACTIVE_LOW>; 
	focaltech,irq-gpio = <1 5 IRQ_TYPE_LEVEL_LOW>; 

	focaltech,max-touch-number = <1>;			
	focaltech,display-coords =  <0 0 720 720>;      		
	};

};
&pio {
        fts_irq_pin: fts_irq_pin@0 {
                pins = "PB5";
                function = "gpio_in";
        };
};

目的是用pb5做中断检测,pb3做res
启动信息中有这么一段

 0.652394] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/inpu0
[    0.660861] [FTS]fts_ts_init: Enter
[    0.664388] [FTS]fts_ts_init: Exit(1493)
[    0.669123] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.675913] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.680624] i2c /dev entries driver
[    0.685342] [FTS]fts_ts_probe: Enter
[    0.689051] [FTS]fts_parse_dt: Enter
[    0.692643] OF: /soc/i2c@01c2ac00/focaltech@48: could not get #gpio-cells fo0
[    0.702845] OF: /soc/i2c@01c2ac00/focaltech@48: could not get #gpio-cells fo0
[    0.713025] [FTS]max_touch_number=1
[    0.716509] [FTS]fts_parse_dt: Exit(1018)
[    0.720544] [FTS]fts_input_dev_init: Enter
[    0.724891] input: fts_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/1
[    0.733314] [FTS]fts_input_dev_init: Exit(254)
[    0.737808] [FTS]fts_ctpm_get_upgrade_array: Enter
[    0.742594] [FTS][Info]CHIP TYPE ID = 0x6426
[    0.777550] [FTS][Error]hidi2c change to stdi2c error!!
[    0.782777] [FTS]fts_ctpm_get_upgrade_array: Exit(182)
[    0.787931] [FTS]fts_gpio_configure: Enter
[    0.792022] [FTS]fts_gpio_configure: Exit(873)
[    0.796459] ------------[ cut here ]------------
[    0.801104] WARNING: CPU: 0 PID: 1 at drivers/gpio/gpiolib.c:106 gpio_to_des0
[    0.809108] invalid GPIO -22

是不是说明gpio没配置对?
还有一句

[    0.777550] [FTS][Error]hidi2c change to stdi2c error!!

完整启动信息如下

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.15-licheepi-zero (mrg@mrg-machine) (gcc versi9
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructie
[    0.000000] OF: fdt:Machine model: Lichee Pi Zero with Dock
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @c3d65000 s24716 r8192 d24436 u5734
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pa2
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 ro2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 53096K/63508K available (6144K kernel code, 201K rwdata,)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e05000   (  62 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a32440   ( 202 kB)
[    0.000000]        .bss : 0xc0a34000 - 0xc0a7984c   ( 279 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (v.
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycless
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398s
[    0.008085] Switching to timer-based delay loop, resolution 41ns
[    0.014284] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, maxs
[    0.023759] Console: colour dummy device 80x30
[    0.028318] Calibrating delay loop (skipped), value calculated using timer f)
[    0.038772] pid_max: default: 32768 minimum: 301
[    0.043606] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050328] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.058161] CPU: Testing write buffer coherency: ok
[    0.063588] /cpus/cpu@0 missing clock-frequency property
[    0.068996] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.075156] Setting up static identity map for 0x40100000 - 0x40100058
[    0.082491] smp: Bringing up secondary CPUs ...
[    0.087184] smp: Brought up 1 node, 1 CPU
[    0.091276] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.097549] CPU: All CPU(s) started in SVC mode.
[    0.103066] devtmpfs: initialized
[    0.109586] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5
[    0.117617] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
[    0.127613] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.133967] pinctrl core: initialized pinctrl subsystem
[    0.140360] NET: Registered protocol family 16
[    0.145465] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.153631] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint.
[    0.161788] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.179798] SCSI subsystem initialized
[    0.184036] usbcore: registered new interface driver usbfs
[    0.189656] usbcore: registered new interface driver hub
[    0.195186] usbcore: registered new device driver usb
[    0.200563] pps_core: LinuxPPS API ver. 1 registered
[    0.205654] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
[    0.214884] PTP clock support registered
[    0.219115] Advanced Linux Sound Architecture Driver Initialized.
[    0.227152] clocksource: Switched to clocksource arch_sys_counter
[    0.234282] simple-framebuffer 43e05000.framebuffer: framebuffer at 0x43e0500
[    0.244948] simple-framebuffer 43e05000.framebuffer: format=x8r8g8b8, mode=70
[    0.263331] Console: switching to colour frame buffer device 90x45
[    0.277804] simple-framebuffer 43e05000.framebuffer: fb0: simplefb registere!
[    0.295257] NET: Registered protocol family 2
[    0.300421] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.307559] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.314006] TCP: Hash tables configured (established 1024 bind 1024)
[    0.320557] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.326509] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.333131] NET: Registered protocol family 1
[    0.338240] RPC: Registered named UNIX socket transport module.
[    0.344248] RPC: Registered udp transport module.
[    0.349111] RPC: Registered tcp transport module.
[    0.353895] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.362738] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.378441] NFS: Registering the id_resolver key type
[    0.383613] Key type id_resolver registered
[    0.387989] Key type id_legacy registered
[    0.392135] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.402933] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[    0.410546] io scheduler noop registered
[    0.414551] io scheduler deadline registered
[    0.419179] io scheduler cfq registered (default)
[    0.428361] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.506143] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.515950] console [ttyS0] disabled
[    0.539914] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 34, base_baud = 1A
[    0.549002] console [ttyS0] enabled
[    0.549002] console [ttyS0] enabled
[    0.556051] bootconsole [earlycon0] disabled
[    0.556051] bootconsole [earlycon0] disabled
[    0.565448] [drm] Initialized
[    0.571618] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[    0.576701] 4 cmdlinepart partitions found on MTD device spi32766.0
[    0.583086] Creating 4 MTD partitions on "spi32766.0":
[    0.588262] 0x000000000000-0x000000100000 : "uboot"
[    0.594854] 0x000000100000-0x000000110000 : "dtb"
[    0.601183] 0x000000110000-0x000000510000 : "kernel"
[    0.607763] 0x000000510000-0x000001000000 : "rootfs"
[    0.614556] libphy: Fixed MDIO Bus: probed
[    0.619051] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.625577] ehci-platform: EHCI generic platform driver
[    0.630947] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.637181] ohci-platform: OHCI generic platform driver
[    0.642887] udc-core: couldn't find an available UDC - added [g_cdc] to lists
[    0.652394] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/inpu0
[    0.660861] [FTS]fts_ts_init: Enter
[    0.664388] [FTS]fts_ts_init: Exit(1493)
[    0.669123] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.675913] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.680624] i2c /dev entries driver
[    0.685342] [FTS]fts_ts_probe: Enter
[    0.689051] [FTS]fts_parse_dt: Enter
[    0.692643] OF: /soc/i2c@01c2ac00/focaltech@48: could not get #gpio-cells fo0
[    0.702845] OF: /soc/i2c@01c2ac00/focaltech@48: could not get #gpio-cells fo0
[    0.713025] [FTS]max_touch_number=1
[    0.716509] [FTS]fts_parse_dt: Exit(1018)
[    0.720544] [FTS]fts_input_dev_init: Enter
[    0.724891] input: fts_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/1
[    0.733314] [FTS]fts_input_dev_init: Exit(254)
[    0.737808] [FTS]fts_ctpm_get_upgrade_array: Enter
[    0.742594] [FTS][Info]CHIP TYPE ID = 0x6426
[    0.777550] [FTS][Error]hidi2c change to stdi2c error!!
[    0.782777] [FTS]fts_ctpm_get_upgrade_array: Exit(182)
[    0.787931] [FTS]fts_gpio_configure: Enter
[    0.792022] [FTS]fts_gpio_configure: Exit(873)
[    0.796459] ------------[ cut here ]------------
[    0.801104] WARNING: CPU: 0 PID: 1 at drivers/gpio/gpiolib.c:106 gpio_to_des0
[    0.809108] invalid GPIO -22
[    0.811985] Modules linked in:
[    0.815044] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.10.15-licheepi-zero 7
[    0.822340] Hardware name: Allwinner sun8i Family
[    0.827067] [<c010e3bc>] (unwind_backtrace) from [<c010b158>] (show_stack+0x)
[    0.834809] [<c010b158>] (show_stack) from [<c0346864>] (dump_stack+0x84/0x9)
[    0.842028] [<c0346864>] (dump_stack) from [<c011b834>] (__warn+0xe8/0x100)
[    0.848983] [<c011b834>] (__warn) from [<c011b884>] (warn_slowpath_fmt+0x38/)
[    0.856459] [<c011b884>] (warn_slowpath_fmt) from [<c037f6e0>] (gpio_to_desc)
[    0.864461] [<c037f6e0>] (gpio_to_desc) from [<c04bb9e8>] (fts_reset_proc+0x)
[    0.872198] [<c04bb9e8>] (fts_reset_proc) from [<c04bbeb4>] (fts_ts_probe+0x)
[    0.880109] [<c04bbeb4>] (fts_ts_probe) from [<c04cc3a0>] (i2c_device_probe+)
[    0.888195] [<c04cc3a0>] (i2c_device_probe) from [<c0415360>] (driver_probe_)
[    0.896888] [<c0415360>] (driver_probe_device) from [<c041390c>] (bus_for_ea)
[    0.905404] [<c041390c>] (bus_for_each_drv) from [<c0415058>] (__device_atta)
[    0.913659] [<c0415058>] (__device_attach) from [<c04146e0>] (bus_probe_devi)
[    0.921830] [<c04146e0>] (bus_probe_device) from [<c0412ad0>] (device_add+0x)
[    0.929740] [<c0412ad0>] (device_add) from [<c04cdbb8>] (i2c_new_device+0x15)
[    0.937477] [<c04cdbb8>] (i2c_new_device) from [<c04ce230>] (i2c_register_ad)
[    0.946081] [<c04ce230>] (i2c_register_adapter) from [<c04d11ec>] (mv64xxx_i)
[    0.954946] [<c04d11ec>] (mv64xxx_i2c_probe) from [<c0416d0c>] (platform_drv)
[    0.963461] [<c0416d0c>] (platform_drv_probe) from [<c0415360>] (driver_prob)
[    0.972322] [<c0415360>] (driver_probe_device) from [<c04154b8>] (__driver_a)
[    0.980750] [<c04154b8>] (__driver_attach) from [<c0413864>] (bus_for_each_d)
[    0.988921] [<c0413864>] (bus_for_each_dev) from [<c04148f4>] (bus_add_drive)
[    0.997176] [<c04148f4>] (bus_add_driver) from [<c0415d88>] (driver_register)
[    1.005172] [<c0415d88>] (driver_register) from [<c0101860>] (do_one_initcal)
[    1.013345] [<c0101860>] (do_one_initcall) from [<c0900dc4>] (kernel_init_fr)
[    1.022036] [<c0900dc4>] (kernel_init_freeable) from [<c066e6b0>] (kernel_in)
[    1.030208] [<c066e6b0>] (kernel_init) from [<c01076f8>] (ret_from_fork+0x14)
[    1.037856] ---[ end trace fd81e8c4e68e0ce6 ]---
[    1.077169] ------------[ cut here ]------------
[    1.081803] WARNING: CPU: 0 PID: 1 at drivers/gpio/gpiolib.c:106 gpio_to_des0
[    1.089820] invalid GPIO -22
[    1.092697] Modules linked in:
[    1.095746] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W       4.10.15-7
[    1.104254] Hardware name: Allwinner sun8i Family
[    1.108969] [<c010e3bc>] (unwind_backtrace) from [<c010b158>] (show_stack+0x)
[    1.116708] [<c010b158>] (show_stack) from [<c0346864>] (dump_stack+0x84/0x9)
[    1.123924] [<c0346864>] (dump_stack) from [<c011b834>] (__warn+0xe8/0x100)
[    1.130878] [<c011b834>] (__warn) from [<c011b884>] (warn_slowpath_fmt+0x38/)
[    1.138353] [<c011b884>] (warn_slowpath_fmt) from [<c037f6e0>] (gpio_to_desc)
[    1.146351] [<c037f6e0>] (gpio_to_desc) from [<c04bba08>] (fts_reset_proc+0x)
[    1.154087] [<c04bba08>] (fts_reset_proc) from [<c04bbeb4>] (fts_ts_probe+0x)
[    1.161997] [<c04bbeb4>] (fts_ts_probe) from [<c04cc3a0>] (i2c_device_probe+)
[    1.170080] [<c04cc3a0>] (i2c_device_probe) from [<c0415360>] (driver_probe_)
[    1.178771] [<c0415360>] (driver_probe_device) from [<c041390c>] (bus_for_ea)
[    1.187286] [<c041390c>] (bus_for_each_drv) from [<c0415058>] (__device_atta)
[    1.195542] [<c0415058>] (__device_attach) from [<c04146e0>] (bus_probe_devi)
[    1.203711] [<c04146e0>] (bus_probe_device) from [<c0412ad0>] (device_add+0x)
[    1.211621] [<c0412ad0>] (device_add) from [<c04cdbb8>] (i2c_new_device+0x15)
[    1.219358] [<c04cdbb8>] (i2c_new_device) from [<c04ce230>] (i2c_register_ad)
[    1.227961] [<c04ce230>] (i2c_register_adapter) from [<c04d11ec>] (mv64xxx_i)
[    1.236824] [<c04d11ec>] (mv64xxx_i2c_probe) from [<c0416d0c>] (platform_drv)
[    1.245339] [<c0416d0c>] (platform_drv_probe) from [<c0415360>] (driver_prob)
[    1.254200] [<c0415360>] (driver_probe_device) from [<c04154b8>] (__driver_a)
[    1.262628] [<c04154b8>] (__driver_attach) from [<c0413864>] (bus_for_each_d)
[    1.270798] [<c0413864>] (bus_for_each_dev) from [<c04148f4>] (bus_add_drive)
[    1.279053] [<c04148f4>] (bus_add_driver) from [<c0415d88>] (driver_register)
[    1.287047] [<c0415d88>] (driver_register) from [<c0101860>] (do_one_initcal)
[    1.295217] [<c0101860>] (do_one_initcall) from [<c0900dc4>] (kernel_init_fr)
[    1.303907] [<c0900dc4>] (kernel_init_freeable) from [<c066e6b0>] (kernel_in)
[    1.312076] [<c066e6b0>] (kernel_init) from [<c01076f8>] (ret_from_fork+0x14)
[    1.319694] ---[ end trace fd81e8c4e68e0ce7 ]---
[    1.537570] [FTS][Info]TP Ready, Device ID = 0x64
[    1.542552] [FTS][Info]Create proc entry success!
[    1.547370] [FTS][Info][EX]: sysfs_create_group() succeeded!!
[    1.553109] [FTS][Mode]create sysfs succeeded
[    1.557494] [FTS]fts_ts_probe: Exit(1248)
[    1.562524] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, no)
[    1.627199] sunxi-mmc 1c0f000.mmc: base:0xc406b000 irq:23
[    1.687177] sunxi-mmc 1c10000.mmc: base:0xc406f000 irq:24
[    1.693554] usbcore: registered new interface driver usbhid
[    1.699215] usbhid: USB HID core driver
[    1.704555] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not d
[    1.712602] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.719807] NET: Registered protocol family 17
[    1.724369] Key type dns_resolver registered
[    1.728904] Registering SWP/SWPB emulation handler
[    1.742472] usb_phy_generic.0.auto supply vcc not found, using dummy regulatr
[    1.750442] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.756205] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus1
[    1.765494] hub 1-0:1.0: USB hub found
[    1.769489] hub 1-0:1.0: 1 port detected
[    1.774215] using random self ethernet address
[    1.778797] using random host ethernet address
[    1.784367] usb0: HOST MAC 0a:30:0d:44:dc:75
[    1.788800] usb0: MAC ca:9f:17:2d:a7:be
[    1.792684] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day8
[    1.800210] g_cdc gadget: g_cdc ready
[    1.806437] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.815360] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:)
[    1.823682] vcc5v0: disabling
[    1.826658] ALSA device list:
[    1.829688]   #0: V3s Audio Codec
[    1.835979] random: fast init done
[    1.876174] random: crng init done
[    1.956363] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd),0
[    2.388200] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    2.395242] devtmpfs: mounted
[    2.399529] Freeing unused kernel memory: 1024K
Starting logging: OK
[    4.250520] ------------[ cut here ]------------
[    4.255181] WARNING: CPU: 0 PID: 82 at drivers/mtd/spi-nor/spi-nor.c:1182 sp4
[    4.264333] Writing at offset 144 into a NOR page. Writing partial pages may.
[    4.264338] Modules linked in:
[    4.279076] CPU: 0 PID: 82 Comm: touch Tainted: G        W       4.10.15-lic7
[    4.287325] Hardware name: Allwinner sun8i Family
[    4.292052] [<c010e3bc>] (unwind_backtrace) from [<c010b158>] (show_stack+0x)
[    4.299793] [<c010b158>] (show_stack) from [<c0346864>] (dump_stack+0x84/0x9)
[    4.307012] [<c0346864>] (dump_stack) from [<c011b834>] (__warn+0xe8/0x100)
[    4.313968] [<c011b834>] (__warn) from [<c011b884>] (warn_slowpath_fmt+0x38/)
[    4.321447] [<c011b884>] (warn_slowpath_fmt) from [<c04548a0>] (spi_nor_writ)
[    4.329706] [<c04548a0>] (spi_nor_write) from [<c044b6f4>] (mtd_writev+0xa4/)
[    4.337188] [<c044b6f4>] (mtd_writev) from [<c02fc160>] (jffs2_flash_writev+)
[    4.345275] [<c02fc160>] (jffs2_flash_writev) from [<c02f4fe0>] (jffs2_write)
[    4.353878] [<c02f4fe0>] (jffs2_write_dnode) from [<c02f96f0>] (jffs2_do_set)
[    4.362394] [<c02f96f0>] (jffs2_do_setattr) from [<c02f99ec>] (jffs2_setattr)
[    4.370393] [<c02f99ec>] (jffs2_setattr) from [<c020dc28>] (notify_change+0x)
[    4.378306] [<c020dc28>] (notify_change) from [<c021e8f4>] (utimes_common+0x)
[    4.386128] [<c021e8f4>] (utimes_common) from [<c021ea6c>] (do_utimes+0xb0/0)
[    4.393603] [<c021ea6c>] (do_utimes) from [<c021eba4>] (SyS_utimensat+0xa4/0)
[    4.400994] [<c021eba4>] (SyS_utimensat) from [<c0107640>] (ret_fast_syscall)
[    4.408967] ---[ end trace fd81e8c4e68e0ce9 ]---
Initializing random number generator... done.
Starting network: OK

Welcome to Buildroot
buildroot login: 
CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7 | VT102 | Offline | ttyUSB0 

离线

楼主 #2 2019-09-25 18:23:37

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: ft6336触摸ic问题

不知道引脚配置的对不对,请大佬指点一下

离线

#3 2019-09-25 18:51:07

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,336
积分: 9202

Re: ft6336触摸ic问题

是这个代码吗?

https://github.com/facebookincubator/Portal-Kernel/blob/master/drivers/input/touchscreen/focaltech/focaltech_flash.c


/************************************************************************
* Name: fts_ctpm_i2c_hid2std
* Brief:  HID to I2C
* Input: i2c info
* Output: no
* Return: fail =0
***********************************************************************/
int fts_ctpm_i2c_hid2std(struct i2c_client *client)
{
#if (FTS_CHIP_IDC)
	return 0;
#else
	u8 buf[5] = { 0 };
	int bRet = 0;

	buf[0] = 0xeb;
	buf[1] = 0xaa;
	buf[2] = 0x09;
	bRet = fts_i2c_write(client, buf, 3);
	usleep_range(10000, 11000);
	buf[0] = buf[1] = buf[2] = 0;
	fts_i2c_read(client, buf, 0, buf, 3);

	if ((buf[0] == 0xeb) && (buf[1] == 0xaa) && (buf[2] == 0x08)) {
		FTS_DEBUG("hidi2c change to stdi2c successful!!");
		bRet = 1;
	} else {
		FTS_ERROR("hidi2c change to stdi2c error!!");
		bRet = 0;
	}

	return bRet;
#endif
}




离线

楼主 #4 2019-09-25 18:54:48

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: ft6336触摸ic问题

是的是的,就是这个

离线

楼主 #5 2019-09-25 18:56:13

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: ft6336触摸ic问题

pb5和pb3引脚这么配置对吗,要修改dtsi吗

离线

#6 2019-09-25 19:02:15

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,336
积分: 9202

Re: ft6336触摸ic问题

https://github.com/OpenNuvoton/NUC970_Linux_Kernel/issues/23

[    0.692643] OF: /soc/i2c@01c2ac00/focaltech@48: could not get #gpio-cells fo0
[    0.702845] OF: /soc/i2c@01c2ac00/focaltech@48: could not get #gpio-cells fo0

check if we forget a '#' in the front of gpio-cells

检查你设备树 gpio-cells 这个是不是缺了 #





离线

#7 2019-09-25 19:05:32

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,336
积分: 9202

Re: ft6336触摸ic问题

https://whycan.cn/t_1862.html#p17984

	focaltech,reset-gpio = <1 3 GPIO_ACTIVE_LOW>; 

检查一下, 你的设备树这样写是不是正确的?





离线

楼主 #8 2019-09-25 19:09:50

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: ft6336触摸ic问题

	focaltech,reset-gpio = <1 3 GPIO_ACTIVE_LOW>; 

这句写的是一样的,我检查一下#这个,dtsi我没改动,我看一下
感谢晕哥?

离线

楼主 #9 2019-09-26 16:08:11

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: ft6336触摸ic问题

还是不行,中断引脚设置不上去

[    0.642557] udc-core: couldn't find an available UDC - added [g_cdc] to lists
[    0.652077] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/inpu0
[    0.660521] [FTS]fts_ts_init: Enter
[    0.664046] [FTS]fts_ts_init: Exit(1493)
[    0.668795] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.675585] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.680331] i2c /dev entries driver
[    0.685229] [FTS]fts_ts_probe: Enter
[    0.688940] [FTS]fts_parse_dt: Enter
[    0.692535] [FTS]max_touch_number=1
[    0.696017] [FTS]fts_parse_dt: Exit(1018)
[    0.700076] [FTS]fts_input_dev_init: Enter
[    0.704440] input: fts_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/1
[    0.712883] [FTS]fts_input_dev_init: Exit(254)
[    0.717384] [FTS]fts_ctpm_get_upgrade_array: Enter
[    0.722169] [FTS][Info]CHIP TYPE ID = 0x6426
[    0.747533] [FTS][Error]hidi2c change to stdi2c error!!
[    0.752759] [FTS]fts_ctpm_get_upgrade_array: Exit(182)
[    0.757918] [FTS]fts_gpio_configure: Enter
[    0.762046] [FTS]fts_gpio_configure: Exit(873)
[    1.017550] [FTS][Info]TP Ready, Device ID = 0x64
[    1.022446] genirq: Setting trigger mode 10 for irq 42 failed (sunxi_pinctrl)
[    1.031753] [FTS][Error]Request irq failed!
[    1.035992] fts_ts: probe of 0-0048 failed with error -22
[    1.042417] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, no)
[    1.107171] sunxi-mmc 1c0f000.mmc: base:0xc406b000 irq:23
[    1.167161] sunxi-mmc 1c10000.mmc: base:0xc406f000 irq:24
[    1.022446] genirq: Setting trigger mode 10 for irq 42 failed (sunxi_pinctrl)

离线

楼主 #10 2019-09-26 16:10:27

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: ft6336触摸ic问题

这几个方法也试了
https://whycan.cn/t_1862.html#p17984

离线

#11 2019-09-26 16:16:22

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,336
积分: 9202

Re: ft6336触摸ic问题

你这个是哪个主控芯片?全志的? 用什么Linux版本?





离线

楼主 #12 2019-09-26 16:19:36

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: ft6336触摸ic问题

好了好了,我换了linux自带的ft5x06的驱动
添加了
.irq_bank_base = 1,
下面这个链接晕哥的总结是可以使用的
https://whycan.cn/t_1862.html#p17984

离线

楼主 #13 2019-09-26 16:20:35

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: ft6336触摸ic问题

全志v3s,放弃那份驱动了,用linux自带的,版本linux-zero-4.10.y

离线

#14 2019-09-26 16:36:10

jimmy
会员
注册时间: 2017-10-29
已发帖子: 316
积分: 315

Re: ft6336触摸ic问题

楼主搞定了吗

离线

楼主 #15 2019-09-27 14:35:11

zero
会员
注册时间: 2019-09-12
已发帖子: 33
积分: 33

Re: ft6336触摸ic问题

搞定了,你的有什么问题

离线

#16 2020-02-07 14:13:04

lemon_xu
会员
注册时间: 2020-02-07
已发帖子: 1
积分: 1

Re: ft6336触摸ic问题

楼主,第二个error----------- [    0.777550] [FTS][Error]hidi2c change to stdi2c error!!   如何解决的?

离线

#17 2024-03-27 15:30:03

future
会员
注册时间: 2021-11-28
已发帖子: 49
积分: 26

Re: ft6336触摸ic问题

楼主您好,ft6336触摸可以直接使用linux自带的ft5x06的驱动嘛,有没有发现什么问题?

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn