214-3-dt-sun7i-add-axp209-to-cubietruck.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From 886f41537ad5e873caee522704e96e844a485961 Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <hdegoede@redhat.com>
  3. Date: Wed, 5 Mar 2014 20:41:17 +0100
  4. Subject: [PATCH] ARM: sun7i: dt: Add AXP209 support to cubietruck
  5. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  6. ---
  7. arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 10 ++++++++++
  8. arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 10 ++++++++++
  9. 2 files changed, 20 insertions(+)
  10. --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
  11. +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
  12. @@ -89,6 +89,16 @@
  13. pinctrl-names = "default";
  14. pinctrl-0 = <&uart0_pins_a>;
  15. status = "okay";
  16. +
  17. + axp: axp20x@34 {
  18. + reg = <0x34>;
  19. + interrupt-parent = <&nmi_intc>;
  20. + interrupts = <0 8>;
  21. +
  22. + axp,system-power-controller;
  23. +
  24. + /include/ "x-powers-axp209.dtsi"
  25. + };
  26. };
  27. i2c0: i2c@01c2ac00 {
  28. --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  29. +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  30. @@ -127,6 +127,16 @@
  31. pinctrl-names = "default";
  32. pinctrl-0 = <&i2c0_pins_a>;
  33. status = "okay";
  34. +
  35. + axp: axp20x@34 {
  36. + reg = <0x34>;
  37. + interrupt-parent = <&nmi_intc>;
  38. + interrupts = <0 8>;
  39. +
  40. + axp,system-power-controller;
  41. +
  42. + /include/ "x-powers-axp209.dtsi"
  43. + };
  44. };
  45. i2c1: i2c@01c2b000 {