gpio: realtek-otto: Add RTL930x support
authorSander Vanheule <sander@svanheule.net>
Sat, 9 Apr 2022 19:55:49 +0000 (21:55 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Mon, 11 Apr 2022 12:29:57 +0000 (14:29 +0200)
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>
drivers/gpio/gpio-realtek-otto.c

index dd1b765..3ddaa17 100644 (file)
@@ -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);