Home
last modified time | relevance | path

Searched +full:kscan +full:- +full:input (Results 1 – 25 of 47) sorted by relevance

12

/Zephyr-latest/dts/bindings/kscan/
Dzephyr,kscan-input.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Input to kscan adapter.
7 Allows using an input device with the kscan API. Define as a child node of
8 the input device, for example
11 zephyr,keyboard-scan = &kscan_input;
16 kscan_input: kscan-input {
17 compatible = "zephyr,kscan-input";
21 compatible: "zephyr,kscan-input"
23 include: kscan.yaml
/Zephyr-latest/drivers/kscan/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
6 menuconfig KSCAN config
12 if KSCAN
14 source "drivers/kscan/Kconfig.input"
16 module = KSCAN
17 module-str = kscan
26 endif # KSCAN
DKconfig.input2 # SPDX-License-Identifier: Apache-2.0
5 bool "Input subsystem to kscan adapter driver"
7 depends on INPUT
Dkscan_input.c4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/drivers/kscan.h>
9 #include <zephyr/input/input.h>
29 struct kscan_input_data *data = dev->data; in kscan_input_cb()
31 switch (evt->code) { in kscan_input_cb()
33 data->col = evt->value; in kscan_input_cb()
36 data->row = evt->value; in kscan_input_cb()
39 data->pressed = evt->value; in kscan_input_cb()
43 if (evt->sync) { in kscan_input_cb()
44 LOG_DBG("input event: %3d %3d %d", in kscan_input_cb()
[all …]
/Zephyr-latest/tests/drivers/kscan/kscan_input/boards/
Dnative_sim.overlay4 * SPDX-License-Identifier: Apache-2.0
8 /delete-node/ input_sdl_touch;
10 fake_input_device: fake-device {
11 compatible = "vnd,input-device";
12 kscan_input: kscan-input {
13 compatible = "zephyr,kscan-input";
/Zephyr-latest/samples/drivers/ht16k33/boards/
Dnrf52840dk_nrf52840.overlay4 * SPDX-License-Identifier: Apache-2.0
8 clock-frequency = <I2C_BITRATE_STANDARD>;
14 /* irq-gpios = <&gpio1 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; */
16 kscan-input {
17 compatible = "zephyr,kscan-input";
/Zephyr-latest/tests/drivers/build_all/input/
Dit82xx2_evb.overlay4 * SPDX-License-Identifier: Apache-2.0
7 /delete-node/ &kbd;
13 compatible = "ite,it8801-mfd";
15 irq-gpios = <&gpioa 1 0>;
19 #include <ite/it8801-common-cfg.dtsi>
25 kso-mapping = <0 1 20 3 4 5 6 17 18 16 15 11 12>;
26 row-size = <8>;
27 col-size = <13>;
29 kscan_input: kscan-input {
30 compatible = "zephyr,kscan-input";
/Zephyr-latest/doc/services/input/
Dindex.rst3 Input chapter
6 The input subsystem provides an API for dispatching input events from input
9 Input Events
12 The subsystem is built around the :c:struct:`input_event` structure. An input
19 multi-axis device have been reported.
21 Input Devices
24 An input device can report input events directly using :c:func:`input_report`
25 or any related function; for example buttons or other on-off input entities
48 on the :kconfig:option:`CONFIG_INPUT_MODE` option. If the input thread is used,
49 all the events are added to a queue and executed in a common ``input`` thread.
[all …]
/Zephyr-latest/tests/drivers/kscan/kscan_input/
Dtestcase.yaml1 # SPDX-License-Identifier: Apache-2.0
4 drivers.input.kscan_input:
6 - native_sim
7 - native_sim/native/64
9 - drivers
10 - kscan
11 - input
13 - native_sim
/Zephyr-latest/boards/nuvoton/npcx7m6fb_evb/
DKconfig.defconfig2 # SPDX-License-Identifier: Apache-2.0
7 config INPUT config
8 default y if KSCAN
Dnpcx7m6fb_evb.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "npcx7m6fb_evb-pinctrl.dtsi"
19 zephyr,keyboard-scan = &kscan_input;
24 pwm-led0 = &pwm_led0_green;
26 pwm-0 = &pwm6;
28 i2c-0 = &i2c0_0;
30 peci-0 = &peci0;
31 /* For kscan test suites */
36 compatible = "pwm-leds";
[all …]
/Zephyr-latest/boards/nuvoton/npcx4m8f_evb/
DKconfig.defconfig2 # SPDX-License-Identifier: Apache-2.0
7 config INPUT config
8 default y if KSCAN
Dnpcx4m8f_evb.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include <nuvoton/npcx/npcx-espi-vws-ex-map.dtsi>
11 #include "npcx4m8f_evb-pinctrl.dtsi"
20 zephyr,keyboard-scan = &kscan_input;
24 pwm-led0 = &pwm_led0_green;
26 pwm-0 = &pwm6;
27 i2c-0 = &i2c0_0;
29 peci-0 = &peci0;
33 leds-pwm {
[all …]
/Zephyr-latest/boards/nuvoton/npcx9m6f_evb/
DKconfig.defconfig2 # SPDX-License-Identifier: Apache-2.0
7 config INPUT config
8 default y if KSCAN
Dnpcx9m6f_evb.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
10 #include "npcx9m6f_evb-pinctrl.dtsi"
19 zephyr,keyboard-scan = &kscan_input;
24 pwm-led0 = &pwm_led0_green;
28 pwm-0 = &pwm6;
30 i2c-0 = &i2c0_0;
33 peci-0 = &peci0;
34 /* For kscan test suites */
38 leds-pwm {
[all …]
/Zephyr-latest/boards/ite/it82xx2_evb/
DKconfig.defconfig2 # SPDX-License-Identifier: Apache-2.0
6 config INPUT config
7 default y if KSCAN
/Zephyr-latest/boards/ite/it8xxx2_evb/
DKconfig.defconfig2 # SPDX-License-Identifier: Apache-2.0
17 config INPUT config
18 default y if KSCAN
/Zephyr-latest/doc/hardware/peripherals/
Dkscan.rst7 .. note:: Kscan APIs are deprecated, any driver and applications should be
8 ported over to use :ref:`input` instead.
13 The kscan driver (keyboard scan matrix) is used for detecting a key press in a
15 Typically, matrix keyboards are implemented using a two-dimensional
/Zephyr-latest/boards/microchip/mec15xxevb_assy6853/
DKconfig.defconfig2 # SPDX-License-Identifier: Apache-2.0
6 config INPUT config
7 default y if KSCAN
29 # If RTOS timer is not enabled we use ARM Cortex-M
/Zephyr-latest/boards/shields/rk055hdmipi4ma0/
DKconfig.defconfig2 # SPDX-License-Identifier: Apache-2.0
17 # Configure LVGL to use touchscreen with KSCAN API
19 config INPUT config
/Zephyr-latest/boards/microchip/mec1501modular_assy6885/
DKconfig.defconfig2 # SPDX-License-Identifier: Apache-2.0
6 config INPUT config
7 default y if KSCAN
30 # If RTOS timer is not enabled we use ARM Cortex-M
Dmec1501modular_assy6885.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include "mec1501modular_assy6885-pinctrl.dtsi"
20 zephyr,keyboard-scan = &kscan_input;
24 pwm-0 = &pwm0;
25 peci-0 = &peci0;
40 current-speed = <115200>;
41 pinctrl-0 = <&uart1_tx_gpio170 &uart1_rx_gpio171>;
42 pinctrl-names = "default";
47 pinctrl-0 = <&adc04_gpio204 &adc05_gpio205
[all …]
/Zephyr-latest/boards/microchip/mec172xevb_assy6906/
DKconfig.defconfig2 # SPDX-License-Identifier: Apache-2.0
6 config INPUT config
7 default y if KSCAN
25 # If RTOS timer is not enabled we use ARM Cortex-M
/Zephyr-latest/boards/microchip/mec172xmodular_assy6930/
DKconfig.defconfig2 # SPDX-License-Identifier: Apache-2.0
6 config INPUT config
7 default y if KSCAN
25 # If RTOS timer is not enabled we use ARM Cortex-M
/Zephyr-latest/tests/drivers/kscan/kscan_input/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
8 #include <zephyr/drivers/kscan.h>
9 #include <zephyr/input/input.h>

12