max77650.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mfd/max77650.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MAX77650 ultra low-power PMIC from Maxim Integrated.
  7. maintainers:
  8. - Bartosz Golaszewski <bgolaszewski@baylibre.com>
  9. description: |
  10. MAX77650 is an ultra-low power PMIC providing battery charging and power
  11. supply for low-power IoT and wearable applications.
  12. The GPIO-controller module is represented as part of the top-level PMIC
  13. node. The device exposes a single GPIO line.
  14. For device-tree bindings of other sub-modules (regulator, power supply,
  15. LEDs and onkey) refer to the binding documents under the respective
  16. sub-system directories.
  17. properties:
  18. compatible:
  19. const: maxim,max77650
  20. reg:
  21. description:
  22. I2C device address.
  23. maxItems: 1
  24. interrupts:
  25. maxItems: 1
  26. interrupt-controller: true
  27. "#interrupt-cells":
  28. const: 2
  29. description:
  30. The first cell is the IRQ number, the second cell is the trigger type.
  31. gpio-controller: true
  32. "#gpio-cells":
  33. const: 2
  34. description:
  35. The first cell is the pin number and the second cell is used to specify
  36. the gpio active state.
  37. gpio-line-names:
  38. maxItems: 1
  39. description:
  40. Single string containing the name of the GPIO line.
  41. regulators:
  42. $ref: /schemas/regulator/max77650-regulator.yaml
  43. charger:
  44. $ref: /schemas/power/supply/max77650-charger.yaml
  45. leds:
  46. $ref: /schemas/leds/leds-max77650.yaml
  47. onkey:
  48. $ref: /schemas/input/max77650-onkey.yaml
  49. required:
  50. - compatible
  51. - reg
  52. - interrupts
  53. - interrupt-controller
  54. - "#interrupt-cells"
  55. - gpio-controller
  56. - "#gpio-cells"
  57. additionalProperties: false
  58. examples:
  59. - |
  60. #include <dt-bindings/interrupt-controller/irq.h>
  61. #include <dt-bindings/input/linux-event-codes.h>
  62. i2c {
  63. #address-cells = <1>;
  64. #size-cells = <0>;
  65. pmic@48 {
  66. compatible = "maxim,max77650";
  67. reg = <0x48>;
  68. interrupt-controller;
  69. interrupt-parent = <&gpio2>;
  70. #interrupt-cells = <2>;
  71. interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
  72. gpio-controller;
  73. #gpio-cells = <2>;
  74. gpio-line-names = "max77650-charger";
  75. regulators {
  76. compatible = "maxim,max77650-regulator";
  77. max77650_ldo: regulator-ldo {
  78. regulator-name = "max77650-ldo";
  79. regulator-min-microvolt = <1350000>;
  80. regulator-max-microvolt = <2937500>;
  81. };
  82. max77650_sbb0: regulator-sbb0 {
  83. regulator-name = "max77650-sbb0";
  84. regulator-min-microvolt = <800000>;
  85. regulator-max-microvolt = <1587500>;
  86. };
  87. };
  88. charger {
  89. compatible = "maxim,max77650-charger";
  90. input-voltage-min-microvolt = <4200000>;
  91. input-current-limit-microamp = <285000>;
  92. };
  93. leds {
  94. compatible = "maxim,max77650-led";
  95. #address-cells = <1>;
  96. #size-cells = <0>;
  97. led@0 {
  98. reg = <0>;
  99. label = "blue:usr0";
  100. };
  101. led@1 {
  102. reg = <1>;
  103. label = "red:usr1";
  104. linux,default-trigger = "heartbeat";
  105. };
  106. led@2 {
  107. reg = <2>;
  108. label = "green:usr2";
  109. };
  110. };
  111. onkey {
  112. compatible = "maxim,max77650-onkey";
  113. linux,code = <KEY_END>;
  114. maxim,onkey-slide;
  115. };
  116. };
  117. };