214-2-dt-sun4i-add-axp209-to-boards.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. From d14c5523653ca6ce9f1487922c8ab4e571d17b62 Mon Sep 17 00:00:00 2001
  2. From: Hans de Goede <hdegoede@redhat.com>
  3. Date: Tue, 11 Mar 2014 16:51:44 +0100
  4. Subject: [PATCH] ARM: sun4i: dt: Add AXP209 support to various boards
  5. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  6. ---
  7. arch/arm/boot/dts/sun4i-a10-a1000.dts | 9 +++++++++
  8. arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 9 +++++++++
  9. arch/arm/boot/dts/sun4i-a10-hackberry.dts | 15 +++++++++++++++
  10. arch/arm/boot/dts/sun4i-a10-inet97fv2.dts | 9 +++++++++
  11. arch/arm/boot/dts/sun4i-a10-mini-xplus.dts | 15 +++++++++++++++
  12. arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 15 +++++++++++++++
  13. arch/arm/boot/dts/sun4i-a10-pcduino.dts | 9 +++++++++
  14. 7 files changed, 81 insertions(+)
  15. --- a/arch/arm/boot/dts/sun4i-a10-a1000.dts
  16. +++ b/arch/arm/boot/dts/sun4i-a10-a1000.dts
  17. @@ -65,6 +65,15 @@
  18. pinctrl-names = "default";
  19. pinctrl-0 = <&i2c0_pins_a>;
  20. status = "okay";
  21. +
  22. + axp: axp20x@34 {
  23. + reg = <0x34>;
  24. + interrupts = <0>;
  25. +
  26. + axp,system-power-controller;
  27. +
  28. + /include/ "x-powers-axp209.dtsi"
  29. + };
  30. };
  31. };
  32. --- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
  33. +++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
  34. @@ -88,6 +88,15 @@
  35. pinctrl-names = "default";
  36. pinctrl-0 = <&i2c0_pins_a>;
  37. status = "okay";
  38. +
  39. + axp: axp20x@34 {
  40. + reg = <0x34>;
  41. + interrupts = <0>;
  42. +
  43. + axp,system-power-controller;
  44. +
  45. + /include/ "x-powers-axp209.dtsi"
  46. + };
  47. };
  48. i2c1: i2c@01c2b000 {
  49. --- a/arch/arm/boot/dts/sun4i-a10-hackberry.dts
  50. +++ b/arch/arm/boot/dts/sun4i-a10-hackberry.dts
  51. @@ -82,6 +82,21 @@
  52. pinctrl-0 = <&uart0_pins_a>;
  53. status = "okay";
  54. };
  55. +
  56. + i2c0: i2c@01c2ac00 {
  57. + pinctrl-names = "default";
  58. + pinctrl-0 = <&i2c0_pins_a>;
  59. + status = "okay";
  60. +
  61. + axp: axp20x@34 {
  62. + reg = <0x34>;
  63. + interrupts = <0>;
  64. +
  65. + axp,system-power-controller;
  66. +
  67. + /include/ "x-powers-axp209.dtsi"
  68. + };
  69. + };
  70. };
  71. regulators {
  72. --- a/arch/arm/boot/dts/sun4i-a10-mini-xplus.dts
  73. +++ b/arch/arm/boot/dts/sun4i-a10-mini-xplus.dts
  74. @@ -55,6 +55,21 @@
  75. pinctrl-0 = <&uart0_pins_a>;
  76. status = "okay";
  77. };
  78. +
  79. + i2c0: i2c@01c2ac00 {
  80. + pinctrl-names = "default";
  81. + pinctrl-0 = <&i2c0_pins_a>;
  82. + status = "okay";
  83. +
  84. + axp: axp20x@34 {
  85. + reg = <0x34>;
  86. + interrupts = <0>;
  87. +
  88. + axp,system-power-controller;
  89. +
  90. + /include/ "x-powers-axp209.dtsi"
  91. + };
  92. + };
  93. };
  94. reg_usb1_vbus: usb1-vbus {
  95. --- a/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
  96. +++ b/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts
  97. @@ -90,6 +90,21 @@
  98. pinctrl-0 = <&uart0_pins_a>;
  99. status = "okay";
  100. };
  101. +
  102. + i2c0: i2c@01c2ac00 {
  103. + pinctrl-names = "default";
  104. + pinctrl-0 = <&i2c0_pins_a>;
  105. + status = "okay";
  106. +
  107. + axp: axp20x@34 {
  108. + reg = <0x34>;
  109. + interrupts = <0>;
  110. +
  111. + axp,system-power-controller;
  112. +
  113. + /include/ "x-powers-axp209.dtsi"
  114. + };
  115. + };
  116. };
  117. leds {
  118. --- a/arch/arm/boot/dts/sun4i-a10-pcduino.dts
  119. +++ b/arch/arm/boot/dts/sun4i-a10-pcduino.dts
  120. @@ -74,6 +74,15 @@
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&i2c0_pins_a>;
  123. status = "okay";
  124. +
  125. + axp: axp20x@34 {
  126. + reg = <0x34>;
  127. + interrupts = <0>;
  128. +
  129. + axp,system-power-controller;
  130. +
  131. + /include/ "x-powers-axp209.dtsi"
  132. + };
  133. };
  134. };