gpio: rtd: Add support for Realtek DHC(Digital Home Center) RTD SoCs

This driver enables configuration of GPIO direction, GPIO values, GPIO
debounce settings and handles GPIO interrupts.

Signed-off-by: Tzuyi Chang <tychang@realtek.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
Tzuyi Chang
2023-12-28 18:48:00 +08:00
committed by Bartosz Golaszewski
parent ed06204495
commit eee636bff0
3 changed files with 618 additions and 0 deletions

View File

@@ -553,6 +553,19 @@ config GPIO_ROCKCHIP
help
Say yes here to support GPIO on Rockchip SoCs.
config GPIO_RTD
tristate "Realtek DHC GPIO support"
depends on ARCH_REALTEK
default y
select GPIOLIB_IRQCHIP
help
This option enables support for GPIOs found on Realtek DHC(Digital
Home Center) SoCs family, including RTD1295, RTD1315E, RTD1319,
RTD1319D, RTD1395, RTD1619 and RTD1619B.
Say yes here to support GPIO functionality and GPIO interrupt on
Realtek DHC SoCs.
config GPIO_SAMA5D2_PIOBU
tristate "SAMA5D2 PIOBU GPIO support"
depends on MFD_SYSCON

View File

@@ -137,6 +137,7 @@ obj-$(CONFIG_GPIO_RDC321X) += gpio-rdc321x.o
obj-$(CONFIG_GPIO_REALTEK_OTTO) += gpio-realtek-otto.o
obj-$(CONFIG_GPIO_REG) += gpio-reg.o
obj-$(CONFIG_GPIO_ROCKCHIP) += gpio-rockchip.o
obj-$(CONFIG_GPIO_RTD) += gpio-rtd.o
obj-$(CONFIG_ARCH_SA1100) += gpio-sa1100.o
obj-$(CONFIG_GPIO_SAMA5D2_PIOBU) += gpio-sama5d2-piobu.o
obj-$(CONFIG_GPIO_SCH311X) += gpio-sch311x.o

604
drivers/gpio/gpio-rtd.c Normal file

File diff suppressed because it is too large Load Diff