gpio: realtek-otto: Add RTL931x support
authorSander Vanheule <sander@svanheule.net>
Sat, 9 Apr 2022 19:55:51 +0000 (21:55 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Mon, 11 Apr 2022 12:30:31 +0000 (14:30 +0200)
The RTL931x SoC series has support for 32 GPIOs, although not all lines
may be broken out to a physical pad.

The GPIO bank's parent interrupt can be routed to either or both of the
SoC's CPU cores by the GIC. Line-by-line IRQ balancing is not possible
on these SoCs.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-realtek-otto.c

index 3ddaa17..c52b2cb 100644 (file)
@@ -339,6 +339,9 @@ static const struct of_device_id realtek_gpio_of_match[] = {
                .compatible = "realtek,rtl9300-gpio",
                .data = (void *)(GPIO_PORTS_REVERSED | GPIO_INTERRUPTS_PER_CPU)
        },
+       {
+               .compatible = "realtek,rtl9310-gpio",
+       },
        {}
 };
 MODULE_DEVICE_TABLE(of, realtek_gpio_of_match);