zephyr/drivers/gpio/Kconfig.sx1509b
Viraaj Somayajula e850ced155 gpio: gpio_sx1509b: add support for interrupt functionality
enable the interrupt functionality for sx1509b gpio expander,
when the CONFIG_GPIO_SX1509B_INTERRUPT config is enabled.
The gpio pin used for interrupt should be configured in the
device tree sx1509b node before enabling the interrupt
configuration.

Signed-off-by: Viraaj Somayajula <sviraaj@zedblox.com>
Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2020-04-20 18:51:59 +02:00

41 lines
945 B
Plaintext

# SX1509B GPIO configuration options
# Copyright (c) 2018 Aapo Vienamo
# SPDX-License-Identifier: Apache-2.0
# Workaround for not being able to have commas in macro arguments
DT_COMPAT_SEMTECH_SX1509B := semtech,sx1509b
menuconfig GPIO_SX1509B
bool "SX1509B I2C GPIO chip"
default $(dt_compat_enabled,$(DT_COMPAT_SEMTECH_SX1509B))
depends on I2C
help
Enable driver for SX1509B I2C GPIO chip.
if GPIO_SX1509B
config GPIO_SX1509B_INIT_PRIORITY
int "Init priority"
default 70
help
Device driver initialization priority.
config GPIO_SX1509B_INTERRUPT
bool "Interrupt enable"
default n
help
Enable support for interrupts on GPIO pins.
config GPIO_SX1509B_DEBOUNCE_TIME
int "Debounce time interval"
range 0 7
default 0
help
Debounce time interval when debounce enabled.
A value V produces a multiplier of 0.5 ms * 2^V, which is
then scaled by 2 MHz / fOSC. See the datasheet for details.
endif # GPIO_SX1509B