Home
last modified time | relevance | path

Searched +full:kso +full:- +full:mapping (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/drivers/gpio/
Dgpio_kscan_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/gpio/ite-it8xxx2-gpio.h>
21 /* KSI[7:0]/KSO[15:8]/KSO[7:0] port gpio output enable register (bit mapping to pin) */
23 /* KSI[7:0]/KSO[15:8]/KSO[7:0] port gpio control register (bit mapping to pin) */
25 /* KSI[7:0]/KSO[15:8]/KSO[7:0] port gpio data register (bit mapping to pin) */
27 /* KSI[7:0]/KSO[15:8]/KSO[7:0] port gpio data mirror register (bit mapping to pin) */
29 /* KSI[7:0]/KSO[15:8]/KSO[7:0] port gpio open drain register (bit mapping to pin) */
42 const struct gpio_kscan_cfg *const config = dev->config; in gpio_kscan_it8xxx2_configure()
43 volatile uint8_t *reg_ksi_kso_gctrl = config->reg_ksi_kso_gctrl; in gpio_kscan_it8xxx2_configure()
44 volatile uint8_t *reg_ksi_kso_goen = config->reg_ksi_kso_goen; in gpio_kscan_it8xxx2_configure()
[all …]
/Zephyr-latest/dts/bindings/input/
Dite,it8801-kbd.yaml2 # 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]
17 Switching the pin to KSO alternate function.
19 kso-mapping:
22 row-size:
25 col-size:
/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>
23 /* GP00, GP01, GP21, GP22, GP23 can be configured as alternate KSO pins */
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 {
[all …]
/Zephyr-latest/drivers/pinctrl/
Dpinctrl_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
22 /* gpio port control register (byte mapping to pin) */
46 * KSI[7:0]/KSO[15:8]/KSO[7:0] port gpio control register
47 * (bit mapping to pin)
50 /* KSI[7:0]/KSO[15:8]/KSO[7:0] port control register */
53 * KSO push-pull/open-drain bit of KSO[15:0] control register
58 * KSI/KSO pullup bit of KSI[7:0]/KSO[15:0] control register
74 const struct pinctrl_it8xxx2_config *pinctrl_config = pins->pinctrls->config; in pinctrl_it8xxx2_set()
75 const struct pinctrl_it8xxx2_gpio *gpio = &(pinctrl_config->gpio); in pinctrl_it8xxx2_set()
76 uint32_t pincfg = pins->pincfg; in pinctrl_it8xxx2_set()
[all …]
/Zephyr-latest/dts/bindings/mfd/
Dite,it8801-mfd.yaml2 # 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/drivers/input/
Dinput_npcx_kbd.c5 * SPDX-License-Identifier: Apache-2.0
34 /* Keyboard scan input (KSI) wake-up irq */
36 /* Size of keyboard inputs-wui mapping array */
38 /* Mapping table between keyboard inputs and wui */
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()
[all …]