zephyr/drivers/gpio/Kconfig.it8xxx2
Ruibin Chang d7f482a022 ITE driver/gpio/it8xxx2: add kscan pins gpio driver
Add kscan pins gpio driver for KSI[7:0], KSO[15:0] pins that
they can be configured to gpio mode. These pins registers address,
bit fields and function are different from GPIO group, so I create
a new compatible driver for these pins.

Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
2023-01-14 09:22:39 +01:00

23 lines
768 B
Plaintext

# Copyright (c) 2020 ITE Corporation. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
config GPIO_ITE_IT8XXX2
bool "ITE IT8XXX2 GPIO driver"
default y
depends on DT_HAS_ITE_IT8XXX2_GPIO_ENABLED
help
Enable driver for the ite GPIO controller.
config GPIO_KSCAN_ITE_IT8XXX2
bool "ITE IT8XXX2 GPIO KSCAN driver"
default y
depends on DT_HAS_ITE_IT8XXX2_GPIOKSCAN_ENABLED
help
Enable GPIO KSCAN driver for ITE chip it8xxx2.
IT8XXX2 support 8 KSI pins and 18 KSO pins, all of them can be configured
to GPIO mode.
KSI[7:0] and KSO[15:0] pins are configured to GPIO mode by
this GPIO_KSCAN_ITE_IT8XXX2 driver.
KSO[17:16] corresponds to GPC5 and GPC3 pin, so they can be configured to
gpio mode by original GPIO_ITE_IT8XXX2 driver.