maxim,max77843.yaml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mfd/maxim,max77843.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Maxim MAX77843 MicroUSB and Companion Power Management IC
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. description: |
  10. This is a part of device tree bindings for Maxim MAX77843 MicroUSB
  11. Integrated Circuit (MUIC).
  12. The Maxim MAX77843 is a MicroUSB and Companion Power Management IC which
  13. includes voltage current regulators, charger, fuel-gauge, haptic motor driver
  14. and MicroUSB management IC.
  15. properties:
  16. compatible:
  17. const: maxim,max77843
  18. interrupts:
  19. maxItems: 1
  20. reg:
  21. maxItems: 1
  22. extcon:
  23. $ref: /schemas/extcon/maxim,max77843.yaml
  24. motor-driver:
  25. type: object
  26. additionalProperties: false
  27. properties:
  28. compatible:
  29. const: maxim,max77843-haptic
  30. haptic-supply:
  31. description: Power supply to the haptic motor
  32. pwms:
  33. maxItems: 1
  34. required:
  35. - compatible
  36. - haptic-supply
  37. - pwms
  38. regulators:
  39. $ref: /schemas/regulator/maxim,max77843.yaml
  40. required:
  41. - compatible
  42. - interrupts
  43. - reg
  44. additionalProperties: false
  45. examples:
  46. - |
  47. #include <dt-bindings/interrupt-controller/irq.h>
  48. i2c {
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. pmic@66 {
  52. compatible = "maxim,max77843";
  53. interrupt-parent = <&gpa1>;
  54. interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
  55. reg = <0x66>;
  56. extcon {
  57. compatible = "maxim,max77843-muic";
  58. connector {
  59. compatible = "samsung,usb-connector-11pin",
  60. "usb-b-connector";
  61. label = "micro-USB";
  62. type = "micro";
  63. ports {
  64. #address-cells = <1>;
  65. #size-cells = <0>;
  66. port@0 {
  67. /*
  68. * TODO: The DTS this is based on does not have
  69. * port@0 which is a required property. The ports
  70. * look incomplete and need fixing.
  71. * Add a disabled port just to satisfy dtschema.
  72. */
  73. reg = <0>;
  74. status = "disabled";
  75. };
  76. port@3 {
  77. reg = <3>;
  78. endpoint {
  79. remote-endpoint = <&mhl_to_musb_con>;
  80. };
  81. };
  82. };
  83. };
  84. ports {
  85. port {
  86. endpoint {
  87. remote-endpoint = <&usb_to_muic>;
  88. };
  89. };
  90. };
  91. };
  92. regulators {
  93. compatible = "maxim,max77843-regulator";
  94. SAFEOUT1 {
  95. regulator-name = "SAFEOUT1";
  96. regulator-min-microvolt = <3300000>;
  97. regulator-max-microvolt = <4950000>;
  98. };
  99. SAFEOUT2 {
  100. regulator-name = "SAFEOUT2";
  101. regulator-min-microvolt = <3300000>;
  102. regulator-max-microvolt = <4950000>;
  103. };
  104. CHARGER {
  105. regulator-name = "CHARGER";
  106. regulator-min-microamp = <100000>;
  107. regulator-max-microamp = <3150000>;
  108. };
  109. };
  110. motor-driver {
  111. compatible = "maxim,max77843-haptic";
  112. haptic-supply = <&ldo38_reg>;
  113. pwms = <&pwm 0 33670 0>;
  114. };
  115. };
  116. };