Lines Matching +full:kso +full:- +full:mapping

4  * 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()
45 volatile uint8_t *reg_ksi_kso_gdat = config->reg_ksi_kso_gdat; in gpio_kscan_it8xxx2_configure()
46 volatile uint8_t *reg_ksi_kso_gpod = config->reg_ksi_kso_gpod; in gpio_kscan_it8xxx2_configure()
49 /* KSI[7:0]/KSO[15:8]/KSO[7:0] pins don't support open source, 1.8V and 5.0V mode */ in gpio_kscan_it8xxx2_configure()
53 return -ENOTSUP; in gpio_kscan_it8xxx2_configure()
65 /* Set open-drain and enable internal pullup */ in gpio_kscan_it8xxx2_configure()
68 /* Set push-pull and disable internal pullup */ in gpio_kscan_it8xxx2_configure()
106 const struct gpio_kscan_cfg *const config = dev->config; in gpio_kscan_it8xxx2_get_config()
107 volatile uint8_t *reg_ksi_kso_goen = config->reg_ksi_kso_goen; in gpio_kscan_it8xxx2_get_config()
108 volatile uint8_t *reg_ksi_kso_gdat = config->reg_ksi_kso_gdat; in gpio_kscan_it8xxx2_get_config()
109 volatile uint8_t *reg_ksi_kso_gpod = config->reg_ksi_kso_gpod; in gpio_kscan_it8xxx2_get_config()
113 /* KSI[7:0]/KSO[15:8]/KSO[7:0] pins only support 3.3V */ in gpio_kscan_it8xxx2_get_config()
120 /* Open-drain or push-pull */ in gpio_kscan_it8xxx2_get_config()
149 const struct gpio_kscan_cfg *const config = dev->config; in gpio_kscan_it8xxx2_port_get_raw()
150 volatile uint8_t *reg_ksi_kso_gdmr = config->reg_ksi_kso_gdmr; in gpio_kscan_it8xxx2_port_get_raw()
162 const struct gpio_kscan_cfg *const config = dev->config; in gpio_kscan_it8xxx2_port_set_masked_raw()
163 volatile uint8_t *reg_ksi_kso_gdat = config->reg_ksi_kso_gdat; in gpio_kscan_it8xxx2_port_set_masked_raw()
178 const struct gpio_kscan_cfg *const config = dev->config; in gpio_kscan_it8xxx2_port_set_bits_raw()
179 volatile uint8_t *reg_ksi_kso_gdat = config->reg_ksi_kso_gdat; in gpio_kscan_it8xxx2_port_set_bits_raw()
193 const struct gpio_kscan_cfg *const config = dev->config; in gpio_kscan_it8xxx2_port_clear_bits_raw()
194 volatile uint8_t *reg_ksi_kso_gdat = config->reg_ksi_kso_gdat; in gpio_kscan_it8xxx2_port_clear_bits_raw()
208 const struct gpio_kscan_cfg *const config = dev->config; in gpio_kscan_it8xxx2_port_toggle_bits()
209 volatile uint8_t *reg_ksi_kso_gdat = config->reg_ksi_kso_gdat; in gpio_kscan_it8xxx2_port_toggle_bits()