导航

    全志在线开发者论坛

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

    按键驱动问题

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

      平台V536 系统Tinalinux4.9

      在sys_config.fex文件中修改,后面的一组配置是我新加的,请问上升沿/下降沿触发在哪里配置?

      [gpiokey]
      compatible = "gpio-keys"
      autorepeat = 1
      
      [gpiokey/ok_key]
      label = "ok_key"
      gpios = port:PL04<0><default><default><1>
      linux,input-type = <1>
      linux,code = 28
      wakeup-source = 1
      
      [gpiokey/capture_key]
      label = "capture_key"
      gpios = port:PD19<6><default><default><default>
      linux,input-type = <1>
      linux,code = 0x1ba
      

      lichee/linux-4.9/drivers/input/keyboard/gpio_keys.c这个模块加入了,并没有显示我新加入的”capture_key“,通过cat /dev/input/event2,按下按键也看不到事件过来,麻烦请指导以下菜鸟

      root@pc:/# cat /proc/bus/input/devices
      I: Bus=0019 Vendor=0001 Product=0001 Version=0100
      N: Name="sunxi-gpadc0"
      P: Phys=sunxigpadc0/input0
      S: Sysfs=/devices/virtual/input/input0
      U: Uniq=
      H: Handlers=event0
      B: PROP=0
      B: EV=100003
      B: KEY=800 c0040 0 0 10000000
      
      I: Bus=0019 Vendor=0001 Product=0001 Version=0100
      N: Name="axp2101-powerkey"
      P: Phys=m1kbd/input2
      S: Sysfs=/devices/platform/soc/pmu0/axp2101-powerkey/input/input1
      U: Uniq=
      H: Handlers=event1
      B: PROP=0
      B: EV=100007
      B: KEY=100000 0 0 0
      B: REL=0
      
      I: Bus=0019 Vendor=0001 Product=0001 Version=0100
      N: Name="gpiokey"
      P: Phys=gpio-keys/input0
      S: Sysfs=/devices/platform/soc/gpiokey/input/input2
      U: Uniq=
      H: Handlers=event2
      B: PROP=0
      B: EV=100003
      B: KEY=4000000 0 0 0 0 0 0 0 0 0 0 0 0 10000000
      
      
      1 条回复 最后回复 回复 引用 分享 0
      • 1 / 1
      • First post
        Last post

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

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