maxim,max77693.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/leds/maxim,max77693.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Maxim MAX77693 MicroUSB and Companion Power Management IC LEDs
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. description: |
  10. This is a part of device tree bindings for Maxim MAX77693 MicroUSB Integrated
  11. Circuit (MUIC).
  12. There are two LED outputs available - FLED1 and FLED2. Each of them can
  13. control a separate LED or they can be connected together to double the
  14. maximum current for a single connected LED. One LED is represented by one
  15. child node.
  16. See also Documentation/devicetree/bindings/mfd/maxim,max77693.yaml for
  17. additional information and example.
  18. properties:
  19. compatible:
  20. const: maxim,max77693-led
  21. maxim,boost-mode:
  22. description:
  23. In boost mode the device can produce up to 1.2A of total current on both
  24. outputs. The maximum current on each output is reduced to 625mA then. If
  25. not enabled explicitly, boost setting defaults to LEDS_BOOST_FIXED in
  26. case both current sources are used.
  27. See LEDS_BOOST_* in include/dt-bindings/leds/common.h.
  28. $ref: /schemas/types.yaml#/definitions/uint32
  29. enum: [0, 1, 2]
  30. maxim,boost-mvout:
  31. description: |
  32. Output voltage of the boost module in millivolts.
  33. Valid values: 3300 - 5500, step by 25 (rounded down)
  34. $ref: /schemas/types.yaml#/definitions/uint32
  35. minimum: 3300
  36. maximum: 5500
  37. default: 3300
  38. maxim,mvsys-min:
  39. description: |
  40. Low input voltage level in millivolts. Flash is not fired if chip
  41. estimates that system voltage could drop below this level due to flash
  42. power consumption.
  43. Valid values: 2400 - 3400, step by 33 (rounded down)
  44. $ref: /schemas/types.yaml#/definitions/uint32
  45. minimum: 2400
  46. maximum: 3400
  47. default: 2400
  48. patternProperties:
  49. "^([a-z]+-)?led[01]?$":
  50. type: object
  51. $ref: common.yaml#
  52. unevaluatedProperties: false
  53. properties:
  54. led-sources:
  55. allOf:
  56. - minItems: 1
  57. maxItems: 2
  58. items:
  59. minimum: 0
  60. maximum: 1
  61. led-max-microamp:
  62. description: |
  63. Valid values for a LED connected to one FLED output:
  64. 15625 - 250000, step by 15625 (rounded down)
  65. Valid values for a LED connected to both FLED outputs:
  66. 15625 - 500000, step by 15625 (rounded down)
  67. flash-max-microamp:
  68. description: |
  69. Valid values for a single LED connected to one FLED output
  70. (boost mode must be turned off):
  71. 15625 - 1000000, step by 15625 (rounded down)
  72. Valid values for a single LED connected to both FLED outputs:
  73. 15625 - 1250000, step by 15625 (rounded down)
  74. Valid values for two LEDs case:
  75. 15625 - 625000, step by 15625 (rounded down)
  76. flash-max-timeout-us:
  77. description: |
  78. Valid values: 62500 - 1000000, step by 62500 (rounded down)
  79. minimum: 62500
  80. maximum: 1000000
  81. required:
  82. - flash-max-microamp
  83. - flash-max-timeout-us
  84. - led-max-microamp
  85. - led-sources
  86. required:
  87. - compatible
  88. additionalProperties: false