:orphan:
.. raw:: html
.. dtcompatible:: zephyr,lvgl-keypad-input
.. _dtbinding_zephyr_lvgl_keypad_input:
zephyr,lvgl-keypad-input
########################
Vendor: :ref:`Zephyr-specific binding `
.. note::
An implementation of a driver matching this compatible is available in
:zephyr_file:`modules/lvgl/input/lvgl_keypad_input.c`.
Description
***********
.. code-block:: none
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
keypad {
compatible = "zephyr,lvgl-keypad-input";
input = <&buttons>;
input-codes = ;
lvgl-codes = ;
};
Properties
**********
.. tabs::
.. group-tab:: Node specific properties
Properties not inherited from the base binding file.
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``input-codes``
- ``array``
- .. code-block:: none
Array of input event key codes (INPUT_KEY_* or INPUT_BTN_*).
This property is **required**.
* - ``lvgl-codes``
- ``array``
- .. code-block:: none
Array of mapped lvgl keys.
This property is **required**.
* - ``input``
- ``phandle``
- .. code-block:: none
Input device phandle.
.. group-tab:: Deprecated node specific properties
Deprecated properties not inherited from the base binding file.
(None)
.. group-tab:: Base properties
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)