1# Copyright 2023 Fabian Blatz <fabianblatz@gmail.com>
2# SPDX-License-Identifier: Apache-2.0
3
4description: |
5  LVGL encoder indev pseudo-device
6
7  Listens for button/encoder input events and routes the
8  lv_indev_data_t to the underlying encoder lv_indev_t managed by LVGL.
9
10  Example configuration:
11
12  encoder {
13          compatible = "zephyr,lvgl-encoder-input";
14          rotation-input-code = <INPUT_REL_Y>;
15          button-input-code = <INPUT_KEY_0>;
16  };
17
18compatible: "zephyr,lvgl-encoder-input"
19
20include: zephyr,lvgl-common-input.yaml
21
22properties:
23  rotation-input-code:
24    type: int
25    required: true
26    description: |
27      Input event code associated with rotation (INPUT_REL_*).
28
29  button-input-code:
30    type: int
31    description: |
32      Input event key code for encoder button (INPUT_KEY_* or INPUT_BTN_*).
33