From: Rustam Adilov Date: Thu, 5 Mar 2026 16:11:06 +0000 (+0500) Subject: gpio: realtek-otto: add rtl9607 support X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f0aecf2957e7dba78603544368846133bf6d22e;p=thirdparty%2Fkernel%2Flinux.git gpio: realtek-otto: add rtl9607 support 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 Reviewed-by: Sander Vanheule Link: https://patch.msgid.link/20260305161106.15999-3-adilov@disroot.org Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpio-realtek-otto.c b/drivers/gpio/gpio-realtek-otto.c index 4cf91528f547e..5e3152c2e51a8 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);