zephyr/dts/bindings/input/zephyr,lvgl-pointer-input.yaml
Fabian Blatz c536bd3845 modules: lvgl: add zephyr,lvgl-pointer-input pseudo device
Add the scaffolding to create input lvgl pseudo devices which route zephyr
input_event to their lvgl `indev` equivalent. As a first cut also add a
`zephyr,lvgl-pointer-input compatible which can be a drop-in replacement
for the existing kscan solution.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2023-08-29 10:17:52 +02:00

37 lines
884 B
YAML

# Copyright 2023 Fabian Blatz <fabianblatz@gmail.com>
# SPDX-License-Identifier: Apache-2.0
description: |
LVGL pointer indev pseudo-device
Listens for touch input events and routes the
lv_indev_data_t to the underlying pointer lv_indev_t managed by LVGL.
Needs to be associated to a specific device to listen for events
from that device. Example configuration:
pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&input_sdl_touch>;
};
compatible: "zephyr,lvgl-pointer-input"
include: zephyr,lvgl-common-input.yaml
properties:
swap-xy:
type: boolean
description: |
Swap x-y axes to align input with the display.
invert-x:
type: boolean
description: |
Invert x axes to align input with the display.
invert-y:
type: boolean
description: |
Invert y axes to align input with the display.