ams,as3711.yaml 6.2 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/ams,as3711.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Austria MicroSystems AS3711 Quad Buck High Current PMIC with Charger
  7. maintainers:
  8. - Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
  9. description:
  10. AS3711 is an I2C PMIC from Austria MicroSystems with multiple DC/DC and LDO
  11. power supplies, a battery charger and an RTC. So far only bindings for the
  12. two step-up DC/DC converters are defined.
  13. properties:
  14. compatible:
  15. const: ams,as3711
  16. reg:
  17. maxItems: 1
  18. backlight:
  19. description:
  20. Step-up converter configuration, to be used as a backlight source
  21. type: object
  22. additionalProperties: false
  23. properties:
  24. compatible:
  25. const: ams,as3711-bl
  26. su1-dev:
  27. description: Framebuffer phandle for the first step-up converter
  28. $ref: /schemas/types.yaml#/definitions/phandle
  29. su1-max-uA:
  30. description: Maximum current for the first step-up converter
  31. $ref: /schemas/types.yaml#/definitions/uint32
  32. su2-dev:
  33. description: Framebuffer phandle for the second step-up converter
  34. $ref: /schemas/types.yaml#/definitions/phandle
  35. su2-max-uA:
  36. description: Maximum current for the second step-up converter
  37. $ref: /schemas/types.yaml#/definitions/uint32
  38. su2-feedback-voltage:
  39. description: Second step-up converter uses voltage feedback
  40. type: boolean
  41. su2-feedback-curr1:
  42. description:
  43. Second step-up converter uses CURR1 input for current feedback
  44. type: boolean
  45. su2-feedback-curr2:
  46. description:
  47. Second step-up converter uses CURR2 input for current feedback
  48. type: boolean
  49. su2-feedback-curr3:
  50. description:
  51. Second step-up converter uses CURR3 input for current feedback
  52. type: boolean
  53. su2-feedback-curr-auto:
  54. description:
  55. Second step-up converter uses automatic current feedback selection
  56. type: boolean
  57. su2-fbprot-lx-sd4:
  58. description:
  59. Second step-up converter uses LX_SD4 for over-voltage protection
  60. type: boolean
  61. su2-fbprot-gpio2:
  62. description:
  63. Second step-up converter uses GPIO2 for over-voltage protection
  64. type: boolean
  65. su2-fbprot-gpio3:
  66. description:
  67. Second step-up converter uses GPIO3 for over-voltage protection
  68. type: boolean
  69. su2-fbprot-gpio4:
  70. description:
  71. Second step-up converter uses GPIO4 for over-voltage protection
  72. type: boolean
  73. su2-auto-curr1:
  74. description:
  75. Second step-up converter uses CURR1 input for automatic current
  76. feedback
  77. type: boolean
  78. su2-auto-curr2:
  79. description:
  80. Second step-up converter uses CURR2 input for automatic current
  81. feedback
  82. type: boolean
  83. su2-auto-curr3:
  84. description:
  85. Second step-up converter uses CURR3 input for automatic current
  86. feedback
  87. type: boolean
  88. required:
  89. - compatible
  90. dependentRequired:
  91. # To use the SU1 converter as a backlight source the following two
  92. # properties must be provided:
  93. su1-dev: [ su1-max-uA ]
  94. su1-max-uA: [ su1-dev ]
  95. # To use the SU2 converter as a backlight source the following two
  96. # properties must be provided:
  97. su2-dev: [ su2-max-uA ]
  98. su2-max-uA: [ su2-dev ]
  99. su2-feedback-voltage: [ su2-dev ]
  100. su2-feedback-curr1: [ su2-dev ]
  101. su2-feedback-curr2: [ su2-dev ]
  102. su2-feedback-curr3: [ su2-dev ]
  103. su2-feedback-curr-auto: [ su2-dev ]
  104. su2-fbprot-lx-sd4: [ su2-dev ]
  105. su2-fbprot-gpio2: [ su2-dev ]
  106. su2-fbprot-gpio3: [ su2-dev ]
  107. su2-fbprot-gpio4: [ su2-dev ]
  108. su2-auto-curr1: [ su2-feedback-curr-auto ]
  109. su2-auto-curr2: [ su2-feedback-curr-auto ]
  110. su2-auto-curr3: [ su2-feedback-curr-auto ]
  111. dependentSchemas:
  112. su2-dev:
  113. allOf:
  114. - oneOf:
  115. - required:
  116. - su2-feedback-voltage
  117. - required:
  118. - su2-feedback-curr1
  119. - required:
  120. - su2-feedback-curr2
  121. - required:
  122. - su2-feedback-curr3
  123. - required:
  124. - su2-feedback-curr-auto
  125. - oneOf:
  126. - required:
  127. - su2-fbprot-lx-sd4
  128. - required:
  129. - su2-fbprot-gpio2
  130. - required:
  131. - su2-fbprot-gpio3
  132. - required:
  133. - su2-fbprot-gpio4
  134. su2-feedback-curr-auto:
  135. anyOf:
  136. - required:
  137. - su2-auto-curr1
  138. - required:
  139. - su2-auto-curr2
  140. - required:
  141. - su2-auto-curr3
  142. regulators:
  143. description: Other DC/DC and LDO supplies
  144. type: object
  145. unevaluatedProperties: false
  146. patternProperties:
  147. "^(sd[1-4]|ldo[1-8])$":
  148. type: object
  149. $ref: /schemas/regulator/regulator.yaml#
  150. unevaluatedProperties: false
  151. required:
  152. - compatible
  153. - reg
  154. additionalProperties: false
  155. examples:
  156. - |
  157. i2c {
  158. #address-cells = <1>;
  159. #size-cells = <0>;
  160. pmic@40 {
  161. compatible = "ams,as3711";
  162. reg = <0x40>;
  163. regulators {
  164. sd4 {
  165. regulator-name = "1.215V";
  166. regulator-min-microvolt = <1215000>;
  167. regulator-max-microvolt = <1235000>;
  168. };
  169. ldo2 {
  170. regulator-name = "2.8V CPU";
  171. regulator-min-microvolt = <2800000>;
  172. regulator-max-microvolt = <2800000>;
  173. regulator-always-on;
  174. regulator-boot-on;
  175. };
  176. };
  177. backlight {
  178. compatible = "ams,as3711-bl";
  179. su2-dev = <&lcdc>;
  180. su2-max-uA = <36000>;
  181. su2-feedback-curr-auto;
  182. su2-fbprot-gpio4;
  183. su2-auto-curr1;
  184. su2-auto-curr2;
  185. su2-auto-curr3;
  186. };
  187. };
  188. };