rk808.txt 5.1 KB

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