Re: [PATCH 2/2] gpio: realtek-otto: add rtl9607 support
From: Sander Vanheule
Date: Thu Mar 05 2026 - 14:04:30 EST
Hi,
On Thu, 2026-03-05 at 21:11 +0500, Rustam Adilov wrote:
> The RTL9607C SoC has support for 3 GPIO banks with 32 GPIOs each and
> the port order is reversed just like in RTL930x.
>
> Signed-off-by: Rustam Adilov <adilov@xxxxxxxxxxx>
> ---
> drivers/gpio/gpio-realtek-otto.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpio/gpio-realtek-otto.c b/drivers/gpio/gpio-realtek-
> otto.c
> index 4cf91528f547..5e3152c2e51a 100644
> --- a/drivers/gpio/gpio-realtek-otto.c
> +++ b/drivers/gpio/gpio-realtek-otto.c
> @@ -351,6 +351,10 @@ static const struct of_device_id realtek_gpio_of_match[]
> = {
> {
> .compatible = "realtek,rtl9310-gpio",
> },
> + {
> + .compatible = "realtek,rtl9607-gpio",
> + .data = (void *)GPIO_PORTS_REVERSED,
> + },
> {}
> };
> MODULE_DEVICE_TABLE(of, realtek_gpio_of_match);
If I'm not mistaken, this SoC has a MIPS InterAptiv CPU like the RTL931x SoC
series. Were you able to validate that the interrupts are functioning as
expected?
Best,
Sander