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

Node specific 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.

Deprecated node specific properties

Deprecated properties not inherited from the base binding file.

(None)

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-encoder-input” compatible.

(None)