ath25: switch default kernel to 5.15
[openwrt/openwrt.git] / target / linux / realtek / patches-5.10 / 021-v5.19-04-gpio-realtek-otto-Add-RTL930x-support.patch
1 From deaf1cecdeb052cdb5e92fd642016198724b44a4 Mon Sep 17 00:00:00 2001
2 From: Sander Vanheule <sander@svanheule.net>
3 Date: Sat, 9 Apr 2022 21:55:49 +0200
4 Subject: [PATCH 4/6] gpio: realtek-otto: Add RTL930x support
5
6 The RTL930x SoC series has support for 24 GPIOs, with the port order
7 reversed compared to RTL838x and RTL839x. The RTL930x series also has
8 two CPUs (VPEs) and can distribute individual GPIO interrupts between
9 them.
10
11 Signed-off-by: Sander Vanheule <sander@svanheule.net>
12 Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
13 ---
14 drivers/gpio/gpio-realtek-otto.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
17 --- a/drivers/gpio/gpio-realtek-otto.c
18 +++ b/drivers/gpio/gpio-realtek-otto.c
19 @@ -338,6 +338,10 @@ static const struct of_device_id realtek
20 {
21 .compatible = "realtek,rtl8390-gpio",
22 },
23 + {
24 + .compatible = "realtek,rtl9300-gpio",
25 + .data = (void *)(GPIO_PORTS_REVERSED | GPIO_INTERRUPTS_PER_CPU)
26 + },
27 {}
28 };
29 MODULE_DEVICE_TABLE(of, realtek_gpio_of_match);