0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/leds/maxim,max77693.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Maxim MAX77693 MicroUSB and Companion Power Management IC LEDs
0008
0009 maintainers:
0010 - Krzysztof Kozlowski <krzk@kernel.org>
0011
0012 description: |
0013 This is a part of device tree bindings for Maxim MAX77693 MicroUSB Integrated
0014 Circuit (MUIC).
0015
0016 There are two LED outputs available - FLED1 and FLED2. Each of them can
0017 control a separate LED or they can be connected together to double the
0018 maximum current for a single connected LED. One LED is represented by one
0019 child node.
0020
0021 See also Documentation/devicetree/bindings/mfd/maxim,max77693.yaml for
0022 additional information and example.
0023
0024 properties:
0025 compatible:
0026 const: maxim,max77693-led
0027
0028 maxim,boost-mode:
0029 description:
0030 In boost mode the device can produce up to 1.2A of total current on both
0031 outputs. The maximum current on each output is reduced to 625mA then. If
0032 not enabled explicitly, boost setting defaults to LEDS_BOOST_FIXED in
0033 case both current sources are used.
0034 See LEDS_BOOST_* in include/dt-bindings/leds/common.h.
0035 $ref: /schemas/types.yaml#/definitions/uint32
0036 enum: [0, 1, 2]
0037
0038 maxim,boost-mvout:
0039 description: |
0040 Output voltage of the boost module in millivolts.
0041 Valid values: 3300 - 5500, step by 25 (rounded down)
0042 $ref: /schemas/types.yaml#/definitions/uint32
0043 minimum: 3300
0044 maximum: 5500
0045 default: 3300
0046
0047 maxim,mvsys-min:
0048 description: |
0049 Low input voltage level in millivolts. Flash is not fired if chip
0050 estimates that system voltage could drop below this level due to flash
0051 power consumption.
0052 Valid values: 2400 - 3400, step by 33 (rounded down)
0053 $ref: /schemas/types.yaml#/definitions/uint32
0054 minimum: 2400
0055 maximum: 3400
0056 default: 2400
0057
0058 patternProperties:
0059 "^([a-z]+-)?led[01]?$":
0060 type: object
0061 $ref: common.yaml#
0062 unevaluatedProperties: false
0063
0064 properties:
0065 led-sources:
0066 allOf:
0067 - minItems: 1
0068 maxItems: 2
0069 items:
0070 minimum: 0
0071 maximum: 1
0072
0073 led-max-microamp:
0074 description: |
0075 Valid values for a LED connected to one FLED output:
0076 15625 - 250000, step by 15625 (rounded down)
0077 Valid values for a LED connected to both FLED outputs:
0078 15625 - 500000, step by 15625 (rounded down)
0079
0080 flash-max-microamp:
0081 description: |
0082 Valid values for a single LED connected to one FLED output
0083 (boost mode must be turned off):
0084 15625 - 1000000, step by 15625 (rounded down)
0085 Valid values for a single LED connected to both FLED outputs:
0086 15625 - 1250000, step by 15625 (rounded down)
0087 Valid values for two LEDs case:
0088 15625 - 625000, step by 15625 (rounded down)
0089
0090 flash-max-timeout-us:
0091 description: |
0092 Valid values: 62500 - 1000000, step by 62500 (rounded down)
0093 minimum: 62500
0094 maximum: 1000000
0095
0096 required:
0097 - flash-max-microamp
0098 - flash-max-timeout-us
0099 - led-max-microamp
0100 - led-sources
0101
0102 required:
0103 - compatible
0104
0105 additionalProperties: false