导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    sunxi-i2c触摸i2c驱动问题

    MR Series
    3
    4
    2508
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • N
      NULL037 LV 7 最后由 NULL037 编辑

      今天在使用Tina D1 SDK调试触摸屏时遇到一个很奇怪的问题
      问题现象:

      root@TinaLinux:/# insmod /lib/modules/5.4.61/focaltech_ts.ko
      [   28.605538] input: fts_ts as /devices/platform/soc@3000000/sunxi-i2c2/i2c-2/2-0014/input/input1
      [   28.615693] sunxi-i2c sunxi-i2c2: SLA+W has been transmitted; ACK not received
      [   28.623829] sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x14)
      [   28.658097] sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x14)
      [   28.665731] fts_ts 2-0014: 2-0014 supply  not found, using dummy regulator
      [   28.673637] fts_ts 2-0014: 2-0014 supply  not found, using dummy regulator
      [   28.681388] debugfs: Directory '2-0014-' with parent 'reg-dummy-regulator-dummy' already present!
      [   28.691410] fts_ts: probe of 2-0014 failed with error -16
      root@TinaLinux:/# 
      

      重启开发板后重新装载驱动

      root@TinaLinux:/# insmod /lib/modules/5.4.61/focaltech_ts.ko
      [   12.416101] input: fts_ts as /devices/platform/soc@3000000/sunxi-i2c2/i2c-2/2-0014/input/input1
      [   12.426177] sunxi-i2c sunxi-i2c2: Bus error
      [   12.430918] sunxi-i2c sunxi-i2c2: engine-mode: bus state: 0x0, isn't idle
      [   12.441486] sunxi-i2c sunxi-i2c2: STOP failed!
      [   12.446450] sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x14)
      [   12.477260] sunxi-i2c sunxi-i2c2: engine-mode: xfer failed(dev addr:0x14)
      [   12.484824] fts_ts 2-0014: 2-0014 supply  not found, using dummy regulator
      [   12.492661] fts_ts 2-0014: 2-0014 supply  not found, using dummy regulator
      [   12.500344] debugfs: Directory '2-0014-' with parent 'reg-dummy-regulator-dummy' already present!
      [   12.510280] fts_ts: probe of 2-0014 failed with error -16
      
      

      从linux-5.4/drivers/i2c/busses/i2c-sunxi.c代码来看,就是芯片向设备发送数据后,没有回应。第二次启动提示i2c2被占用。但我并没有在其他地方操作i2c2。

      已确定的点:
      1.MIPI屏的触摸芯片型号为ft5366,功能正常,已经在V853上测试过是正常的
      2.装载驱动后没到probe匹配设备树就报错了,是在调用i2c-sunxi程序时出的问题

      请问各位大佬有遇到这种问题吗?

      whycan 1 条回复 最后回复 回复 引用 分享 0
      • whycan
        whycan晕哥 LV 9 @NULL037 最后由 编辑

        @null037
        检查一下硬件部分,比如电源波纹等。

        1 条回复 最后回复 回复 引用 分享 0
        • W
          woodcat LV 6 最后由 编辑

          软重启?可能没完全掉电

          N 1 条回复 最后回复 回复 引用 分享 0
          • N
            NULL037 LV 7 @woodcat 最后由 编辑

            @woodcat 应该不是软重启的问题,我换了一块板子也是一样的问题

            1 条回复 最后回复 回复 引用 分享 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策