1# Copyright 2023 Fabian Blatz <fabianblatz@gmail.com> 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 LVGL keypad indev pseudo-device 6 7 Listens for input events and routes the 8 lv_indev_data_t to the underlying keypad lv_indev_t managed by LVGL. 9 10 The property input-codes can be used to setup a mapping of input codes 11 to the lvgl keys. There are lvgl keys that have a special function: 12 https://docs.lvgl.io/master/overview/indev.html#keys. 13 14 The pseudo device can be associated to a specific device to listen only 15 for events from that device. Example configuration: 16 17 #include <zephyr/dt-bindings/lvgl/lvgl.h> 18 19 keypad { 20 compatible = "zephyr,lvgl-keypad-input"; 21 input = <&buttons>; 22 input-codes = <INPUT_KEY_1 INPUT_KEY_2>; 23 lvgl-codes = <LV_KEY_NEXT LV_KEY_PREV>; 24 }; 25 26compatible: "zephyr,lvgl-keypad-input" 27 28include: zephyr,lvgl-common-input.yaml 29 30properties: 31 input-codes: 32 type: array 33 required: true 34 description: | 35 Array of input event key codes (INPUT_KEY_* or INPUT_BTN_*). 36 37 lvgl-codes: 38 type: array 39 required: true 40 description: | 41 Array of mapped lvgl keys. 42