maxim,max77693.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mfd/maxim,max77693.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Maxim MAX77693 MicroUSB and Companion Power Management IC
  7. maintainers:
  8. - Chanwoo Choi <cw00.choi@samsung.com>
  9. - Krzysztof Kozlowski <krzk@kernel.org>
  10. description: |
  11. This is a part of device tree bindings for Maxim MAX77693 MicroUSB
  12. Integrated Circuit (MUIC).
  13. The Maxim MAX77693 is a MicroUSB and Companion Power Management IC which
  14. includes voltage current regulators, charger, LED/flash, haptic motor driver
  15. and MicroUSB management IC.
  16. properties:
  17. compatible:
  18. const: maxim,max77693
  19. interrupts:
  20. maxItems: 1
  21. reg:
  22. maxItems: 1
  23. charger:
  24. $ref: /schemas/power/supply/maxim,max77693.yaml
  25. led:
  26. $ref: /schemas/leds/maxim,max77693.yaml
  27. max77693-muic:
  28. type: object
  29. additionalProperties: false
  30. deprecated: true
  31. properties:
  32. compatible:
  33. const: maxim,max77693-muic
  34. required:
  35. - compatible
  36. muic:
  37. type: object
  38. additionalProperties: false
  39. properties:
  40. compatible:
  41. const: maxim,max77693-muic
  42. connector:
  43. $ref: /schemas/connector/usb-connector.yaml#
  44. unevaluatedProperties: false
  45. required:
  46. - compatible
  47. motor-driver:
  48. type: object
  49. additionalProperties: false
  50. properties:
  51. compatible:
  52. const: maxim,max77693-haptic
  53. haptic-supply:
  54. description: Power supply to the haptic motor
  55. pwms:
  56. maxItems: 1
  57. required:
  58. - compatible
  59. - haptic-supply
  60. - pwms
  61. regulators:
  62. $ref: /schemas/regulator/maxim,max77693.yaml
  63. description:
  64. List of child nodes that specify the regulators.
  65. required:
  66. - compatible
  67. - interrupts
  68. - reg
  69. additionalProperties: false
  70. examples:
  71. - |
  72. #include <dt-bindings/interrupt-controller/irq.h>
  73. #include <dt-bindings/leds/common.h>
  74. i2c {
  75. #address-cells = <1>;
  76. #size-cells = <0>;
  77. pmic@66 {
  78. compatible = "maxim,max77693";
  79. reg = <0x66>;
  80. interrupt-parent = <&gpx1>;
  81. interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
  82. regulators {
  83. ESAFEOUT1 {
  84. regulator-name = "ESAFEOUT1";
  85. };
  86. ESAFEOUT2 {
  87. regulator-name = "ESAFEOUT2";
  88. };
  89. CHARGER {
  90. regulator-name = "CHARGER";
  91. regulator-min-microamp = <60000>;
  92. regulator-max-microamp = <2580000>;
  93. };
  94. };
  95. muic {
  96. compatible = "maxim,max77693-muic";
  97. connector {
  98. compatible = "samsung,usb-connector-11pin",
  99. "usb-b-connector";
  100. label = "micro-USB";
  101. type = "micro";
  102. ports {
  103. #address-cells = <1>;
  104. #size-cells = <0>;
  105. port@0 {
  106. reg = <0>;
  107. muic_to_usb: endpoint {
  108. remote-endpoint = <&usb_to_muic>;
  109. };
  110. };
  111. port@3 {
  112. reg = <3>;
  113. muic_to_mhl: endpoint {
  114. remote-endpoint = <&mhl_to_muic>;
  115. };
  116. };
  117. };
  118. };
  119. };
  120. motor-driver {
  121. compatible = "maxim,max77693-haptic";
  122. haptic-supply = <&ldo26_reg>;
  123. pwms = <&pwm 0 38022 0>;
  124. };
  125. charger {
  126. compatible = "maxim,max77693-charger";
  127. maxim,constant-microvolt = <4350000>;
  128. maxim,min-system-microvolt = <3600000>;
  129. maxim,thermal-regulation-celsius = <100>;
  130. maxim,battery-overcurrent-microamp = <3500000>;
  131. maxim,charge-input-threshold-microvolt = <4300000>;
  132. };
  133. led {
  134. compatible = "maxim,max77693-led";
  135. maxim,boost-mode = <LEDS_BOOST_FIXED>;
  136. maxim,boost-mvout = <5000>;
  137. maxim,mvsys-min = <2400>;
  138. flash-led {
  139. label = "max77693-flash";
  140. function = LED_FUNCTION_FLASH;
  141. color = <LED_COLOR_ID_WHITE>;
  142. led-sources = <0>, <1>;
  143. led-max-microamp = <500000>;
  144. flash-max-microamp = <1250000>;
  145. flash-max-timeout-us = <1000000>;
  146. };
  147. };
  148. };
  149. };