Skip to content

Commit dbf6b05

Browse files
committed
drivers: gpio: it8801: Add I2C-based GPIO device driver
Add I2C-based GPIO device driver. Supports 16-port GPIO divided into 3 groups. Signed-off-by: Tim Lin <[email protected]>
1 parent 9c2b9ba commit dbf6b05

File tree

6 files changed

+516
-0
lines changed

6 files changed

+516
-0
lines changed

drivers/gpio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_IMX gpio_imx.c)
3434
zephyr_library_sources_ifdef(CONFIG_GPIO_INFINEON_CAT1 gpio_ifx_cat1.c)
3535
zephyr_library_sources_ifdef(CONFIG_GPIO_INTEL gpio_intel.c)
3636
zephyr_library_sources_ifdef(CONFIG_GPIO_IPROC gpio_iproc.c)
37+
zephyr_library_sources_ifdef(CONFIG_GPIO_ITE_IT8801 gpio_ite_it8801.c)
3738
zephyr_library_sources_ifdef(CONFIG_GPIO_ITE_IT8XXX2 gpio_ite_it8xxx2.c)
3839
zephyr_library_sources_ifdef(CONFIG_GPIO_ITE_IT8XXX2_V2 gpio_ite_it8xxx2_v2.c)
3940
zephyr_library_sources_ifdef(CONFIG_GPIO_KSCAN_ITE_IT8XXX2 gpio_kscan_ite_it8xxx2.c)

drivers/gpio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ source "drivers/gpio/Kconfig.ifx_cat1"
127127
source "drivers/gpio/Kconfig.imx"
128128
source "drivers/gpio/Kconfig.intel"
129129
source "drivers/gpio/Kconfig.iproc"
130+
source "drivers/gpio/Kconfig.it8801"
130131
source "drivers/gpio/Kconfig.it8xxx2"
131132
source "drivers/gpio/Kconfig.litex"
132133
source "drivers/gpio/Kconfig.lmp90xxx"

drivers/gpio/Kconfig.it8801

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) 2024 ITE Corporation. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config GPIO_ITE_IT8801
5+
bool "ITE IT8801 GPIO device driver"
6+
default y
7+
depends on DT_HAS_ITE_IT8801_GPIO_ENABLED
8+
select I2C
9+
select MFD
10+
help
11+
Enable driver for ITE IT8801 I2C-based GPIO.

0 commit comments

Comments
 (0)