/Zephyr-latest/dts/bindings/kscan/ |
D | zephyr,kscan-input.yaml | 2 # 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/ |
D | Kconfig | 4 # 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
|
D | Kconfig.input | 2 # SPDX-License-Identifier: Apache-2.0 5 bool "Input subsystem to kscan adapter driver" 7 depends on INPUT
|
D | kscan_input.c | 4 * 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/ |
D | native_sim.overlay | 4 * 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/ |
D | nrf52840dk_nrf52840.overlay | 4 * 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/ |
D | it82xx2_evb.overlay | 4 * 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/ |
D | index.rst | 3 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/ |
D | testcase.yaml | 1 # 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/ |
D | Kconfig.defconfig | 2 # SPDX-License-Identifier: Apache-2.0 7 config INPUT config 8 default y if KSCAN
|
D | npcx7m6fb_evb.dts | 4 * 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/ |
D | Kconfig.defconfig | 2 # SPDX-License-Identifier: Apache-2.0 7 config INPUT config 8 default y if KSCAN
|
D | npcx4m8f_evb.dts | 4 * 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/ |
D | Kconfig.defconfig | 2 # SPDX-License-Identifier: Apache-2.0 7 config INPUT config 8 default y if KSCAN
|
D | npcx9m6f_evb.dts | 4 * 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/ |
D | Kconfig.defconfig | 2 # SPDX-License-Identifier: Apache-2.0 6 config INPUT config 7 default y if KSCAN
|
/Zephyr-latest/boards/ite/it8xxx2_evb/ |
D | Kconfig.defconfig | 2 # SPDX-License-Identifier: Apache-2.0 17 config INPUT config 18 default y if KSCAN
|
/Zephyr-latest/doc/hardware/peripherals/ |
D | kscan.rst | 7 .. 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/ |
D | Kconfig.defconfig | 2 # 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/ |
D | Kconfig.defconfig | 2 # 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/ |
D | Kconfig.defconfig | 2 # 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
|
D | mec1501modular_assy6885.dts | 4 * 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/ |
D | Kconfig.defconfig | 2 # 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/ |
D | Kconfig.defconfig | 2 # 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/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/drivers/kscan.h> 9 #include <zephyr/input/input.h>
|