Skip to content

Commit 5d6101e

Browse files
Alain Volmatkartben
authored andcommitted
driver: gpio: mfxstm32l152: add driver for STM32L152 based MFX
Initial commit for a STM32L152 based GPIO expansion chip. The mfxstm32l152 driver offers GPIO controller fonctions. Signed-off-by: Alain Volmat <[email protected]>
1 parent 35abb31 commit 5d6101e

File tree

5 files changed

+682
-0
lines changed

5 files changed

+682
-0
lines changed

drivers/gpio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_MCUX gpio_mcux.c)
5656
zephyr_library_sources_ifdef(CONFIG_GPIO_MCUX_IGPIO gpio_mcux_igpio.c)
5757
zephyr_library_sources_ifdef(CONFIG_GPIO_MCUX_LPC gpio_mcux_lpc.c)
5858
zephyr_library_sources_ifdef(CONFIG_GPIO_MCUX_RGPIO gpio_mcux_rgpio.c)
59+
zephyr_library_sources_ifdef(CONFIG_GPIO_MFXSTM32L152 gpio_mfxstm32l152.c)
5960
zephyr_library_sources_ifdef(CONFIG_GPIO_MMIO32 gpio_mmio32.c)
6061
zephyr_library_sources_ifdef(CONFIG_GPIO_NCT38XX gpio_nct38xx.c)
6162
zephyr_library_sources_ifdef(CONFIG_GPIO_NCT38XX gpio_nct38xx_port.c)

drivers/gpio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ source "drivers/gpio/Kconfig.mcux_igpio"
144144
source "drivers/gpio/Kconfig.mcux_lpc"
145145
source "drivers/gpio/Kconfig.mcux_rgpio"
146146
source "drivers/gpio/Kconfig.mec5"
147+
source "drivers/gpio/Kconfig.mfxstm32l152"
147148
source "drivers/gpio/Kconfig.mmio32"
148149
source "drivers/gpio/Kconfig.nct38xx"
149150
source "drivers/gpio/Kconfig.neorv32"

drivers/gpio/Kconfig.mfxstm32l152

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

0 commit comments

Comments
 (0)