021-v5.19-06-gpio-realtek-otto-Add-RTL931x-support.patch 1.0 KB

123456789101112131415161718192021222324252627282930
  1. From d3bf3dc4bbbf6109bd9b4bd60089d36205ec4a37 Mon Sep 17 00:00:00 2001
  2. From: Sander Vanheule <[email protected]>
  3. Date: Sat, 9 Apr 2022 21:55:51 +0200
  4. Subject: [PATCH 6/6] gpio: realtek-otto: Add RTL931x support
  5. The RTL931x SoC series has support for 32 GPIOs, although not all lines
  6. may be broken out to a physical pad.
  7. The GPIO bank's parent interrupt can be routed to either or both of the
  8. SoC's CPU cores by the GIC. Line-by-line IRQ balancing is not possible
  9. on these SoCs.
  10. Signed-off-by: Sander Vanheule <[email protected]>
  11. Signed-off-by: Bartosz Golaszewski <[email protected]>
  12. ---
  13. drivers/gpio/gpio-realtek-otto.c | 3 +++
  14. 1 file changed, 3 insertions(+)
  15. --- a/drivers/gpio/gpio-realtek-otto.c
  16. +++ b/drivers/gpio/gpio-realtek-otto.c
  17. @@ -339,6 +339,9 @@ static const struct of_device_id realtek
  18. .compatible = "realtek,rtl9300-gpio",
  19. .data = (void *)(GPIO_PORTS_REVERSED | GPIO_INTERRUPTS_PER_CPU)
  20. },
  21. + {
  22. + .compatible = "realtek,rtl9310-gpio",
  23. + },
  24. {}
  25. };
  26. MODULE_DEVICE_TABLE(of, realtek_gpio_of_match);