code=<KEY_F13>;label="GPIO F13 Power";linux,input-type=<1>;gpio-key,wakeup=<1>;debounce-interval=<100>;};button@1 {gpios=<&pio 48 IRQ_TYPE_EDGE_BOTH>;linux,code=<KEY_F14>
linux,input-type = <1>; linux,code = <KEY_VOLUMEUP>; linux,can-disable; debounce-interval = <15>; gpio-key,wakeup; }; userkey1 { label ="userkey1"; gpios = <&tlmm107GPIO_ACTIVE_HIGH>; linux,input-type = <1>; linux,code = <KEY_F22>; linux,can-disable; debounce-interval ...
linux,code = <0x01>;/* KEY_1 */gpio-key,wakeup; debounce-interval = <15>; }; }; debug log: [root]# hexdump /dev/input/event0[49.799309]gpio_keys_gpio_report_event()keycode:1,state:00000000003100002536000c00010001000000000000010003100002536000c0000000000000000[52.139315]gpio_keys_gpio_report_even...
linux,code = <104>; /* center */ ... I can see the associated gpio in /sys/class/gpio897 But I've got this error and it doesn't work: gpio-keys keypad: Unable to get irq number for GPIO 897, error -6 Could anyone help me?
gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_pmic>; // nPBOUT Line Input power_button_npbout { label = "nPBOUT"; gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; linux,code = <KEY_RESTART>; debounce-interval = <0>; //interrupt-pa...
CONFIG_KEYBOARD_GPIO=y CONFIG_SERIO_LIBPS2=y CONFIG_INPUT_EVBUG=m and our DTS file to include: gpio-keys { compatible = "gpio-keys"; switch1 { label = "Switch 1"; gpio = <&gpio1 12 0>; linux,code = <89>; /* Unmapped keycode */ ...
linux,code = <114>; /* KEY_VOLUMEDOWN */ }; }; 里的compatible匹配到。则会调用platform里的probe成员函数 static int gpio_keys_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; const struct gpio_keys_platform_data *pdata = dev_get_platdata(dev); ...
linux,code = <KEY_VOLUMEUP>; press-threshold-microvolt = <4680352>; }; button-down { label = "Volume Down"; linux,code = <KEY_VOLUMEDOWN>; press-threshold-microvolt = <2516129>; }; button-enter { label = "Enter"; linux,code = <KEY_ENTER>; press-threshold-microvolt = <6844575>...
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _GPIO_KEYS_H #define _GPIO_KEYS_H #include <linux/types.h> struct device; /** * struct gpio_keys_button - configuration parameters * @code: input event code (KEY_*, SW_*) * @gpio: %-1 if this key does not ...
gpio-keys驱动使用中断触发 Linuxkernel驱动,针对gpio-keys实现了一个专用驱动,在使用GPIO模拟按键的场合时,只需配置设备树即可实现相应的按键功能,其中kernel driver对应的文件路为drivers\input\keyboard\gpio_keys.c,对应的设备树描述文档路径为Documentation\devicetree\bindings\input\gpio-keys.txt。 gpio-keys.txt文档...