aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-realtek-otto.c
diff options
context:
space:
mode:
authorSander Vanheule <sander@svanheule.net>2022-04-09 21:55:49 +0200
committerBartosz Golaszewski <brgl@bgdev.pl>2022-04-11 14:29:57 +0200
commitdeaf1cecdeb052cdb5e92fd642016198724b44a4 (patch)
treec11a2942444f90d20053fc21ef79b8a65484ac34 /drivers/gpio/gpio-realtek-otto.c
parentgpio: realtek-otto: Support per-cpu interrupts (diff)
downloadlinux-dev-deaf1cecdeb052cdb5e92fd642016198724b44a4.tar.xz
linux-dev-deaf1cecdeb052cdb5e92fd642016198724b44a4.zip
gpio: realtek-otto: Add RTL930x support
The RTL930x SoC series has support for 24 GPIOs, with the port order reversed compared to RTL838x and RTL839x. The RTL930x series also has two CPUs (VPEs) and can distribute individual GPIO interrupts between them. Signed-off-by: Sander Vanheule <sander@svanheule.net> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'drivers/gpio/gpio-realtek-otto.c')
-rw-r--r--drivers/gpio/gpio-realtek-otto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-realtek-otto.c b/drivers/gpio/gpio-realtek-otto.c
index dd1b7656d23a..3ddaa17accff 100644
--- a/drivers/gpio/gpio-realtek-otto.c
+++ b/drivers/gpio/gpio-realtek-otto.c
@@ -335,6 +335,10 @@ static const struct of_device_id realtek_gpio_of_match[] = {
{
.compatible = "realtek,rtl8390-gpio",
},
+ {
+ .compatible = "realtek,rtl9300-gpio",
+ .data = (void *)(GPIO_PORTS_REVERSED | GPIO_INTERRUPTS_PER_CPU)
+ },
{}
};
MODULE_DEVICE_TABLE(of, realtek_gpio_of_match);