Skip to content

Commit 17b9785

Browse files
AzharMCHPnashif
authored andcommitted
drivers: gpio: microchip: add gpio driver for Port G1 IP
Add gpio driver for Microchip Port G1 Peripheral IPs Signed-off-by: Mohamed Azhar <[email protected]>
1 parent 6c0c690 commit 17b9785

File tree

5 files changed

+610
-0
lines changed

5 files changed

+610
-0
lines changed

drivers/gpio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_MAX2219X gpio_max2219x.c)
5454
zephyr_library_sources_ifdef(CONFIG_GPIO_MAX32 gpio_max32.c)
5555
zephyr_library_sources_ifdef(CONFIG_GPIO_MCHP_MEC5 gpio_mchp_mec5.c)
5656
zephyr_library_sources_ifdef(CONFIG_GPIO_MCHP_MSS gpio_mchp_mss.c)
57+
zephyr_library_sources_ifdef(CONFIG_GPIO_MCHP_PORT_G1 gpio_mchp_port_g1.c)
5758
zephyr_library_sources_ifdef(CONFIG_GPIO_MCP230XX gpio_mcp230xx.c)
5859
zephyr_library_sources_ifdef(CONFIG_GPIO_MCP23SXX gpio_mcp23sxx.c)
5960
zephyr_library_sources_ifdef(CONFIG_GPIO_MCP23XXX gpio_mcp23xxx.c)

drivers/gpio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ source "drivers/gpio/Kconfig.max14917"
141141
source "drivers/gpio/Kconfig.max22017"
142142
source "drivers/gpio/Kconfig.max2219x"
143143
source "drivers/gpio/Kconfig.max32"
144+
source "drivers/gpio/Kconfig.mchp"
144145
source "drivers/gpio/Kconfig.mchp_mss"
145146
source "drivers/gpio/Kconfig.mcp23xxx"
146147
source "drivers/gpio/Kconfig.mcux"

drivers/gpio/Kconfig.mchp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2025 Microchip Technology Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config GPIO_MCHP_PORT_G1
5+
bool "Microchip PORT G1 GPIO driver"
6+
default y
7+
depends on DT_HAS_MICROCHIP_PORT_G1_GPIO_ENABLED
8+
help
9+
This option enables GPIO driver for group (g1) of PORT peripherals.

0 commit comments

Comments
 (0)