Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/mfd: it8801: Implement ITE IT8801 mfd drivers #79416

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/gpio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_IMX gpio_imx.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_INFINEON_CAT1 gpio_ifx_cat1.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_INTEL gpio_intel.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_IPROC gpio_iproc.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_ITE_IT8801 gpio_ite_it8801.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_ITE_IT8XXX2 gpio_ite_it8xxx2.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_ITE_IT8XXX2_V2 gpio_ite_it8xxx2_v2.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_KSCAN_ITE_IT8XXX2 gpio_kscan_ite_it8xxx2.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ source "drivers/gpio/Kconfig.ifx_cat1"
source "drivers/gpio/Kconfig.imx"
source "drivers/gpio/Kconfig.intel"
source "drivers/gpio/Kconfig.iproc"
source "drivers/gpio/Kconfig.it8801"
source "drivers/gpio/Kconfig.it8xxx2"
source "drivers/gpio/Kconfig.litex"
source "drivers/gpio/Kconfig.lmp90xxx"
Expand Down
22 changes: 22 additions & 0 deletions drivers/gpio/Kconfig.it8801
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2024 ITE Corporation. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

config GPIO_ITE_IT8801
bool "ITE IT8801 GPIO device driver"
default y
depends on DT_HAS_ITE_IT8801_GPIO_ENABLED
select I2C
select MFD
help
Enable driver for ITE IT8801 I2C-based GPIO.

if GPIO_ITE_IT8801

config GPIO_IT8801_INIT_PRIORITY
int "IT8801 GPIO port init priority"
default 85
help
IT8801 GPIO port device driver initialization priority. The priority
must be lower than MFD_INIT_PRIORITY device.
Comment on lines +19 to +20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a BUILD_ASSERT to check the init priority.


endif # GPIO_ITE_IT8801
Loading
Loading