Lines Matching +full:device +full:- +full:state +full:- +full:gpios
2 # SPDX-License-Identifier: Apache-2.0
7 Simulate GPIO state/interrupts using SDL keyboard events. This node has
8 to be a child of a `zephyr,gpio-emul` compatible.
12 and thus do not match Zephyr code values as described in input-event-codes.h.
17 - Scancode 30: "Keyboard 1 and !", mapped to gpio0 0
18 - Scancode 31: "Keyboard 2 and @", mapped to gpio0 1
19 - Scancode 32: "Keyboard 3 and \#", mapped to gpio0 2
23 INPUT_KEY_1, INPUT_KEY_2 and INPUT_KEY_3 in input-event-codes.h.
25 /* gpio0 has to be a zephyr,gpio-emul device */
30 compatible = "zephyr,gpio-emul-sdl";
36 compatible = "gpio-keys";
38 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
41 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
44 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
49 - Only active high as we don't get events for keys that aren't pressed
50 - Pressing multiple keys is best effort, state will be kept but no events
53 compatible: "zephyr,gpio-emul-sdl"