Skip to content

Commit ba7eb10

Browse files
jstr00carlescufi
authored andcommitted
drivers: gpio: Add driver for pcf8574
Adds a driver for pcf8574 via i2c. Signed-off-by: Josia Strack <[email protected]>
1 parent c56f546 commit ba7eb10

File tree

6 files changed

+453
-0
lines changed

6 files changed

+453
-0
lines changed

drivers/gpio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_SNPS_CREG gpio_creg_gpio.c)
4848
zephyr_library_sources_ifdef(CONFIG_GPIO_STMPE1600 gpio_stmpe1600.c)
4949
zephyr_library_sources_ifdef(CONFIG_GPIO_XEC_V2 gpio_mchp_xec_v2.c)
5050
zephyr_library_sources_ifdef(CONFIG_GPIO_PCA953X gpio_pca953x.c)
51+
zephyr_library_sources_ifdef(CONFIG_GPIO_PCF8574 gpio_pcf8574.c)
5152
zephyr_library_sources_ifdef(CONFIG_GPIO_FXL6408 gpio_fxl6408.c)
5253
zephyr_library_sources_ifdef(CONFIG_GPIO_ANDES_ATCGPIO100 gpio_andes_atcgpio100.c)
5354
zephyr_library_sources_ifdef(CONFIG_GPIO_NEORV32 gpio_neorv32.c)

drivers/gpio/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ source "drivers/gpio/Kconfig.stmpe1600"
128128

129129
source "drivers/gpio/Kconfig.pca953x"
130130

131+
source "drivers/gpio/Kconfig.pcf8574"
132+
131133
source "drivers/gpio/Kconfig.fxl6408"
132134

133135
source "drivers/gpio/Kconfig.andes_atcgpio100"

drivers/gpio/Kconfig.pcf8574

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# PCF8574 GPIO configuration options
2+
3+
# Copyright (c) 2022 Ithinx
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
menuconfig GPIO_PCF8574
7+
bool "PCF8574 I2C GPIO chip"
8+
default y
9+
depends on DT_HAS_NXP_PCF8574_ENABLED
10+
select I2C
11+
help
12+
Enable driver for PCF8574 I2C GPIO chip.
13+
14+
config GPIO_PCF8574_INIT_PRIORITY
15+
int "Init priority"
16+
default 70
17+
depends on GPIO_PCF8574
18+
help
19+
Device driver initialization priority.

0 commit comments

Comments
 (0)