The latest development version of this page may be more current than this released 4.0.0 version.

zephyr,lvgl-encoder-input

Vendor: Zephyr-specific binding

Note

An implementation of a driver matching this compatible is available in modules/lvgl/input/lvgl_encoder_input.c.

Description

LVGL encoder indev pseudo-device

Listens for button/encoder input events and routes the
lv_indev_data_t to the underlying encoder lv_indev_t managed by LVGL.

Example configuration:

encoder {
        compatible = "zephyr,lvgl-encoder-input";
        rotation-input-code = <INPUT_REL_Y>;
        button-input-code = <INPUT_KEY_0>;
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

rotation-input-code

int

Input event code associated with rotation (INPUT_REL_*).

This property is required.

button-input-code

int

Input event key code for encoder button (INPUT_KEY_* or INPUT_BTN_*).

input

phandle

Input device phandle.