微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > 6589 有没有遇到 misc_register 注册失败

6589 有没有遇到 misc_register 注册失败

时间:10-02 整理:3721RD 点击:
有没有遇到(err = misc_register(&tpd_misc_device)) 这个注册不了的问题?
log会打印                 
[    1.454287] (1)[1:swapper/0][tpd_em_log] :register device successfully
[    2.283197] (2)[1:swapper/0]mtk-tpd: enter tpd_probe, 253
[    2.283631] (2)[1:swapper/0]mtk_tpd: TPD_RES_X = 720, TPD_RES_Y = 1280
[    2.283646] (2)[1:swapper/0]mtk-tpd: FocaLTEch FT5206 I2C touchscreen Driver (Built Aug  2 2013 @ 19:08:42)
[    2.295192] (3)[1:swapper/0]mtk-tpd:  ft5306 reset
[    2.417101] (2)[1:swapper/0][<c02df77c>] (misc_register+0x0/0x144) fROM [<c06b6834>] (tpd_probe+0x1a4/0x254)
[    2.417157] (2)[1:swapper/0][<c06b6690>] (tpd_probe+0x0/0x254) from [<c037f40c>] (i2c_device_probe+0xd4/0x118)
[    2.417498] (2)[1:swapper/0][<c0381794>] (i2c_register_driver+0x0/0xbc) from [<c0464284>] (tpd_local_init+0x28/0xc8)
[    2.417537] (2)[1:swapper/0][<c046425c>] (tpd_local_init+0x0/0xc8) from [<c0464c30>] (tpd_probe+0X20c/0x508)
[    2.417576] (2)[1:swapper/0][<c0464a24>] (tpd_probe+0x0/0x508) from [<c02eb104>] (platform_drv_probe+0x20/0x24)
[    2.418764] (2)[1:swapper/0][<c02df77c>] (misc_register+0x0/0x144) from [<c06b6834>] (tpd_probe+0x1a4/0x254)
[    2.418816] (2)[1:swapper/0][<c06b6690>] (tpd_probe+0x0/0x254) from [<c037f40c>] (i2c_device_probe+0xd4/0x118)
[    2.419146] (2)[1:swapper/0][<c0381794>] (i2c_register_driver+0x0/0xbc) from [<c0464284>] (tpd_local_init+0x28/0xc8)
[    2.419184] (2)[1:swapper/0][<c046425c>] (tpd_local_init+0x0/0xc8) from [<c0464c30>] (tpd_probe+0x20c/0x508)
[    2.419221] (2)[1:swapper/0][<c0464a24>] (tpd_probe+0x0/0x508) from [<c02eb104>] (platform_drv_probe+0x20/0x24)
[    2.419753] (2)[1:swapper/0]mtk_tpd: tpd_misc_device register failed
[    2.420172] (2)[1:swapper/0]mtk-tpd: ft5206 Touch Panel Device Probe PASS
[    2.420222] (3)[74:mtk-tpd]mtk-tpd: TPD touch_event_handler
[    2.420385] (2)[1:swapper/0]mtk-tpd: end tpd_local_init, 622
[    2.420397] (2)[1:swapper/0]mtk-tpd: [mtk-tpd]tpd_probe, tpd_driver_name=FT5206
[    2.420439] (2)[1:swapper/0]mtk-tpd: Cap touch panel driver
[    3.592798] (1)[1:init]init: [ service mtpd ]
[    6.803795] (3)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_calmat' r=0
[    6.804031] (3)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_debounce_time' r=0
[    6.804265] (3)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_mode' r=0
[    6.804498] (3)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_debounce_time0' r=0
[    6.804761] (3)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_debounce_time1' r=0
[    6.804998] (3)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_spl_num' r=0
[    6.805281] (3)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_pressure_threshold' r=0
[    6.805518] (3)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_auto_time_interval' r=0
[    6.805753] (3)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_sample_cnt' r=0
[    6.806004] (3)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_asamp' r=0
[    6.806335] (3)[1:init]init: command 'chown root diag /sys/module/tpd_debug/parameters/tpd_em_log' r=0
[    6.806580] (3)[1:init]init: command 'chown root diag /sys/module/tpd_debug/parameters/tpd_em_log_to_fs' r=0
[    7.001280] (0)[1:init][STPDbg]stp_dbg_init: stp-dbg init
[    7.004304] (0)[1:init][STPDbg]wcn_compressor_init: create compressor OK! L1 32768 bytes, L2 524288 bytes
[    7.005737] (0)[1:init][STPDbg]wcn_compressor_reset: OK! compress algorithm 0
[    7.007031] (0)[1:init][STPDbg]wcn_core_dump_init: create coredump object OK!
[    7.473576] (0)[147:stp_dump3][STPDbg]stp_dbg_nl_bind: stp_dbg_nl_bind():->
[    7.474650] (0)[147:stp_dump3][STPDbg]stp_dbg_nl_bind: stp_dbg_nl_bind():-> pid  = 147
[   32.128863] (2)[43:kworker/u:1]ES handlers 2: [tpd_suspend], level: 99
[   32.129673] (2)[43:kworker/u:1]mtk-tpd: TPD enter sleep
[   32.130987] (1)[43:kworker/u:1]mtk-tpd: TPD enter sleep done
[   40.724040] (0)[1187:stp_dump3][STPDbg]stp_dbg_nl_bind: stp_dbg_nl_bind():->
[   40.724918] (0)[1187:stp_dump3][STPDbg]stp_dbg_nl_bind: stp_dbg_nl_bind():-> pid  = 1187
[    1.454070] (1)[1:swapper/0][tpd_em_log] :register device successfully
[    2.372027] (2)[1:swapper/0]mtk-tpd: enter tpd_probe, 253
[    2.372449] (2)[1:swapper/0]mtk_tpd: TPD_RES_X = 720, TPD_RES_Y = 1280
[    2.372463] (2)[1:swapper/0]mtk-tpd: Focaltech FT5206 I2C Touchscreen Driver (Built Aug  2 2013 @ 19:08:42)
[    2.385319] (3)[1:swapper/0]mtk-tpd:  ft5306 reset
[    2.497267] (2)[1:swapper/0][<c02df77c>] (misc_register+0x0/0x144) from [<c06b6834>] (tpd_probe+0x1a4/0x254)
[    2.497323] (2)[1:swapper/0][<c06b6690>] (tpd_probe+0x0/0x254) from [<c037f40c>] (i2c_device_probe+0xd4/0x118)
[    2.497663] (2)[1:swapper/0][<c0381794>] (i2c_register_driver+0x0/0xbc) from [<c0464284>] (tpd_local_init+0x28/0xc8)
[    2.497701] (2)[1:swapper/0][<c046425c>] (tpd_local_init+0x0/0xc8) from [<c0464c30>] (tpd_probe+0x20c/0x508)
[    2.497741] (2)[1:swapper/0][<c0464a24>] (tpd_probe+0x0/0x508) from [<c02eb104>] (platform_drv_probe+0x20/0x24)
[    2.498934] (2)[1:swapper/0][<c02df77c>] (misc_register+0x0/0x144) from [<c06b6834>] (tpd_probe+0x1a4/0x254)
[    2.498986] (2)[1:swapper/0][<c06b6690>] (tpd_probe+0x0/0x254) from [<c037f40c>] (i2c_device_probe+0xd4/0x118)
[    2.499317] (2)[1:swapper/0][<c0381794>] (i2c_register_driver+0x0/0xbc) from [<c0464284>] (tpd_local_init+0x28/0xc8)
[    2.499354] (2)[1:swapper/0][<c046425c>] (tpd_local_init+0x0/0xc8) from [<c0464c30>] (tpd_probe+0x20c/0x508)
[    2.499391] (2)[1:swapper/0][<c0464a24>] (tpd_probe+0x0/0x508) from [<c02eb104>] (platform_drv_probe+0x20/0x24)
[    2.499924] (2)[1:swapper/0]mtk_tpd: tpd_misc_device register failed
[    2.500360] (2)[1:swapper/0]mtk-tpd: ft5206 Touch Panel Device Probe PASS
[    2.500412] (3)[74:mtk-tpd]mtk-tpd: TPD touch_event_handler
[    2.500577] (2)[1:swapper/0]mtk-tpd: end tpd_local_init, 622
[    2.500589] (2)[1:swapper/0]mtk-tpd: [mtk-tpd]tpd_probe, tpd_driver_name=FT5206
[    2.500630] (2)[1:swapper/0]mtk-tpd: Cap touch panel driver
[    3.437839] (1)[1:init]init: [ service mtpd ]
[    6.342053] (2)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_calmat' r=0
[    6.343470] (2)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_debounce_time' r=0
[    6.344983] (2)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_mode' r=0
[    6.346541] (2)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_debounce_time0' r=0
[    6.348084] (2)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_debounce_time1' r=0
[    6.349612] (2)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_spl_num' r=0
[    6.351063] (2)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_pressure_threshold' r=0
[    6.352633] (2)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_auto_time_interval' r=0
[    6.354202] (2)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_sample_cnt' r=0
[    6.355751] (2)[1:init]init: command 'chown root diag /sys/module/tpd_setting/parameters/tpd_em_asamp' r=0
[    6.357274] (2)[1:init]init: command 'chown root diag /sys/module/tpd_debug/parameters/tpd_em_log' r=0
[    6.358655] (2)[1:init]init: command 'chown root diag /sys/module/tpd_debug/parameters/tpd_em_log_to_fs' r=0
[    6.546850] (1)[1:init][STPDbg]stp_dbg_init: stp-dbg init
[    6.549963] (1)[1:init][STPDbg]wcn_compressor_init: create compressor OK! L1 32768 bytes, L2 524288 bytes
[    6.551156] (1)[1:init][STPDbg]wcn_compressor_reset: OK! compress algorithm 0
[    6.552047] (1)[1:init][STPDbg]wcn_core_dump_init: create coredump object OK!
[    7.368382] (0)[147:stp_dump3][STPDbg]stp_dbg_nl_bind: stp_dbg_nl_bind():->
[    7.369254] (0)[147:stp_dump3][STPDbg]stp_dbg_nl_bind: stp_dbg_nl_bind():-> pid  = 147
[   42.009150] (3)[72:kworker/u:2]ES handlers 2: [tpd_suspend], level: 99
[   42.009960] (3)[72:kworker/u:2]mtk-tpd: TPD enter sleep
[   42.011295] (1)[72:kworker/u:2]mtk-tpd: TPD enter sleep done

嘿嘿,看了一下,这个是正常的。
奇怪,不知道tp是哪里的问题不动

IIC要配对。

5316的,直接用的mtk里面的5206 的。我看online上面 FT5206 FT5306 FT5406 FT5216 FT5316 FT6202 FT6302 驱动与FT5206共用一份 是这样说的。
i2c应该是通了的。ft5206 Touch Panel Device Probe PASS 这个地方已经pass了,就不知道哪里的问题了,等fae过来。

这几个驱动是一样的。
你问一下他们模组设置的是1.8V还是2.8V
的IO电压?

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top