active-semi,act8865.yaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/regulator/active-semi,act8865.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Active-semi ACT8865 regulator
  7. maintainers:
  8. - Paul Cercueil <paul@crapouillou.net>
  9. properties:
  10. compatible:
  11. const: active-semi,act8865
  12. reg:
  13. maxItems: 1
  14. system-power-controller:
  15. description:
  16. Indicates that the ACT8865 is responsible for powering OFF
  17. the system.
  18. type: boolean
  19. active-semi,vsel-high:
  20. description:
  21. Indicates the VSEL pin is high. If this property is missing,
  22. the VSEL pin is assumed to be low.
  23. type: boolean
  24. regulators:
  25. type: object
  26. additionalProperties: false
  27. properties:
  28. DCDC_REG1:
  29. type: object
  30. $ref: /schemas/regulator/regulator.yaml#
  31. unevaluatedProperties: false
  32. properties:
  33. vp1-supply:
  34. description: Handle to the VP1 input supply
  35. DCDC_REG2:
  36. type: object
  37. $ref: /schemas/regulator/regulator.yaml#
  38. unevaluatedProperties: false
  39. properties:
  40. vp2-supply:
  41. description: Handle to the VP2 input supply
  42. DCDC_REG3:
  43. type: object
  44. $ref: /schemas/regulator/regulator.yaml#
  45. unevaluatedProperties: false
  46. properties:
  47. vp3-supply:
  48. description: Handle to the VP3 input supply
  49. patternProperties:
  50. "^LDO_REG[1-2]$":
  51. type: object
  52. $ref: /schemas/regulator/regulator.yaml#
  53. unevaluatedProperties: false
  54. properties:
  55. inl45-supply:
  56. description: Handle to the INL45 input supply
  57. "^LDO_REG[3-4]$":
  58. type: object
  59. $ref: /schemas/regulator/regulator.yaml#
  60. unevaluatedProperties: false
  61. properties:
  62. inl67-supply:
  63. description: Handle to the INL67 input supply
  64. additionalProperties: false
  65. required:
  66. - reg
  67. - compatible
  68. - regulators
  69. examples:
  70. - |
  71. #include <dt-bindings/regulator/active-semi,8865-regulator.h>
  72. i2c {
  73. #address-cells = <1>;
  74. #size-cells = <0>;
  75. pmic@5b {
  76. compatible = "active-semi,act8865";
  77. reg = <0x5b>;
  78. active-semi,vsel-high;
  79. regulators {
  80. DCDC_REG1 {
  81. regulator-name = "VCC_1V8";
  82. regulator-min-microvolt = <1800000>;
  83. regulator-max-microvolt = <1800000>;
  84. regulator-always-on;
  85. };
  86. DCDC_REG2 {
  87. regulator-name = "VCC_1V2";
  88. regulator-min-microvolt = <1100000>;
  89. regulator-max-microvolt = <1300000>;
  90. regulator-always-on;
  91. regulator-allowed-modes = <ACT8865_REGULATOR_MODE_FIXED>,
  92. <ACT8865_REGULATOR_MODE_LOWPOWER>;
  93. regulator-initial-mode = <ACT8865_REGULATOR_MODE_FIXED>;
  94. regulator-state-mem {
  95. regulator-on-in-suspend;
  96. regulator-suspend-min-microvolt = <1150000>;
  97. regulator-suspend-max-microvolt = <1150000>;
  98. regulator-changeable-in-suspend;
  99. regulator-mode = <ACT8865_REGULATOR_MODE_LOWPOWER>;
  100. };
  101. };
  102. DCDC_REG3 {
  103. regulator-name = "VCC_3V3";
  104. regulator-min-microvolt = <3300000>;
  105. regulator-max-microvolt = <3300000>;
  106. regulator-always-on;
  107. };
  108. LDO_REG1 {
  109. regulator-name = "VDDANA";
  110. regulator-min-microvolt = <3300000>;
  111. regulator-max-microvolt = <3300000>;
  112. regulator-always-on;
  113. regulator-allowed-modes = <ACT8865_REGULATOR_MODE_NORMAL>,
  114. <ACT8865_REGULATOR_MODE_LOWPOWER>;
  115. regulator-initial-mode = <ACT8865_REGULATOR_MODE_NORMAL>;
  116. regulator-state-mem {
  117. regulator-off-in-suspend;
  118. };
  119. };
  120. LDO_REG2 {
  121. regulator-name = "FUSE_2V5";
  122. regulator-min-microvolt = <2500000>;
  123. regulator-max-microvolt = <2500000>;
  124. };
  125. };
  126. };
  127. };