/dts-v1/;/include/'system-conf.dtsi'/{ gpio-keys{ compatible='gpio-keys';#address-cells=<1>;#size-cells=<0>; autorepeat; btn-left{ label='btn-left'; gpios=<&gpio0540>; linux,code=<105>;/* KEY_LEFT */wakeup-source; autorepeat; }; btn-right{ label='btn-right'; gpios=<&g...
gpio_keys { compatible = "gpio-keys"; pinctrl-names = "default"; #address-cells = <1>; #size-cells = <0>; autorepeat; button@0 { label = "Key back"; linux,code = <KEY_BACK>; gpios = <&pio 3 10 GPIO_ACTIVE_LOW>; /* PD10 */ }; }; linux 配置文件 ./output/build/linux...
2. 确认驱动是否被选中 确认gpio_keys_polled.c 是否编译进系统,在tina 目录下执行make kernel_menuconfig,需要将Polled GPIO buttons 选成“[*]”。 Device Drivers └─>Input device support └─>Keyboards └─>Polled GPIO buttons Tina_Linux_Key_Quick_Configuration_User_Guide-image-20221228142913846 图3-...