zephyr/drivers/gpio/Kconfig.fxl6408
Fin Maaß 5c152e19fa drivers: gpio: use I2C_INIT_PRIORITY as default for gpio chips on i2c bus
use I2C_INIT_PRIORITY as default for gpio chips,
that are on a i2c bus.

If childs have the same priority as their parents,
the init order is decided by the devicetree ordinals.
This ensures, that these childs are init after their parent.
Because of that gpio chips on a i2c bus can have the
same priority as the i2c controller.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-12-02 15:19:24 -05:00

24 lines
516 B
Text

# Copyright (c) 2021 Abel Sensors
# SPDX-License-Identifier: Apache-2.0
menuconfig GPIO_FXL6408
bool "FXL6408 I2C-based GPIO chip"
default y
depends on DT_HAS_FCS_FXL6408_ENABLED
depends on I2C
help
Enable driver for FXL6408 I2C-based GPIO chip.
if GPIO_FXL6408
config GPIO_FXL6408_INIT_PRIORITY
int "Init priority"
default I2C_INIT_PRIORITY
help
Device driver initialization priority.
module = FXL6408
module-str = fxl6408
source "subsys/logging/Kconfig.template.log_config"
endif # GPIO_FXL6408