0046-ARM-dts-sunxi-Add-AXP221-and-AXP809-GPIO-nodes.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From 9e34036e651528df9575c2ffb38d78ae1f613481 Mon Sep 17 00:00:00 2001
  2. From: Samuel Holland <[email protected]>
  3. Date: Sat, 21 Aug 2021 17:11:54 -0500
  4. Subject: [PATCH 46/90] ARM: dts: sunxi: Add AXP221 and AXP809 GPIO nodes
  5. These PMICs each have two GPIO pins, and are supported by the axp_gpio
  6. driver. In order to convert the axp_gpio driver to probe using the
  7. device tree, the corresponding device tree nodes must be present. Add
  8. them, following the same binding as the AXP209 and AXP813.
  9. Signed-off-by: Samuel Holland <[email protected]>
  10. ---
  11. arch/arm/dts/axp22x.dtsi | 6 ++++++
  12. arch/arm/dts/axp809.dtsi | 7 +++++++
  13. 2 files changed, 13 insertions(+)
  14. --- a/arch/arm/dts/axp22x.dtsi
  15. +++ b/arch/arm/dts/axp22x.dtsi
  16. @@ -67,6 +67,12 @@
  17. status = "disabled";
  18. };
  19. + axp_gpio: gpio {
  20. + compatible = "x-powers,axp221-gpio";
  21. + gpio-controller;
  22. + #gpio-cells = <2>;
  23. + };
  24. +
  25. regulators {
  26. /* Default work frequency for buck regulators */
  27. x-powers,dcdc-freq = <3000>;
  28. --- a/arch/arm/dts/axp809.dtsi
  29. +++ b/arch/arm/dts/axp809.dtsi
  30. @@ -50,4 +50,11 @@
  31. compatible = "x-powers,axp809";
  32. interrupt-controller;
  33. #interrupt-cells = <1>;
  34. +
  35. + axp_gpio: gpio {
  36. + compatible = "x-powers,axp809-gpio",
  37. + "x-powers,axp221-gpio";
  38. + gpio-controller;
  39. + #gpio-cells = <2>;
  40. + };
  41. };