rk808.txt 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. RK8XX Power Management Integrated Circuit
  2. The rk8xx family current members:
  3. rk805
  4. rk808
  5. rk818
  6. Required properties:
  7. - compatible: "rockchip,rk805"
  8. - compatible: "rockchip,rk808"
  9. - compatible: "rockchip,rk818"
  10. - reg: I2C slave address
  11. - interrupts: the interrupt outputs of the controller.
  12. - #clock-cells: from common clock binding; shall be set to 1 (multiple clock
  13. outputs). See <dt-bindings/clock/rockchip,rk808.h> for clock IDs.
  14. Optional properties:
  15. - clock-output-names: From common clock binding to override the
  16. default output clock name
  17. - rockchip,system-power-controller: Telling whether or not this pmic is controlling
  18. the system power.
  19. Optional RK805 properties:
  20. - vcc1-supply: The input supply for DCDC_REG1
  21. - vcc2-supply: The input supply for DCDC_REG2
  22. - vcc3-supply: The input supply for DCDC_REG3
  23. - vcc4-supply: The input supply for DCDC_REG4
  24. - vcc5-supply: The input supply for LDO_REG1 and LDO_REG2
  25. - vcc6-supply: The input supply for LDO_REG3
  26. Optional RK808 properties:
  27. - vcc1-supply: The input supply for DCDC_REG1
  28. - vcc2-supply: The input supply for DCDC_REG2
  29. - vcc3-supply: The input supply for DCDC_REG3
  30. - vcc4-supply: The input supply for DCDC_REG4
  31. - vcc6-supply: The input supply for LDO_REG1 and LDO_REG2
  32. - vcc7-supply: The input supply for LDO_REG3 and LDO_REG7
  33. - vcc8-supply: The input supply for SWITCH_REG1
  34. - vcc9-supply: The input supply for LDO_REG4 and LDO_REG5
  35. - vcc10-supply: The input supply for LDO_REG6
  36. - vcc11-supply: The input supply for LDO_REG8
  37. - vcc12-supply: The input supply for SWITCH_REG2
  38. - dvs-gpios: buck1/2 can be controlled by gpio dvs, this is GPIO specifiers
  39. for 2 host gpio's used for dvs. The format of the gpio specifier depends in
  40. the gpio controller. If DVS GPIOs aren't present, voltage changes will happen
  41. very quickly with no slow ramp time.
  42. Optional RK818 properties:
  43. - vcc1-supply: The input supply for DCDC_REG1
  44. - vcc2-supply: The input supply for DCDC_REG2
  45. - vcc3-supply: The input supply for DCDC_REG3
  46. - vcc4-supply: The input supply for DCDC_REG4
  47. - boost-supply: The input supply for DCDC_BOOST
  48. - vcc6-supply: The input supply for LDO_REG1 and LDO_REG2
  49. - vcc7-supply: The input supply for LDO_REG3, LDO_REG5 and LDO_REG7
  50. - vcc8-supply: The input supply for LDO_REG4, LDO_REG6 and LDO_REG8
  51. - vcc9-supply: The input supply for LDO_REG9 and SWITCH_REG
  52. - h_5v-supply: The input supply for HDMI_SWITCH
  53. - usb-supply: The input supply for OTG_SWITCH
  54. Regulators: All the regulators of RK8XX to be instantiated shall be
  55. listed in a child node named 'regulators'. Each regulator is represented
  56. by a child node of the 'regulators' node.
  57. regulator-name {
  58. /* standard regulator bindings here */
  59. };
  60. Following regulators of the RK805 PMIC regulators are supported. Note that
  61. the 'n' in regulator name, as in DCDC_REGn or LDOn, represents the DCDC or LDO
  62. number as described in RK805 datasheet.
  63. - DCDC_REGn
  64. - valid values for n are 1 to 4.
  65. - LDO_REGn
  66. - valid values for n are 1 to 3
  67. Following regulators of the RK808 PMIC block are supported. Note that
  68. the 'n' in regulator name, as in DCDC_REGn or LDOn, represents the DCDC or LDO
  69. number as described in RK808 datasheet.
  70. - DCDC_REGn
  71. - valid values for n are 1 to 4.
  72. - LDO_REGn
  73. - valid values for n are 1 to 8.
  74. - SWITCH_REGn
  75. - valid values for n are 1 to 2
  76. Following regulators of the RK818 PMIC block are supported. Note that
  77. the 'n' in regulator name, as in DCDC_REGn or LDOn, represents the DCDC or LDO
  78. number as described in RK818 datasheet.
  79. - DCDC_REGn
  80. - valid values for n are 1 to 4.
  81. - LDO_REGn
  82. - valid values for n are 1 to 9.
  83. - SWITCH_REG
  84. - HDMI_SWITCH
  85. - OTG_SWITCH
  86. Standard regulator bindings are used inside regulator subnodes. Check
  87. Documentation/devicetree/bindings/regulator/regulator.txt
  88. for more details
  89. Example:
  90. rk808: pmic@1b {
  91. compatible = "rockchip,rk808";
  92. clock-output-names = "xin32k", "rk808-clkout2";
  93. interrupt-parent = <&gpio0>;
  94. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  95. pinctrl-names = "default";
  96. pinctrl-0 = <&pmic_int &dvs_1 &dvs_2>;
  97. dvs-gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>,
  98. <&gpio7 15 GPIO_ACTIVE_HIGH>;
  99. reg = <0x1b>;
  100. rockchip,system-power-controller;
  101. wakeup-source;
  102. #clock-cells = <1>;
  103. vcc8-supply = <&vcc_18>;
  104. vcc9-supply = <&vcc_io>;
  105. vcc10-supply = <&vcc_io>;
  106. vcc12-supply = <&vcc_io>;
  107. vddio-supply = <&vccio_pmu>;
  108. regulators {
  109. vdd_cpu: DCDC_REG1 {
  110. regulator-always-on;
  111. regulator-boot-on;
  112. regulator-min-microvolt = <750000>;
  113. regulator-max-microvolt = <1300000>;
  114. regulator-name = "vdd_arm";
  115. };
  116. vdd_gpu: DCDC_REG2 {
  117. regulator-always-on;
  118. regulator-boot-on;
  119. regulator-min-microvolt = <850000>;
  120. regulator-max-microvolt = <1250000>;
  121. regulator-name = "vdd_gpu";
  122. };
  123. vcc_ddr: DCDC_REG3 {
  124. regulator-always-on;
  125. regulator-boot-on;
  126. regulator-name = "vcc_ddr";
  127. };
  128. vcc_io: DCDC_REG4 {
  129. regulator-always-on;
  130. regulator-boot-on;
  131. regulator-min-microvolt = <3300000>;
  132. regulator-max-microvolt = <3300000>;
  133. regulator-name = "vcc_io";
  134. };
  135. vccio_pmu: LDO_REG1 {
  136. regulator-always-on;
  137. regulator-boot-on;
  138. regulator-min-microvolt = <3300000>;
  139. regulator-max-microvolt = <3300000>;
  140. regulator-name = "vccio_pmu";
  141. };
  142. vcc_tp: LDO_REG2 {
  143. regulator-always-on;
  144. regulator-boot-on;
  145. regulator-min-microvolt = <3300000>;
  146. regulator-max-microvolt = <3300000>;
  147. regulator-name = "vcc_tp";
  148. };
  149. vdd_10: LDO_REG3 {
  150. regulator-always-on;
  151. regulator-boot-on;
  152. regulator-min-microvolt = <1000000>;
  153. regulator-max-microvolt = <1000000>;
  154. regulator-name = "vdd_10";
  155. };
  156. vcc18_lcd: LDO_REG4 {
  157. regulator-always-on;
  158. regulator-boot-on;
  159. regulator-min-microvolt = <1800000>;
  160. regulator-max-microvolt = <1800000>;
  161. regulator-name = "vcc18_lcd";
  162. };
  163. vccio_sd: LDO_REG5 {
  164. regulator-always-on;
  165. regulator-boot-on;
  166. regulator-min-microvolt = <1800000>;
  167. regulator-max-microvolt = <3300000>;
  168. regulator-name = "vccio_sd";
  169. };
  170. vdd10_lcd: LDO_REG6 {
  171. regulator-always-on;
  172. regulator-boot-on;
  173. regulator-min-microvolt = <1000000>;
  174. regulator-max-microvolt = <1000000>;
  175. regulator-name = "vdd10_lcd";
  176. };
  177. vcc_18: LDO_REG7 {
  178. regulator-always-on;
  179. regulator-boot-on;
  180. regulator-min-microvolt = <1800000>;
  181. regulator-max-microvolt = <1800000>;
  182. regulator-name = "vcc_18";
  183. };
  184. vcca_codec: LDO_REG8 {
  185. regulator-always-on;
  186. regulator-boot-on;
  187. regulator-min-microvolt = <3300000>;
  188. regulator-max-microvolt = <3300000>;
  189. regulator-name = "vcca_codec";
  190. };
  191. vcc_wl: SWITCH_REG1 {
  192. regulator-always-on;
  193. regulator-boot-on;
  194. regulator-name = "vcc_wl";
  195. };
  196. vcc_lcd: SWITCH_REG2 {
  197. regulator-always-on;
  198. regulator-boot-on;
  199. regulator-name = "vcc_lcd";
  200. };
  201. };
  202. };