rockchip,rk816.yaml 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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,rk816.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: RK816 Power Management Integrated Circuit
  7. maintainers:
  8. - Chris Zhong <zyw@rock-chips.com>
  9. - Zhang Qing <zhangqing@rock-chips.com>
  10. description:
  11. Rockchip RK816 series PMIC. This device consists of an i2c controlled MFD
  12. that includes regulators, a RTC, a GPIO controller, a power button, and a
  13. battery charger manager with fuel gauge.
  14. properties:
  15. compatible:
  16. enum:
  17. - rockchip,rk816
  18. reg:
  19. maxItems: 1
  20. interrupts:
  21. maxItems: 1
  22. '#clock-cells':
  23. description:
  24. See <dt-bindings/clock/rockchip,rk808.h> for clock IDs.
  25. const: 1
  26. clock-output-names:
  27. maxItems: 2
  28. gpio-controller: true
  29. '#gpio-cells':
  30. const: 2
  31. system-power-controller:
  32. type: boolean
  33. description:
  34. Telling whether or not this PMIC is controlling the system power.
  35. wakeup-source:
  36. type: boolean
  37. vcc1-supply:
  38. description:
  39. The input supply for dcdc1.
  40. vcc2-supply:
  41. description:
  42. The input supply for dcdc2.
  43. vcc3-supply:
  44. description:
  45. The input supply for dcdc3.
  46. vcc4-supply:
  47. description:
  48. The input supply for dcdc4.
  49. vcc5-supply:
  50. description:
  51. The input supply for ldo1, ldo2, and ldo3.
  52. vcc6-supply:
  53. description:
  54. The input supply for ldo4, ldo5, and ldo6.
  55. vcc7-supply:
  56. description:
  57. The input supply for boost.
  58. vcc8-supply:
  59. description:
  60. The input supply for otg-switch.
  61. regulators:
  62. type: object
  63. patternProperties:
  64. '^(boost|dcdc[1-4]|ldo[1-6]|otg-switch)$':
  65. type: object
  66. $ref: /schemas/regulator/regulator.yaml#
  67. unevaluatedProperties: false
  68. additionalProperties: false
  69. patternProperties:
  70. '-pins$':
  71. type: object
  72. additionalProperties: false
  73. $ref: /schemas/pinctrl/pinmux-node.yaml
  74. properties:
  75. function:
  76. enum: [gpio, thermistor]
  77. pins:
  78. $ref: /schemas/types.yaml#/definitions/string
  79. const: gpio0
  80. required:
  81. - compatible
  82. - reg
  83. - interrupts
  84. - '#clock-cells'
  85. additionalProperties: false
  86. examples:
  87. - |
  88. #include <dt-bindings/pinctrl/rockchip.h>
  89. #include <dt-bindings/interrupt-controller/irq.h>
  90. #include <dt-bindings/gpio/gpio.h>
  91. i2c {
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. rk816: pmic@1a {
  95. compatible = "rockchip,rk816";
  96. reg = <0x1a>;
  97. interrupt-parent = <&gpio0>;
  98. interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
  99. clock-output-names = "xin32k", "rk816-clkout2";
  100. pinctrl-names = "default";
  101. pinctrl-0 = <&pmic_int_l>;
  102. gpio-controller;
  103. system-power-controller;
  104. wakeup-source;
  105. #clock-cells = <1>;
  106. #gpio-cells = <2>;
  107. vcc1-supply = <&vcc_sys>;
  108. vcc2-supply = <&vcc_sys>;
  109. vcc3-supply = <&vcc_sys>;
  110. vcc4-supply = <&vcc_sys>;
  111. vcc5-supply = <&vcc33_io>;
  112. vcc6-supply = <&vcc_sys>;
  113. regulators {
  114. vdd_cpu: dcdc1 {
  115. regulator-name = "vdd_cpu";
  116. regulator-min-microvolt = <750000>;
  117. regulator-max-microvolt = <1450000>;
  118. regulator-ramp-delay = <6001>;
  119. regulator-initial-mode = <1>;
  120. regulator-always-on;
  121. regulator-boot-on;
  122. regulator-state-mem {
  123. regulator-off-in-suspend;
  124. };
  125. };
  126. vdd_logic: dcdc2 {
  127. regulator-name = "vdd_logic";
  128. regulator-min-microvolt = <800000>;
  129. regulator-max-microvolt = <1250000>;
  130. regulator-ramp-delay = <6001>;
  131. regulator-initial-mode = <1>;
  132. regulator-always-on;
  133. regulator-boot-on;
  134. regulator-state-mem {
  135. regulator-on-in-suspend;
  136. regulator-suspend-microvolt = <1000000>;
  137. };
  138. };
  139. vcc_ddr: dcdc3 {
  140. regulator-name = "vcc_ddr";
  141. regulator-initial-mode = <1>;
  142. regulator-always-on;
  143. regulator-boot-on;
  144. regulator-state-mem {
  145. regulator-on-in-suspend;
  146. };
  147. };
  148. vcc33_io: dcdc4 {
  149. regulator-min-microvolt = <3300000>;
  150. regulator-max-microvolt = <3300000>;
  151. regulator-name = "vcc33_io";
  152. regulator-initial-mode = <1>;
  153. regulator-always-on;
  154. regulator-boot-on;
  155. regulator-state-mem {
  156. regulator-on-in-suspend;
  157. regulator-suspend-microvolt = <3300000>;
  158. };
  159. };
  160. vccio_pmu: ldo1 {
  161. regulator-min-microvolt = <3300000>;
  162. regulator-max-microvolt = <3300000>;
  163. regulator-name = "vccio_pmu";
  164. regulator-always-on;
  165. regulator-boot-on;
  166. regulator-state-mem {
  167. regulator-on-in-suspend;
  168. regulator-suspend-microvolt = <3300000>;
  169. };
  170. };
  171. vcc_tp: ldo2 {
  172. regulator-min-microvolt = <3300000>;
  173. regulator-max-microvolt = <3300000>;
  174. regulator-name = "vcc_tp";
  175. regulator-state-mem {
  176. regulator-off-in-suspend;
  177. };
  178. };
  179. vdd_10: ldo3 {
  180. regulator-min-microvolt = <1000000>;
  181. regulator-max-microvolt = <1000000>;
  182. regulator-name = "vdd_10";
  183. regulator-always-on;
  184. regulator-boot-on;
  185. regulator-state-mem {
  186. regulator-on-in-suspend;
  187. regulator-suspend-microvolt = <1000000>;
  188. };
  189. };
  190. vcc18_lcd: ldo4 {
  191. regulator-min-microvolt = <1800000>;
  192. regulator-max-microvolt = <1800000>;
  193. regulator-name = "vcc18_lcd";
  194. regulator-state-mem {
  195. regulator-on-in-suspend;
  196. regulator-suspend-microvolt = <1800000>;
  197. };
  198. };
  199. vccio_sd: ldo5 {
  200. regulator-min-microvolt = <1800000>;
  201. regulator-max-microvolt = <3300000>;
  202. regulator-name = "vccio_sd";
  203. regulator-state-mem {
  204. regulator-on-in-suspend;
  205. regulator-suspend-microvolt = <3300000>;
  206. };
  207. };
  208. vdd10_lcd: ldo6 {
  209. regulator-min-microvolt = <1000000>;
  210. regulator-max-microvolt = <1000000>;
  211. regulator-name = "vdd10_lcd";
  212. regulator-state-mem {
  213. regulator-on-in-suspend;
  214. regulator-suspend-microvolt = <1000000>;
  215. };
  216. };
  217. };
  218. rk816_gpio_pins: gpio-pins {
  219. function = "gpio";
  220. pins = "gpio0";
  221. };
  222. };
  223. };