rockchip,rk805.yaml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mfd/rockchip,rk805.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: RK805 Power Management Integrated Circuit
  7. maintainers:
  8. - Chris Zhong <zyw@rock-chips.com>
  9. - Zhang Qing <zhangqing@rock-chips.com>
  10. description: |
  11. Rockchip RK805 series PMIC. This device consists of an i2c controlled MFD
  12. that includes multiple switchable regulators.
  13. properties:
  14. compatible:
  15. enum:
  16. - rockchip,rk805
  17. reg:
  18. maxItems: 1
  19. interrupts:
  20. maxItems: 1
  21. '#clock-cells':
  22. description:
  23. See <dt-bindings/clock/rockchip,rk808.h> for clock IDs.
  24. minimum: 0
  25. maximum: 1
  26. clock-output-names:
  27. description:
  28. From common clock binding to override the default output clock name.
  29. gpio-controller: true
  30. '#gpio-cells':
  31. const: 2
  32. rockchip,system-power-controller:
  33. type: boolean
  34. deprecated: true
  35. description:
  36. Telling whether or not this PMIC is controlling the system power.
  37. system-power-controller: true
  38. wakeup-source:
  39. type: boolean
  40. description:
  41. Device can be used as a wakeup source.
  42. vcc1-supply:
  43. description:
  44. The input supply for DCDC_REG1.
  45. vcc2-supply:
  46. description:
  47. The input supply for DCDC_REG2.
  48. vcc3-supply:
  49. description:
  50. The input supply for DCDC_REG3.
  51. vcc4-supply:
  52. description:
  53. The input supply for DCDC_REG4.
  54. vcc5-supply:
  55. description:
  56. The input supply for LDO_REG1 and LDO_REG2.
  57. vcc6-supply:
  58. description:
  59. The input supply for LDO_REG3.
  60. regulators:
  61. type: object
  62. patternProperties:
  63. "^(DCDC_REG[1-4]|LDO_REG[1-3])$":
  64. type: object
  65. $ref: /schemas/regulator/regulator.yaml#
  66. unevaluatedProperties: false
  67. unevaluatedProperties: false
  68. allOf:
  69. - if:
  70. properties:
  71. '#clock-cells':
  72. const: 0
  73. then:
  74. properties:
  75. clock-output-names:
  76. maxItems: 1
  77. else:
  78. properties:
  79. clock-output-names:
  80. maxItems: 2
  81. required:
  82. - compatible
  83. - reg
  84. - interrupts
  85. - "#clock-cells"
  86. additionalProperties: false
  87. examples:
  88. - |
  89. #include <dt-bindings/pinctrl/rockchip.h>
  90. #include <dt-bindings/interrupt-controller/irq.h>
  91. #include <dt-bindings/gpio/gpio.h>
  92. i2c {
  93. #address-cells = <1>;
  94. #size-cells = <0>;
  95. pmic@18 {
  96. compatible = "rockchip,rk805";
  97. reg = <0x18>;
  98. interrupt-parent = <&gpio2>;
  99. interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
  100. pinctrl-names = "default";
  101. pinctrl-0 = <&pmic_int_l>;
  102. rockchip,system-power-controller;
  103. wakeup-source;
  104. #clock-cells = <0>;
  105. vcc1-supply = <&vcc_sys>;
  106. vcc2-supply = <&vcc_sys>;
  107. vcc3-supply = <&vcc_sys>;
  108. vcc4-supply = <&vcc_sys>;
  109. vcc5-supply = <&vcc_io>;
  110. vcc6-supply = <&vcc_io>;
  111. regulators {
  112. vdd_logic: DCDC_REG1 {
  113. regulator-name = "vdd_logic";
  114. regulator-min-microvolt = <700000>;
  115. regulator-max-microvolt = <1350000>;
  116. regulator-always-on;
  117. regulator-boot-on;
  118. regulator-state-mem {
  119. regulator-on-in-suspend;
  120. regulator-suspend-microvolt = <1000000>;
  121. };
  122. };
  123. vdd_arm: DCDC_REG2 {
  124. regulator-name = "vdd_arm";
  125. regulator-min-microvolt = <700000>;
  126. regulator-max-microvolt = <1350000>;
  127. regulator-always-on;
  128. regulator-boot-on;
  129. regulator-state-mem {
  130. regulator-on-in-suspend;
  131. regulator-suspend-microvolt = <950000>;
  132. };
  133. };
  134. vcc_ddr: DCDC_REG3 {
  135. regulator-name = "vcc_ddr";
  136. regulator-always-on;
  137. regulator-boot-on;
  138. regulator-state-mem {
  139. regulator-on-in-suspend;
  140. };
  141. };
  142. vcc_io: DCDC_REG4 {
  143. regulator-name = "vcc_io";
  144. regulator-min-microvolt = <3300000>;
  145. regulator-max-microvolt = <3300000>;
  146. regulator-always-on;
  147. regulator-boot-on;
  148. regulator-state-mem {
  149. regulator-on-in-suspend;
  150. regulator-suspend-microvolt = <3300000>;
  151. };
  152. };
  153. vdd_18: LDO_REG1 {
  154. regulator-name = "vdd_18";
  155. regulator-min-microvolt = <1800000>;
  156. regulator-max-microvolt = <1800000>;
  157. regulator-always-on;
  158. regulator-boot-on;
  159. regulator-state-mem {
  160. regulator-on-in-suspend;
  161. regulator-suspend-microvolt = <1800000>;
  162. };
  163. };
  164. vcc18_emmc: LDO_REG2 {
  165. regulator-name = "vcc_18emmc";
  166. regulator-min-microvolt = <1800000>;
  167. regulator-max-microvolt = <1800000>;
  168. regulator-always-on;
  169. regulator-boot-on;
  170. regulator-state-mem {
  171. regulator-on-in-suspend;
  172. regulator-suspend-microvolt = <1800000>;
  173. };
  174. };
  175. vdd_11: LDO_REG3 {
  176. regulator-name = "vdd_11";
  177. regulator-min-microvolt = <1100000>;
  178. regulator-max-microvolt = <1100000>;
  179. regulator-always-on;
  180. regulator-boot-on;
  181. regulator-state-mem {
  182. regulator-on-in-suspend;
  183. regulator-suspend-microvolt = <1100000>;
  184. };
  185. };
  186. };
  187. };
  188. };