]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: realtek-otto: add rtl9607 support
authorRustam Adilov <adilov@disroot.org>
Thu, 5 Mar 2026 16:11:06 +0000 (21:11 +0500)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Tue, 10 Mar 2026 09:10:24 +0000 (10:10 +0100)
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@disroot.org>
Reviewed-by: Sander Vanheule <sander@svanheule.net>
Link: https://patch.msgid.link/20260305161106.15999-3-adilov@disroot.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-realtek-otto.c

index 4cf91528f547e4d750d4763d85c2c99ab8d2c0be..5e3152c2e51a8cf72f0f939ba54466f81ae87da5 100644 (file)
@@ -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);