/Zephyr-latest/dts/bindings/input/ |
D | gpio-kbd-matrix.yaml | 2 # SPDX-License-Identifier: Apache-2.0 11 kbd-matrix { 12 compatible = "gpio-kbd-matrix"; 13 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, 15 col-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>, 18 no-ghostkey-check; 21 compatible: "gpio-kbd-matrix" 24 - name: kbd-matrix-common.yaml 25 property-blocklist: 26 - row-size [all …]
|
D | input-keymap.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Row-column to key mapper 7 Listens for row-column events from the parent device and reports key events. 11 #include <zephyr/dt-bindings/input/input-event-codes.h> 12 #include <zephyr/dt-bindings/input/keymap.h> 17 compatible = "input-keymap"; 29 row-size = <3>; 30 col-size = <3>; 34 compatible: "input-keymap" 43 row-size: [all …]
|
D | ite,it8xxx2-kbd.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "ite,it8xxx2-kbd" 8 include: [kbd-matrix-common.yaml, pinctrl-device.yaml] 26 kso16-gpios: 27 type: phandle-array 32 kso17-gpios: 33 type: phandle-array 38 kso-ignore-mask: 43 to skip KSO signals between 0 and (col-size - 1) that are used as GPIOs. 46 pinctrl-0: [all …]
|
D | ite,it8801-kbd.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: ITE IT8801 I2C-based keyboard matrix scan controller 6 compatible: "ite,it8801-kbd" 8 include: [kbd-matrix-common.yaml, pinctrl-device.yaml] 19 kso-mapping: 22 row-size: 25 col-size:
|
D | microchip,xec-kbd.yaml | 3 # SPDX-License-Identifier: Apache-2.0 7 compatible: "microchip,xec-kbd" 9 include: [kbd-matrix-common.yaml, pinctrl-device.yaml] 12 "#address-cells": 16 "#size-cells": 36 row-size: 39 col-size:
|
D | nuvoton,npcx-kbd.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nuvoton,npcx-kbd" 8 include: [kbd-matrix-common.yaml, pinctrl-device.yaml] 17 pinctrl-0: 20 pinctrl-names: 23 wui-maps: 27 Mapping table between Wake-Up Input (WUI) and KSIs. 30 wui-maps = <&wui_io30 &wui_io31 &wui_io27 &wui_io26 33 row-size: 36 col-size:
|
D | kbd-matrix-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 9 row-size: 14 col-size: 19 poll-period-ms: 26 stable-poll-period-ms: 30 stable, defaults to poll-period-ms value if unspecified. 32 poll-timeout-ms: 39 debounce-down-ms: 45 debounce-up-ms: 51 settle-time-us: [all …]
|
/Zephyr-latest/subsys/sip_svc/ |
D | sip_svc_id_mgr.c | 2 * Copyright (c) 2022-2023, Intel Corporation. 4 * SPDX-License-Identifier: Apache-2.0 15 * Create a id key pool using size variable 0..size-1, where we can 18 struct sip_svc_id_pool *sip_svc_id_mgr_create(uint32_t size) in sip_svc_id_mgr_create() argument 24 if (size == SIP_SVC_ID_INVALID) { in sip_svc_id_mgr_create() 33 id_pool->size = size; in sip_svc_id_mgr_create() 35 id_pool->id_list = k_malloc(size * sizeof(uint32_t)); in sip_svc_id_mgr_create() 36 if (!id_pool->id_list) { in sip_svc_id_mgr_create() 41 mask_size = size / sizeof(uint32_t); in sip_svc_id_mgr_create() 42 if (size % sizeof(uint32_t)) { in sip_svc_id_mgr_create() [all …]
|
/Zephyr-latest/subsys/input/ |
D | input_utils.c | 4 * SPDX-License-Identifier: Apache-2.0 62 LOG_INF("input event: dev=%-16s %3s type=%2x code=%3d value=%d", in input_dump_cb() 63 evt->dev ? evt->dev->name : "NULL", in input_dump_cb() 64 evt->sync ? "SYN" : "", in input_dump_cb() 65 evt->type, in input_dump_cb() 66 evt->code, in input_dump_cb() 67 evt->value); in input_dump_cb() 96 return -EINVAL; in input_cmd_report() 106 return -EINVAL; in input_cmd_report() 133 const struct input_kbd_matrix_common_config *cfg = kbd_matrix_state_dev->config; in kbd_matrix_state_log_entry() [all …]
|
/Zephyr-latest/drivers/input/ |
D | input_npcx_kbd.c | 5 * SPDX-License-Identifier: Apache-2.0 34 /* Keyboard scan input (KSI) wake-up irq */ 36 /* Size of keyboard inputs-wui mapping array */ 59 const struct npcx_kbd_config *const config = dev->config; in npcx_kbd_set_detect_mode() 60 const struct input_kbd_matrix_common_config *common = &config->common; in npcx_kbd_set_detect_mode() 63 for (int i = 0; i < common->row_size; i++) { in npcx_kbd_set_detect_mode() 64 npcx_miwu_irq_get_and_clear_pending(&config->wui_maps[i]); in npcx_kbd_set_detect_mode() 67 irq_enable(config->irq); in npcx_kbd_set_detect_mode() 69 irq_disable(config->irq); in npcx_kbd_set_detect_mode() 73 static void npcx_kbd_drive_column(const struct device *dev, int col) in npcx_kbd_drive_column() argument [all …]
|
D | input_ite_it8801_kbd.c | 4 * SPDX-License-Identifier: Apache-2.0 54 static void kbd_it8801_drive_column(const struct device *dev, int col) in kbd_it8801_drive_column() argument 56 const struct kbd_it8801_config *config = dev->config; in kbd_it8801_drive_column() 60 if (col == INPUT_KBD_MATRIX_COLUMN_DRIVE_NONE) { in kbd_it8801_drive_column() 61 /* Tri-state all outputs. KSO[22:11, 6:0] output high */ in kbd_it8801_drive_column() 63 } else if (col == INPUT_KBD_MATRIX_COLUMN_DRIVE_ALL) { in kbd_it8801_drive_column() 68 kso_val = config->kso_mapping[col]; in kbd_it8801_drive_column() 71 ret = i2c_reg_write_byte_dt(&config->i2c_dev, config->reg_ksomcr, kso_val); in kbd_it8801_drive_column() 80 const struct kbd_it8801_config *const config = dev->config; in kbd_it8801_read_row() 84 ret = i2c_reg_read_byte_dt(&config->i2c_dev, config->reg_ksidr, &value); in kbd_it8801_read_row() [all …]
|
D | input_ite_it8xxx2_kbd.c | 3 * SPDX-License-Identifier: Apache-2.0 15 #include <zephyr/dt-bindings/interrupt-controller/it8xxx2-wuc.h> 37 /* Keyboard scan input (KSI) wake-up irq */ 39 /* KSI[7:0] wake-up input source configuration list */ 53 /* KSI[7:0] wake-up interrupt status mask */ 59 static void it8xxx2_kbd_drive_column(const struct device *dev, int col) in it8xxx2_kbd_drive_column() argument 61 const struct it8xxx2_kbd_config *const config = dev->config; in it8xxx2_kbd_drive_column() 62 const struct input_kbd_matrix_common_config *common = &config->common; in it8xxx2_kbd_drive_column() 63 struct kscan_it8xxx2_regs *const inst = config->base; in it8xxx2_kbd_drive_column() 64 const uint32_t kso_mask = BIT_MASK(common->col_size) & ~config->kso_ignore_mask; in it8xxx2_kbd_drive_column() [all …]
|
D | input_gpio_kbd_matrix.c | 4 * SPDX-License-Identifier: Apache-2.0 45 static void gpio_kbd_matrix_drive_column(const struct device *dev, int col) in gpio_kbd_matrix_drive_column() argument 47 const struct gpio_kbd_matrix_config *cfg = dev->config; in gpio_kbd_matrix_drive_column() 48 const struct input_kbd_matrix_common_config *common = &cfg->common; in gpio_kbd_matrix_drive_column() 49 struct gpio_kbd_matrix_data *data = dev->data; in gpio_kbd_matrix_drive_column() 52 if (col == INPUT_KBD_MATRIX_COLUMN_DRIVE_NONE) { in gpio_kbd_matrix_drive_column() 54 } else if (col == INPUT_KBD_MATRIX_COLUMN_DRIVE_ALL) { in gpio_kbd_matrix_drive_column() 55 state = BIT_MASK(common->col_size); in gpio_kbd_matrix_drive_column() 57 state = BIT(col); in gpio_kbd_matrix_drive_column() 60 if (data->direct_write) { in gpio_kbd_matrix_drive_column() [all …]
|
D | input_gt911.c | 6 * SPDX-License-Identifier: Apache-2.0 76 uint8_t low_size; /*!< Low byte of point size. */ 77 uint8_t high_size; /*!< High byte of point size. */ 82 * Device-specific wrappers around i2c_write_dt and i2c_write_read_dt. 88 const struct gt911_config *config = dev->config; in gt911_i2c_write() 89 struct gt911_data *data = dev->data; in gt911_i2c_write() 91 return i2c_write(config->bus.bus, buf, num_bytes, data->actual_address); in gt911_i2c_write() 97 const struct gt911_config *config = dev->config; in gt911_i2c_write_read() 98 struct gt911_data *data = dev->data; in gt911_i2c_write_read() 100 return i2c_write_read(config->bus.bus, data->actual_address, write_buf, num_write, read_buf, in gt911_i2c_write_read() [all …]
|
/Zephyr-latest/include/zephyr/input/ |
D | input_kbd_matrix.h | 4 * SPDX-License-Identifier: Apache-2.0 26 #define INPUT_KBD_MATRIX_COLUMN_DRIVE_NONE -1 29 #define INPUT_KBD_MATRIX_COLUMN_DRIVE_ALL -2 57 * @param col The matrix column to enable or disable. 58 * @param enabled Whether the specified row, col has to be enabled or disabled. 61 * @retval -errno Negative errno if row or col are out of range for the device. 64 uint8_t row, uint8_t col, bool enabled); 82 * @param col The column to drive, or 86 void (*drive_column)(const struct device *dev, int col); 138 * specify row and col count. [all …]
|
/Zephyr-latest/tests/drivers/input/kbd_matrix/boards/ |
D | native_sim.overlay | 4 * SPDX-License-Identifier: Apache-2.0 8 test_kbd_scan: test-kbd-scan { 9 compatible = "test-kbd-scan"; 10 row-size = <3>; 11 col-size = <3>; 12 poll-period-ms = <5>; 13 debounce-down-ms = <40>; 14 debounce-up-ms = <80>; 15 poll-timeout-ms = <500>;
|
/Zephyr-latest/boards/bbc/microbit/ |
D | bbc_microbit.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include "bbc_microbit-pinctrl.dtsi" 10 #include <zephyr/dt-bindings/input/input-event-codes.h> 27 zephyr,shell-uart = &uart0; 28 zephyr,bt-mon-uart = &uart0; 29 zephyr,bt-c2h-uart = &uart0; 32 zephyr,code-partition = &slot0_partition; 37 compatible = "gpio-keys"; 52 compatible = "nordic,nrf-led-matrix"; [all …]
|
/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";
|
D | app.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 #include <zephyr/dt-bindings/input/input-event-codes.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 17 #io-channel-cells = <1>; 18 #address-cells = <1>; 19 #size-cells = <0>; 26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 32 gpio-controller; 34 #gpio-cells = <0x2>; [all …]
|
/Zephyr-latest/doc/services/input/ |
D | gpio-kbd.rst | 1 .. _gpio-kbd: 6 The :dtcompatible:`gpio-kbd-matrix` driver supports a large variety of keyboard 21 .. figure:: no-diodes.svg 30 .. code-block:: devicetree 32 kbd-matrix { 33 compatible = "gpio-kbd-matrix"; 34 row-gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>, 37 col-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>, 49 time can be tweaked by changing the ``settle-time-us`` property. 56 - disable ghosting detection, allowing any key combination to be detected [all …]
|
/Zephyr-latest/scripts/build/ |
D | gen_cfb_font_header.py | 5 # SPDX-License-Identifier: Apache-2.0 22 width, height = image.size 40 col = octet * 8 + bit 41 if pixels[col, row]: 48 for col in range(0, width): 54 if pixels[col, row]: 66 value = value[::-1] 73 font = ImageFont.truetype(args.input, args.size) 80 size = font.getbbox(chr(i)) 83 fw = size[2] - size[0] # right - left [all …]
|
/Zephyr-latest/dts/bindings/mfd/ |
D | ite,it8801-mfd.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 ITE IT8801 ioexpander multi-function device drivers. 8 An example configuration using the it8801-common-cfg.dtsi template: 12 compatible = "ite,it8801-mfd"; 14 * SMBus address (7-bit without R/W) 19 irq-gpios = <&gpioa 1 0>; /* SMB_INT# */ 22 #include <ite/it8801-common-cfg.dtsi> 24 /* sub-devices available at nodelabels: 25 * - ioex_it8801_port0 26 * - ioex_it8801_port1 [all …]
|
/Zephyr-latest/include/zephyr/drivers/misc/grove_lcd/ |
D | grove_lcd.h | 1 /* grove_lcd.h - Public API for the Grove RGB LCD device */ 5 * SPDX-License-Identifier: Apache-2.0 30 * @param size the length of the text in bytes 32 void glcd_print(const struct device *dev, char *data, uint32_t size); 39 * @param col the column for the cursor to be moved to (0-15) 42 void glcd_cursor_pos_set(const struct device *dev, uint8_t col, uint8_t row); 121 * dot size, and text display quality.
|
/Zephyr-latest/drivers/led/ |
D | ht16k33.c | 4 * SPDX-License-Identifier: Apache-2.0 54 /* HT16K33 size definitions */ 97 const struct ht16k33_cfg *config = dev->config; in ht16k33_led_blink() 98 struct ht16k33_data *data = dev->data; in ht16k33_led_blink() 99 struct led_data *dev_data = &data->dev_data; in ht16k33_led_blink() 104 if (period < dev_data->min_period || period > dev_data->max_period) { in ht16k33_led_blink() 105 return -EINVAL; in ht16k33_led_blink() 119 if (i2c_write_dt(&config->i2c, &cmd, sizeof(cmd))) { in ht16k33_led_blink() 121 return -EIO; in ht16k33_led_blink() 132 const struct ht16k33_cfg *config = dev->config; in ht16k33_led_set_brightness() [all …]
|
/Zephyr-latest/drivers/misc/grove_lcd_rgb/ |
D | grove_lcd_rgb.c | 5 * SPDX-License-Identifier: Apache-2.0 82 void glcd_print(const struct device *dev, char *data, uint32_t size) in glcd_print() argument 84 const struct glcd_config *config = dev->config; in glcd_print() 88 for (i = 0; i < size; i++) { in glcd_print() 90 i2c_write_dt(&config->bus, buf, sizeof(buf)); in glcd_print() 95 void glcd_cursor_pos_set(const struct device *dev, uint8_t col, uint8_t row) in glcd_cursor_pos_set() argument 97 const struct glcd_config *config = dev->config; in glcd_cursor_pos_set() 102 col |= 0x80; in glcd_cursor_pos_set() 104 col |= 0xC0; in glcd_cursor_pos_set() 108 data[1] = col; in glcd_cursor_pos_set() [all …]
|