[ 0.922848] rockchip-pinctrl pinctrl: pin-128 (gpio-keys) status -22 2、IOMUX 当某个模块功能...
默认支持的keys在dts中定义:其中power key作为普通gpio,具有唤醒功能。而其他按键比如,volume up/down ...
对应的gpio按键驱动在以下文件:./drivers/input/keyboard/gpio_keys.c 上报键值的接口函数 339 static ...
keyKey驱动程序kernel/drivers/input/keyboard/gpio_keys.cRTCRTC驱动程序kernel/drivers.../dw_hdmi-rockchip.cTouch触摸屏驱动程序kernel/drivers/input/touchscreen/edt-ft5x06.cWIFI/BTWiFi/BT驱动程序external.../rkwifibt/drivers/bcmdhd/SOUND音频驱动程序kernel/sound/soc/rockchip/rockchip_multicodecs.cLVDS...
gpio-keys { compatible = "gpio-keys"; autorepeat; power { gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; linux,code = <KEY_POWER>; label = "GPIO Key Power"; linux,input-type = <1>; wakeup-source; debounce-interval = <100>; }; }; gpio-leds { compatible = "gpio-leds"; green { label...
对于Headset装置的插入检测,一般是通过jack来完成,大致原理是使用带检测机械结构的耳机插座,将检测引脚连接到SoC的GPIO口,如下图所示,当耳机插入时。耳机插头的金属会碰到检测引脚,使得检测引脚的电平发生改变,从而触发中断。这样就可以在中断处理函数中读取GPIO口的值,进一步判断是耳机插入还是拔出。
107 + gpio_keys: gpio-keys { 108 + compatible = "gpio-keys"; 109 + pinctrl-names = "default"; 110 + pinctrl-0 = <&key1_pin>; 111 + 112 + button@1 { 113 + debounce-interval = <50>; 114 + gpios = <&gpio0 RK_PD5 GPIO_ACTIVE_LOW>; 115 + label = "K1";...
Note that if the GPIO device uses I2C, then the I2C interface must also be configured. See I2C Support, below. - Timestamp Support: When CONFIG_TIMESTAMP is selected, the timestamp (date and time) of an image is printed by image commands like bootm or iminfo. This option is ...
Additional options: CONFIG_LED_STATUS_GPIO The status LED can be connected to a GPIO pin. In such cases, the gpio_led driver can be used as a status LED backend implementation. Define CONFIG_LED_STATUS_GPIO to include the gpio_led driver in the U-Boot binary. CONFIG_GPIO_LED_INVERTED_...
Rich interface: support USB2.0/USB3.0 port, SATA hard disk, fill light interface, serial port, I2C interface, Wiegand, GPIO, headset, ADC, etc., can expand more peripheral devices. It can meet the common peripherals on the market, such as serial card swiping equipment, printing equipment, ...