rk3288-evb-rk808.dts 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. /*
  2. * This file is dual-licensed: you can use it either under the terms
  3. * of the GPL or the X11 license, at your option. Note that this dual
  4. * licensing only applies to this file, and not this project as a
  5. * whole.
  6. *
  7. * a) This file is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of the
  10. * License, or (at your option) any later version.
  11. *
  12. * This file is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * Or, alternatively,
  18. *
  19. * b) Permission is hereby granted, free of charge, to any person
  20. * obtaining a copy of this software and associated documentation
  21. * files (the "Software"), to deal in the Software without
  22. * restriction, including without limitation the rights to use,
  23. * copy, modify, merge, publish, distribute, sublicense, and/or
  24. * sell copies of the Software, and to permit persons to whom the
  25. * Software is furnished to do so, subject to the following
  26. * conditions:
  27. *
  28. * The above copyright notice and this permission notice shall be
  29. * included in all copies or substantial portions of the Software.
  30. *
  31. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  32. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  33. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  34. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  35. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  36. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  37. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  38. * OTHER DEALINGS IN THE SOFTWARE.
  39. */
  40. /dts-v1/;
  41. #include "rk3288-evb.dtsi"
  42. / {
  43. compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288";
  44. };
  45. &i2c0 {
  46. clock-frequency = <400000>;
  47. rk808: pmic@1b {
  48. compatible = "rockchip,rk808";
  49. reg = <0x1b>;
  50. interrupt-parent = <&gpio0>;
  51. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  52. pinctrl-names = "default";
  53. pinctrl-0 = <&pmic_int &global_pwroff>;
  54. rockchip,system-power-controller;
  55. wakeup-source;
  56. #clock-cells = <1>;
  57. clock-output-names = "xin32k", "rk808-clkout2";
  58. vcc1-supply = <&vcc_sys>;
  59. vcc2-supply = <&vcc_sys>;
  60. vcc3-supply = <&vcc_sys>;
  61. vcc4-supply = <&vcc_sys>;
  62. vcc6-supply = <&vcc_sys>;
  63. vcc7-supply = <&vcc_sys>;
  64. vcc8-supply = <&vcc_18>;
  65. vcc9-supply = <&vcc_io>;
  66. vcc10-supply = <&vcc_io>;
  67. vcc11-supply = <&vcc_sys>;
  68. vcc12-supply = <&vcc_io>;
  69. vddio-supply = <&vccio_pmu>;
  70. regulators {
  71. vdd_cpu: DCDC_REG1 {
  72. regulator-always-on;
  73. regulator-boot-on;
  74. regulator-min-microvolt = <750000>;
  75. regulator-max-microvolt = <1350000>;
  76. regulator-name = "vdd_arm";
  77. regulator-state-mem {
  78. regulator-off-in-suspend;
  79. };
  80. };
  81. vdd_gpu: DCDC_REG2 {
  82. regulator-always-on;
  83. regulator-boot-on;
  84. regulator-min-microvolt = <850000>;
  85. regulator-max-microvolt = <1250000>;
  86. regulator-name = "vdd_gpu";
  87. regulator-state-mem {
  88. regulator-on-in-suspend;
  89. regulator-suspend-microvolt = <1000000>;
  90. };
  91. };
  92. vcc_ddr: DCDC_REG3 {
  93. regulator-always-on;
  94. regulator-boot-on;
  95. regulator-name = "vcc_ddr";
  96. regulator-state-mem {
  97. regulator-on-in-suspend;
  98. };
  99. };
  100. vcc_io: DCDC_REG4 {
  101. regulator-always-on;
  102. regulator-boot-on;
  103. regulator-min-microvolt = <3300000>;
  104. regulator-max-microvolt = <3300000>;
  105. regulator-name = "vcc_io";
  106. regulator-state-mem {
  107. regulator-on-in-suspend;
  108. regulator-suspend-microvolt = <3300000>;
  109. };
  110. };
  111. vccio_pmu: LDO_REG1 {
  112. regulator-always-on;
  113. regulator-boot-on;
  114. regulator-min-microvolt = <3300000>;
  115. regulator-max-microvolt = <3300000>;
  116. regulator-name = "vccio_pmu";
  117. regulator-state-mem {
  118. regulator-on-in-suspend;
  119. regulator-suspend-microvolt = <3300000>;
  120. };
  121. };
  122. vcc_tp: LDO_REG2 {
  123. regulator-always-on;
  124. regulator-boot-on;
  125. regulator-min-microvolt = <3300000>;
  126. regulator-max-microvolt = <3300000>;
  127. regulator-name = "vcc_tp";
  128. regulator-state-mem {
  129. regulator-off-in-suspend;
  130. };
  131. };
  132. vdd_10: LDO_REG3 {
  133. regulator-always-on;
  134. regulator-boot-on;
  135. regulator-min-microvolt = <1000000>;
  136. regulator-max-microvolt = <1000000>;
  137. regulator-name = "vdd_10";
  138. regulator-state-mem {
  139. regulator-on-in-suspend;
  140. regulator-suspend-microvolt = <1000000>;
  141. };
  142. };
  143. vcc18_lcd: LDO_REG4 {
  144. regulator-always-on;
  145. regulator-boot-on;
  146. regulator-min-microvolt = <1800000>;
  147. regulator-max-microvolt = <1800000>;
  148. regulator-name = "vcc18_lcd";
  149. regulator-state-mem {
  150. regulator-on-in-suspend;
  151. regulator-suspend-microvolt = <1800000>;
  152. };
  153. };
  154. vccio_sd: LDO_REG5 {
  155. regulator-always-on;
  156. regulator-boot-on;
  157. regulator-min-microvolt = <1800000>;
  158. regulator-max-microvolt = <3300000>;
  159. regulator-name = "vccio_sd";
  160. regulator-state-mem {
  161. regulator-on-in-suspend;
  162. regulator-suspend-microvolt = <3300000>;
  163. };
  164. };
  165. vdd10_lcd: LDO_REG6 {
  166. regulator-always-on;
  167. regulator-boot-on;
  168. regulator-min-microvolt = <1000000>;
  169. regulator-max-microvolt = <1000000>;
  170. regulator-name = "vdd10_lcd";
  171. regulator-state-mem {
  172. regulator-on-in-suspend;
  173. regulator-suspend-microvolt = <1000000>;
  174. };
  175. };
  176. vcc_18: LDO_REG7 {
  177. regulator-always-on;
  178. regulator-boot-on;
  179. regulator-min-microvolt = <1800000>;
  180. regulator-max-microvolt = <1800000>;
  181. regulator-name = "vcc_18";
  182. regulator-state-mem {
  183. regulator-on-in-suspend;
  184. regulator-suspend-microvolt = <1800000>;
  185. };
  186. };
  187. vcca_codec: LDO_REG8 {
  188. regulator-always-on;
  189. regulator-boot-on;
  190. regulator-min-microvolt = <3300000>;
  191. regulator-max-microvolt = <3300000>;
  192. regulator-name = "vcca_codec";
  193. regulator-state-mem {
  194. regulator-on-in-suspend;
  195. regulator-suspend-microvolt = <3300000>;
  196. };
  197. };
  198. vcc_wl: SWITCH_REG1 {
  199. regulator-always-on;
  200. regulator-boot-on;
  201. regulator-name = "vcc_wl";
  202. regulator-state-mem {
  203. regulator-on-in-suspend;
  204. };
  205. };
  206. vcc_lcd: SWITCH_REG2 {
  207. regulator-always-on;
  208. regulator-boot-on;
  209. regulator-name = "vcc_lcd";
  210. regulator-state-mem {
  211. regulator-on-in-suspend;
  212. };
  213. };
  214. };
  215. };
  216. };
  217. &panel {
  218. power-supply = <&vcc_lcd>;
  219. };