richtek,rt5133.yaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/regulator/richtek,rt5133.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Richtek RT5133 PMIC Regulator
  7. maintainers:
  8. - ShihChia Chang <jeff_chang@richtek.com>
  9. description:
  10. The RT5133 is an integrated Power Management IC for portable devices,
  11. featuring 8 LDOs and 3 GPOs. It allows programmable output voltages,
  12. soft-start times, and protections via I2C. GPO operation depends on LDO1
  13. voltage.
  14. properties:
  15. compatible:
  16. enum:
  17. - richtek,rt5133
  18. reg:
  19. maxItems: 1
  20. enable-gpios:
  21. maxItems: 1
  22. wakeup-source: true
  23. interrupts:
  24. maxItems: 1
  25. gpio-controller: true
  26. "#gpio-cells":
  27. const: 2
  28. richtek,oc-shutdown-all:
  29. type: boolean
  30. description:
  31. Controls the behavior when any LDO (Low Dropout Regulator) enters an
  32. Over Current state.
  33. If set to true, all LDO channels will be shut down.
  34. If set to false, only the affected LDO channel will shut down itself.
  35. richtek,pgb-shutdown-all:
  36. type: boolean
  37. description:
  38. Controls the behavior when any LDO enters a Power Good Bad state.
  39. If set to true, all LDO channels will be shut down.
  40. If set to false, only the affected LDO channel will shut down itself.
  41. regulators:
  42. type: object
  43. additionalProperties: false
  44. properties:
  45. base:
  46. type: object
  47. $ref: regulator.yaml#
  48. unevaluatedProperties: false
  49. description:
  50. Properties for the base regulator, which is the top-level supply for
  51. LDO1 to LDO6. It functions merely as an on/off switch rather than
  52. regulating voltages. If none of LDO1 to LDO6 are in use, switching
  53. off the base will reduce the quiescent current.
  54. required:
  55. - regulator-name
  56. patternProperties:
  57. "^ldo([1-6])$":
  58. type: object
  59. $ref: regulator.yaml#
  60. unevaluatedProperties: false
  61. description:
  62. Properties for single LDO regulator
  63. required:
  64. - regulator-name
  65. "^ldo([7-8])$":
  66. type: object
  67. $ref: regulator.yaml#
  68. unevaluatedProperties: false
  69. description:
  70. Properties for single LDO regulator
  71. properties:
  72. vin-supply: true
  73. required:
  74. - regulator-name
  75. - vin-supply
  76. required:
  77. - compatible
  78. - reg
  79. - interrupts
  80. additionalProperties: false
  81. examples:
  82. - |
  83. #include <dt-bindings/interrupt-controller/irq.h>
  84. #include <dt-bindings/gpio/gpio.h>
  85. i2c {
  86. #address-cells = <1>;
  87. #size-cells = <0>;
  88. pmic@18 {
  89. compatible = "richtek,rt5133";
  90. reg = <0x18>;
  91. wakeup-source;
  92. interrupts-extended = <&gpio 0 IRQ_TYPE_EDGE_FALLING>;
  93. enable-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
  94. gpio-controller;
  95. #gpio-cells = <2>;
  96. richtek,oc-shutdown-all;
  97. richtek,pgb-shutdown-all;
  98. regulators {
  99. base {
  100. regulator-name = "base";
  101. };
  102. pvin78: ldo1 {
  103. regulator-name = "ldo1";
  104. regulator-min-microvolt = <1800000>;
  105. regulator-max-microvolt = <3199998>;
  106. regulator-active-discharge = <1>;
  107. };
  108. ldo2 {
  109. regulator-name = "ldo2";
  110. regulator-min-microvolt = <1800000>;
  111. regulator-max-microvolt = <3200000>;
  112. regulator-active-discharge = <1>;
  113. };
  114. ldo3 {
  115. regulator-name = "ldo3";
  116. regulator-min-microvolt = <1700000>;
  117. regulator-max-microvolt = <3000000>;
  118. regulator-active-discharge = <1>;
  119. };
  120. ldo4 {
  121. regulator-name = "ldo4";
  122. regulator-min-microvolt = <1700000>;
  123. regulator-max-microvolt = <3000000>;
  124. regulator-active-discharge = <1>;
  125. };
  126. ldo5 {
  127. regulator-name = "ldo5";
  128. regulator-min-microvolt = <1700000>;
  129. regulator-max-microvolt = <3000000>;
  130. regulator-active-discharge = <1>;
  131. };
  132. ldo6 {
  133. regulator-name = "ldo6";
  134. regulator-min-microvolt = <1700000>;
  135. regulator-max-microvolt = <3000000>;
  136. regulator-active-discharge = <1>;
  137. };
  138. ldo7 {
  139. regulator-name = "ldo7";
  140. regulator-min-microvolt = <900000>;
  141. regulator-max-microvolt = <1200000>;
  142. regulator-active-discharge = <1>;
  143. vin-supply = <&pvin78>;
  144. };
  145. ldo8 {
  146. regulator-name = "ldo8";
  147. regulator-min-microvolt = <855000>;
  148. regulator-max-microvolt = <1200000>;
  149. regulator-active-discharge = <1>;
  150. vin-supply = <&pvin78>;
  151. };
  152. };
  153. };
  154. };