zephyr,lvgl-encoder-input

Vendor: Zephyr-specific binding

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

input

phandle

Input device phandle.

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_*).