zephyr,lvgl-keypad-input
Vendor: Zephyr-specific binding
Description
LVGL keypad indev pseudo-device
Listens for input events and routes the
lv_indev_data_t to the underlying keypad lv_indev_t managed by LVGL.
The property input-codes can be used to setup a mapping of input codes
to the lvgl keys. There are lvgl keys that have a special function:
https://docs.lvgl.io/master/overview/indev.html#keys.
The pseudo device can be associated to a specific device to listen only
for events from that device. Example configuration:
#include <zephyr/dt-bindings/lvgl/lvgl.h>
keypad {
compatible = "zephyr,lvgl-keypad-input";
input = <&buttons>;
input-codes = <INPUT_KEY_1 INPUT_KEY_2>;
lvgl-codes = <LV_KEY_NEXT LV_KEY_PREV>;
};
Properties
Properties not inherited from the base binding file.
Name |
Type |
Details |
---|---|---|
|
|
Input device phandle.
|
|
|
Array of input event key codes (INPUT_KEY_* or INPUT_BTN_*).
This property is required. |
|
|
Array of mapped lvgl keys.
This property is required. |
Deprecated properties not inherited from the base binding file.
(None)
Properties inherited from the base binding file, which defines common properties that may be set on many nodes. Not all of these may apply to the “zephyr,lvgl-keypad-input” compatible.
(None)