021-v5.19-04-gpio-realtek-otto-Add-RTL930x-support.patch 982 B

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