rk808.txt 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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. Regulators: All the regulators of RK808 to be instantiated shall be
  26. listed in a child node named 'regulators'. Each regulator is represented
  27. by a child node of the 'regulators' node.
  28. regulator-name {
  29. /* standard regulator bindings here */
  30. };
  31. Following regulators of the RK808 PMIC block are supported. Note that
  32. the 'n' in regulator name, as in DCDC_REGn or LDOn, represents the DCDC or LDO
  33. number as described in RK808 datasheet.
  34. - DCDC_REGn
  35. - valid values for n are 1 to 4.
  36. - LDO_REGn
  37. - valid values for n are 1 to 8.
  38. - SWITCH_REGn
  39. - valid values for n are 1 to 2
  40. Standard regulator bindings are used inside regulator subnodes. Check
  41. Documentation/devicetree/bindings/regulator/regulator.txt
  42. for more details
  43. Example:
  44. rk808: pmic@1b {
  45. compatible = "rockchip,rk808";
  46. clock-output-names = "xin32k", "rk808-clkout2";
  47. interrupt-parent = <&gpio0>;
  48. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&pmic_int>;
  51. reg = <0x1b>;
  52. rockchip,system-power-controller;
  53. wakeup-source;
  54. #clock-cells = <1>;
  55. vcc8-supply = <&vcc_18>;
  56. vcc9-supply = <&vcc_io>;
  57. vcc10-supply = <&vcc_io>;
  58. vcc12-supply = <&vcc_io>;
  59. vddio-supply = <&vccio_pmu>;
  60. regulators {
  61. vdd_cpu: DCDC_REG1 {
  62. regulator-always-on;
  63. regulator-boot-on;
  64. regulator-min-microvolt = <750000>;
  65. regulator-max-microvolt = <1300000>;
  66. regulator-name = "vdd_arm";
  67. };
  68. vdd_gpu: DCDC_REG2 {
  69. regulator-always-on;
  70. regulator-boot-on;
  71. regulator-min-microvolt = <850000>;
  72. regulator-max-microvolt = <1250000>;
  73. regulator-name = "vdd_gpu";
  74. };
  75. vcc_ddr: DCDC_REG3 {
  76. regulator-always-on;
  77. regulator-boot-on;
  78. regulator-name = "vcc_ddr";
  79. };
  80. vcc_io: DCDC_REG4 {
  81. regulator-always-on;
  82. regulator-boot-on;
  83. regulator-min-microvolt = <3300000>;
  84. regulator-max-microvolt = <3300000>;
  85. regulator-name = "vcc_io";
  86. };
  87. vccio_pmu: LDO_REG1 {
  88. regulator-always-on;
  89. regulator-boot-on;
  90. regulator-min-microvolt = <3300000>;
  91. regulator-max-microvolt = <3300000>;
  92. regulator-name = "vccio_pmu";
  93. };
  94. vcc_tp: LDO_REG2 {
  95. regulator-always-on;
  96. regulator-boot-on;
  97. regulator-min-microvolt = <3300000>;
  98. regulator-max-microvolt = <3300000>;
  99. regulator-name = "vcc_tp";
  100. };
  101. vdd_10: LDO_REG3 {
  102. regulator-always-on;
  103. regulator-boot-on;
  104. regulator-min-microvolt = <1000000>;
  105. regulator-max-microvolt = <1000000>;
  106. regulator-name = "vdd_10";
  107. };
  108. vcc18_lcd: LDO_REG4 {
  109. regulator-always-on;
  110. regulator-boot-on;
  111. regulator-min-microvolt = <1800000>;
  112. regulator-max-microvolt = <1800000>;
  113. regulator-name = "vcc18_lcd";
  114. };
  115. vccio_sd: LDO_REG5 {
  116. regulator-always-on;
  117. regulator-boot-on;
  118. regulator-min-microvolt = <1800000>;
  119. regulator-max-microvolt = <3300000>;
  120. regulator-name = "vccio_sd";
  121. };
  122. vdd10_lcd: LDO_REG6 {
  123. regulator-always-on;
  124. regulator-boot-on;
  125. regulator-min-microvolt = <1000000>;
  126. regulator-max-microvolt = <1000000>;
  127. regulator-name = "vdd10_lcd";
  128. };
  129. vcc_18: LDO_REG7 {
  130. regulator-always-on;
  131. regulator-boot-on;
  132. regulator-min-microvolt = <1800000>;
  133. regulator-max-microvolt = <1800000>;
  134. regulator-name = "vcc_18";
  135. };
  136. vcca_codec: LDO_REG8 {
  137. regulator-always-on;
  138. regulator-boot-on;
  139. regulator-min-microvolt = <3300000>;
  140. regulator-max-microvolt = <3300000>;
  141. regulator-name = "vcca_codec";
  142. };
  143. vcc_wl: SWITCH_REG1 {
  144. regulator-always-on;
  145. regulator-boot-on;
  146. regulator-name = "vcc_wl";
  147. };
  148. vcc_lcd: SWITCH_REG2 {
  149. regulator-always-on;
  150. regulator-boot-on;
  151. regulator-name = "vcc_lcd";
  152. };
  153. };
  154. };