axp22x.dtsi 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /*
  2. * Copyright 2015 Chen-Yu Tsai
  3. *
  4. * Chen-Yu Tsai <[email protected]>
  5. *
  6. * This file is dual-licensed: you can use it either under the terms
  7. * of the GPL or the X11 license, at your option. Note that this dual
  8. * licensing only applies to this file, and not this project as a
  9. * whole.
  10. *
  11. * a) This file is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of the
  14. * License, or (at your option) any later version.
  15. *
  16. * This file is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * Or, alternatively,
  22. *
  23. * b) Permission is hereby granted, free of charge, to any person
  24. * obtaining a copy of this software and associated documentation
  25. * files (the "Software"), to deal in the Software without
  26. * restriction, including without limitation the rights to use,
  27. * copy, modify, merge, publish, distribute, sublicense, and/or
  28. * sell copies of the Software, and to permit persons to whom the
  29. * Software is furnished to do so, subject to the following
  30. * conditions:
  31. *
  32. * The above copyright notice and this permission notice shall be
  33. * included in all copies or substantial portions of the Software.
  34. *
  35. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  36. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  37. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  38. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  39. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  40. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  41. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  42. * OTHER DEALINGS IN THE SOFTWARE.
  43. */
  44. /*
  45. * AXP221/221s/223 Integrated Power Management Chip
  46. * http://www.x-powers.com/product/AXP22X.php
  47. * http://dl.linux-sunxi.org/AXP/AXP221%20Datasheet%20V1.2%2020130326%20.pdf
  48. */
  49. &axp22x {
  50. interrupt-controller;
  51. #interrupt-cells = <1>;
  52. ac_power_supply: ac-power {
  53. compatible = "x-powers,axp221-ac-power-supply";
  54. status = "disabled";
  55. };
  56. axp_adc: adc {
  57. compatible = "x-powers,axp221-adc";
  58. #io-channel-cells = <1>;
  59. };
  60. battery_power_supply: battery-power {
  61. compatible = "x-powers,axp221-battery-power-supply";
  62. status = "disabled";
  63. };
  64. regulators {
  65. /* Default work frequency for buck regulators */
  66. x-powers,dcdc-freq = <3000>;
  67. reg_dcdc1: dcdc1 {
  68. regulator-name = "dcdc1";
  69. };
  70. reg_dcdc2: dcdc2 {
  71. regulator-name = "dcdc2";
  72. };
  73. reg_dcdc3: dcdc3 {
  74. regulator-name = "dcdc3";
  75. };
  76. reg_dcdc4: dcdc4 {
  77. regulator-name = "dcdc4";
  78. };
  79. reg_dcdc5: dcdc5 {
  80. regulator-name = "dcdc5";
  81. };
  82. reg_dc1sw: dc1sw {
  83. regulator-name = "dc1sw";
  84. };
  85. reg_dc5ldo: dc5ldo {
  86. regulator-name = "dc5ldo";
  87. };
  88. reg_aldo1: aldo1 {
  89. regulator-name = "aldo1";
  90. };
  91. reg_aldo2: aldo2 {
  92. regulator-name = "aldo2";
  93. };
  94. reg_aldo3: aldo3 {
  95. regulator-name = "aldo3";
  96. };
  97. reg_dldo1: dldo1 {
  98. regulator-name = "dldo1";
  99. };
  100. reg_dldo2: dldo2 {
  101. regulator-name = "dldo2";
  102. };
  103. reg_dldo3: dldo3 {
  104. regulator-name = "dldo3";
  105. };
  106. reg_dldo4: dldo4 {
  107. regulator-name = "dldo4";
  108. };
  109. reg_eldo1: eldo1 {
  110. regulator-name = "eldo1";
  111. };
  112. reg_eldo2: eldo2 {
  113. regulator-name = "eldo2";
  114. };
  115. reg_eldo3: eldo3 {
  116. regulator-name = "eldo3";
  117. };
  118. reg_ldo_io0: ldo_io0 {
  119. regulator-name = "ldo_io0";
  120. status = "disabled";
  121. };
  122. reg_ldo_io1: ldo_io1 {
  123. regulator-name = "ldo_io1";
  124. status = "disabled";
  125. };
  126. reg_rtc_ldo: rtc_ldo {
  127. /* RTC_LDO is a fixed, always-on regulator */
  128. regulator-always-on;
  129. regulator-min-microvolt = <3000000>;
  130. regulator-max-microvolt = <3000000>;
  131. regulator-name = "rtc_ldo";
  132. };
  133. reg_drivevbus: drivevbus {
  134. regulator-name = "drivevbus";
  135. status = "disabled";
  136. };
  137. };
  138. usb_power_supply: usb-power {
  139. compatible = "x-powers,axp221-usb-power-supply";
  140. status = "disabled";
  141. };
  142. };