162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
262306a36Sopenharmony_ci%YAML 1.2
362306a36Sopenharmony_ci---
462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/regulator/maxim,max77802.yaml#
562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
662306a36Sopenharmony_ci
762306a36Sopenharmony_cititle: Maxim MAX77802 Power Management IC regulators
862306a36Sopenharmony_ci
962306a36Sopenharmony_cimaintainers:
1062306a36Sopenharmony_ci  - Javier Martinez Canillas <javier@dowhile0.org>
1162306a36Sopenharmony_ci  - Krzysztof Kozlowski <krzk@kernel.org>
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_cidescription: |
1462306a36Sopenharmony_ci  This is a part of device tree bindings for Maxim MAX77802 Power Management
1562306a36Sopenharmony_ci  Integrated Circuit (PMIC).
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci  The Maxim MAX77686 provides 10 high-efficiency Buck and 32 Low-DropOut (LDO)
1862306a36Sopenharmony_ci  regulators.
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci  See also Documentation/devicetree/bindings/mfd/maxim,max77802.yaml for
2162306a36Sopenharmony_ci  additional information and example.
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci  Certain regulators support "regulator-initial-mode" and "regulator-mode".
2462306a36Sopenharmony_ci  The valid modes list is defined in the dt-bindings/regulator/maxim,max77802.h
2562306a36Sopenharmony_ci  and their meaning is::
2662306a36Sopenharmony_ci    1 - Normal regulator voltage output mode.
2762306a36Sopenharmony_ci    3 - Low Power which reduces the quiescent current down to only 1uA
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci  The standard "regulator-mode" property can only be used for regulators that
3062306a36Sopenharmony_ci  support changing their mode to Low Power Mode during suspend. These
3162306a36Sopenharmony_ci  regulators are:: bucks 2-4 and LDOs 1-35. Also, it only takes effect if the
3262306a36Sopenharmony_ci  regulator has been enabled for the given suspend state using
3362306a36Sopenharmony_ci  "regulator-on-in-suspend" and has not been disabled for that state using
3462306a36Sopenharmony_ci  "regulator-off-in-suspend".
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_cipatternProperties:
3762306a36Sopenharmony_ci  # LDO1, LDO3, LDO20, LDO21
3862306a36Sopenharmony_ci  "^LDO([13]|2[01])$":
3962306a36Sopenharmony_ci    type: object
4062306a36Sopenharmony_ci    $ref: regulator.yaml#
4162306a36Sopenharmony_ci    unevaluatedProperties: false
4262306a36Sopenharmony_ci    description:
4362306a36Sopenharmony_ci      LDOs supporting the regulator-initial-mode property and changing their
4462306a36Sopenharmony_ci      mode during normal operation.
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ci  # LDO2, LDO4-15, LDO17-19, LDO23-30, LDO32-35
4762306a36Sopenharmony_ci  "^LDO([24-9]|1[0-5789]|2[3-9]|3[02345])$":
4862306a36Sopenharmony_ci    type: object
4962306a36Sopenharmony_ci    $ref: regulator.yaml#
5062306a36Sopenharmony_ci    unevaluatedProperties: false
5162306a36Sopenharmony_ci    description:
5262306a36Sopenharmony_ci      LDOs supporting the regulator-mode property (changing mode to Low Power
5362306a36Sopenharmony_ci      Mode during suspend).
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci    properties:
5662306a36Sopenharmony_ci      regulator-initial-mode: false
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ci  # buck2-4
5962306a36Sopenharmony_ci  "^BUCK[2-4]$":
6062306a36Sopenharmony_ci    type: object
6162306a36Sopenharmony_ci    $ref: regulator.yaml#
6262306a36Sopenharmony_ci    unevaluatedProperties: false
6362306a36Sopenharmony_ci    description:
6462306a36Sopenharmony_ci      bucks supporting the regulator-mode property (changing mode to Low Power
6562306a36Sopenharmony_ci      Mode during suspend).
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ci    properties:
6862306a36Sopenharmony_ci      regulator-initial-mode: false
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ci  # buck1, buck5-10
7162306a36Sopenharmony_ci  "^BUCK([15-9]|10)$":
7262306a36Sopenharmony_ci    type: object
7362306a36Sopenharmony_ci    $ref: regulator.yaml#
7462306a36Sopenharmony_ci    unevaluatedProperties: false
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ci    properties:
7762306a36Sopenharmony_ci      regulator-initial-mode: false
7862306a36Sopenharmony_ci
7962306a36Sopenharmony_ci    patternProperties:
8062306a36Sopenharmony_ci      "^regulator-state-(standby|mem|disk)$":
8162306a36Sopenharmony_ci        type: object
8262306a36Sopenharmony_ci        additionalProperties: true
8362306a36Sopenharmony_ci        properties:
8462306a36Sopenharmony_ci          regulator-mode: false
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ciadditionalProperties: false
87