drivers: gpio: gd32: initial version

Add GPIO driver for Gigadevice SoCs. The driver supports devices with
the AF and AFIO models.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2021-11-25 23:47:44 +01:00 committed by Anas Nashif
commit b9127e48e6
4 changed files with 387 additions and 1 deletions

11
drivers/gpio/Kconfig.gd32 Normal file
View file

@ -0,0 +1,11 @@
# Copyright (c) 2021 Teslabs Engineering S.L.
# SPDX-License-Identifier: Apache-2.0
DT_COMPAT_GD_GD32_GPIO := gd,gd32-gpio
config GPIO_GD32
bool "GD32 GPIO driver"
depends on SOC_FAMILY_GD32
default $(dt_compat_enabled,$(DT_COMPAT_GD_GD32_GPIO))
help
Enable the GD32 GPIO driver.