Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    按键驱动问题

    Linux
    1
    1
    98
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • jinxiangwzh
      jinxiangwzh LV 6 last edited by

      平台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 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

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

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