rockchip,rk818.yaml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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,rk818.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: RK818 Power Management Integrated Circuit
  7. maintainers:
  8. - Chris Zhong <zyw@rock-chips.com>
  9. - Zhang Qing <zhangqing@rock-chips.com>
  10. description: |
  11. Rockchip RK818 series PMIC. This device consists of an i2c controlled MFD
  12. that includes regulators, an RTC, and a power button.
  13. properties:
  14. compatible:
  15. enum:
  16. - rockchip,rk818
  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. const: 1
  25. clock-output-names:
  26. description:
  27. From common clock binding to override the default output clock name.
  28. maxItems: 2
  29. rockchip,system-power-controller:
  30. type: boolean
  31. deprecated: true
  32. description:
  33. Telling whether or not this PMIC is controlling the system power.
  34. system-power-controller: true
  35. wakeup-source:
  36. type: boolean
  37. description:
  38. Device can be used as a wakeup source.
  39. vcc1-supply:
  40. description:
  41. The input supply for DCDC_REG1.
  42. vcc2-supply:
  43. description:
  44. The input supply for DCDC_REG2.
  45. vcc3-supply:
  46. description:
  47. The input supply for DCDC_REG3.
  48. vcc4-supply:
  49. description:
  50. The input supply for DCDC_REG4.
  51. boost-supply:
  52. description:
  53. The input supply for DCDC_BOOST
  54. vcc6-supply:
  55. description:
  56. The input supply for LDO_REG1 and LDO_REG2.
  57. vcc7-supply:
  58. description:
  59. The input supply for LDO_REG3, LDO_REG5, and LDO_REG7.
  60. vcc8-supply:
  61. description:
  62. The input supply for LDO_REG4, LDO_REG6, and LDO_REG8.
  63. vcc9-supply:
  64. description:
  65. The input supply for LDO_REG9 and SWITCH_REG.
  66. vddio-supply:
  67. description:
  68. The input supply for digital IO.
  69. h_5v-supply:
  70. description:
  71. The input supply for HDMI_SWITCH.
  72. usb-supply:
  73. description:
  74. The input supply for OTG_SWITCH.
  75. regulators:
  76. type: object
  77. patternProperties:
  78. "^(DCDC_REG[1-4]|DCDC_BOOST|LDO_REG[1-9]|SWITCH_REG|HDMI_SWITCH|OTG_SWITCH)$":
  79. type: object
  80. $ref: /schemas/regulator/regulator.yaml#
  81. unevaluatedProperties: false
  82. unevaluatedProperties: false
  83. required:
  84. - compatible
  85. - reg
  86. - interrupts
  87. - "#clock-cells"
  88. additionalProperties: false
  89. examples:
  90. - |
  91. #include <dt-bindings/clock/px30-cru.h>
  92. #include <dt-bindings/pinctrl/rockchip.h>
  93. #include <dt-bindings/interrupt-controller/irq.h>
  94. #include <dt-bindings/gpio/gpio.h>
  95. i2c {
  96. #address-cells = <1>;
  97. #size-cells = <0>;
  98. rk818: pmic@1c {
  99. compatible = "rockchip,rk818";
  100. reg = <0x1c>;
  101. interrupt-parent = <&gpio0>;
  102. interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
  103. pinctrl-names = "default";
  104. pinctrl-0 = <&pmic_int>;
  105. rockchip,system-power-controller;
  106. wakeup-source;
  107. #clock-cells = <1>;
  108. vcc1-supply = <&vdd_sys>;
  109. vcc2-supply = <&vdd_sys>;
  110. vcc3-supply = <&vdd_sys>;
  111. vcc4-supply = <&vdd_sys>;
  112. boost-supply = <&vdd_in_otg_out>;
  113. vcc6-supply = <&vdd_sys>;
  114. vcc7-supply = <&vdd_misc_1v8>;
  115. vcc8-supply = <&vdd_misc_1v8>;
  116. vcc9-supply = <&vdd_3v3_io>;
  117. vddio-supply = <&vdd_3v3_io>;
  118. regulators {
  119. vdd_log: DCDC_REG1 {
  120. regulator-name = "vdd_log";
  121. regulator-always-on;
  122. regulator-boot-on;
  123. regulator-min-microvolt = <1100000>;
  124. regulator-max-microvolt = <1100000>;
  125. regulator-state-mem {
  126. regulator-off-in-suspend;
  127. };
  128. };
  129. vdd_gpu: DCDC_REG2 {
  130. regulator-name = "vdd_gpu";
  131. regulator-always-on;
  132. regulator-boot-on;
  133. regulator-min-microvolt = <800000>;
  134. regulator-max-microvolt = <1250000>;
  135. regulator-state-mem {
  136. regulator-on-in-suspend;
  137. regulator-suspend-microvolt = <1000000>;
  138. };
  139. };
  140. vcc_ddr: DCDC_REG3 {
  141. regulator-name = "vcc_ddr";
  142. regulator-always-on;
  143. regulator-boot-on;
  144. regulator-state-mem {
  145. regulator-on-in-suspend;
  146. };
  147. };
  148. vdd_3v3_io: DCDC_REG4 {
  149. regulator-name = "vdd_3v3_io";
  150. regulator-always-on;
  151. regulator-boot-on;
  152. regulator-min-microvolt = <3300000>;
  153. regulator-max-microvolt = <3300000>;
  154. regulator-state-mem {
  155. regulator-on-in-suspend;
  156. regulator-suspend-microvolt = <3300000>;
  157. };
  158. };
  159. vdd_sys: DCDC_BOOST {
  160. regulator-name = "vdd_sys";
  161. regulator-always-on;
  162. regulator-boot-on;
  163. regulator-min-microvolt = <5000000>;
  164. regulator-max-microvolt = <5000000>;
  165. regulator-state-mem {
  166. regulator-on-in-suspend;
  167. regulator-suspend-microvolt = <5000000>;
  168. };
  169. };
  170. vdd_sd: SWITCH_REG {
  171. regulator-name = "vdd_sd";
  172. regulator-always-on;
  173. regulator-boot-on;
  174. regulator-state-mem {
  175. regulator-off-in-suspend;
  176. };
  177. };
  178. vdd_eth_2v5: LDO_REG2 {
  179. regulator-name = "vdd_eth_2v5";
  180. regulator-always-on;
  181. regulator-boot-on;
  182. regulator-min-microvolt = <2500000>;
  183. regulator-max-microvolt = <2500000>;
  184. regulator-state-mem {
  185. regulator-on-in-suspend;
  186. regulator-suspend-microvolt = <2500000>;
  187. };
  188. };
  189. vdd_1v0: LDO_REG3 {
  190. regulator-name = "vdd_1v0";
  191. regulator-always-on;
  192. regulator-boot-on;
  193. regulator-min-microvolt = <1000000>;
  194. regulator-max-microvolt = <1000000>;
  195. regulator-state-mem {
  196. regulator-on-in-suspend;
  197. regulator-suspend-microvolt = <1000000>;
  198. };
  199. };
  200. vdd_1v8_lcd_ldo: LDO_REG4 {
  201. regulator-name = "vdd_1v8_lcd_ldo";
  202. regulator-always-on;
  203. regulator-boot-on;
  204. regulator-min-microvolt = <1800000>;
  205. regulator-max-microvolt = <1800000>;
  206. regulator-state-mem {
  207. regulator-on-in-suspend;
  208. regulator-suspend-microvolt = <1800000>;
  209. };
  210. };
  211. vdd_1v0_lcd: LDO_REG6 {
  212. regulator-name = "vdd_1v0_lcd";
  213. regulator-always-on;
  214. regulator-boot-on;
  215. regulator-min-microvolt = <1000000>;
  216. regulator-max-microvolt = <1000000>;
  217. regulator-state-mem {
  218. regulator-on-in-suspend;
  219. regulator-suspend-microvolt = <1000000>;
  220. };
  221. };
  222. vdd_1v8_ldo: LDO_REG7 {
  223. regulator-name = "vdd_1v8_ldo";
  224. regulator-always-on;
  225. regulator-boot-on;
  226. regulator-min-microvolt = <1800000>;
  227. regulator-max-microvolt = <1800000>;
  228. regulator-state-mem {
  229. regulator-off-in-suspend;
  230. regulator-suspend-microvolt = <1800000>;
  231. };
  232. };
  233. vdd_io_sd: LDO_REG9 {
  234. regulator-name = "vdd_io_sd";
  235. regulator-always-on;
  236. regulator-boot-on;
  237. regulator-min-microvolt = <1800000>;
  238. regulator-max-microvolt = <3300000>;
  239. regulator-state-mem {
  240. regulator-off-in-suspend;
  241. };
  242. };
  243. };
  244. };
  245. };