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/rohm,bd71828-regulator.yaml#
562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml#
662306a36Sopenharmony_ci
762306a36Sopenharmony_cititle: ROHM BD71828 Power Management Integrated Circuit regulators
862306a36Sopenharmony_ci
962306a36Sopenharmony_cimaintainers:
1062306a36Sopenharmony_ci  - Matti Vaittinen <mazziesaccount@gmail.com>
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_cidescription: |
1362306a36Sopenharmony_ci  This module is part of the ROHM BD71828 MFD device. For more details
1462306a36Sopenharmony_ci  see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml.
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci  The regulator controller is represented as a sub-node of the PMIC node
1762306a36Sopenharmony_ci  on the device tree.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci  Regulator nodes should be named to BUCK_<number> and LDO_<number>.
2062306a36Sopenharmony_ci  The valid names for BD71828 regulator nodes are
2162306a36Sopenharmony_ci  BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7
2262306a36Sopenharmony_ci  LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_cipatternProperties:
2562306a36Sopenharmony_ci  "^LDO[1-7]$":
2662306a36Sopenharmony_ci    type: object
2762306a36Sopenharmony_ci    description:
2862306a36Sopenharmony_ci      Properties for single LDO regulator.
2962306a36Sopenharmony_ci    $ref: regulator.yaml#
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci    properties:
3262306a36Sopenharmony_ci      regulator-name:
3362306a36Sopenharmony_ci        pattern: "^ldo[1-7]$"
3462306a36Sopenharmony_ci        description:
3562306a36Sopenharmony_ci          should be "ldo1", ..., "ldo7"
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci    unevaluatedProperties: false
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci  "^BUCK[1-7]$":
4062306a36Sopenharmony_ci    type: object
4162306a36Sopenharmony_ci    description:
4262306a36Sopenharmony_ci      Properties for single BUCK regulator.
4362306a36Sopenharmony_ci    $ref: regulator.yaml#
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci    properties:
4662306a36Sopenharmony_ci      regulator-name:
4762306a36Sopenharmony_ci        pattern: "^buck[1-7]$"
4862306a36Sopenharmony_ci        description:
4962306a36Sopenharmony_ci          should be "buck1", ..., "buck7"
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci      rohm,dvs-run-voltage:
5262306a36Sopenharmony_ci        description:
5362306a36Sopenharmony_ci          PMIC default "RUN" state voltage in uV. See below table for
5462306a36Sopenharmony_ci          bucks which support this. 0 means disabled.
5562306a36Sopenharmony_ci        $ref: /schemas/types.yaml#/definitions/uint32
5662306a36Sopenharmony_ci        minimum: 0
5762306a36Sopenharmony_ci        maximum: 3300000
5862306a36Sopenharmony_ci
5962306a36Sopenharmony_ci      rohm,dvs-idle-voltage:
6062306a36Sopenharmony_ci        description:
6162306a36Sopenharmony_ci          PMIC default "IDLE" state voltage in uV. See below table for
6262306a36Sopenharmony_ci          bucks which support this. 0 means disabled.
6362306a36Sopenharmony_ci        $ref: /schemas/types.yaml#/definitions/uint32
6462306a36Sopenharmony_ci        minimum: 0
6562306a36Sopenharmony_ci        maximum: 3300000
6662306a36Sopenharmony_ci
6762306a36Sopenharmony_ci      rohm,dvs-suspend-voltage:
6862306a36Sopenharmony_ci        description:
6962306a36Sopenharmony_ci          PMIC default "SUSPEND" state voltage in uV. See below table for
7062306a36Sopenharmony_ci          bucks which support this. 0 means disabled.
7162306a36Sopenharmony_ci        $ref: /schemas/types.yaml#/definitions/uint32
7262306a36Sopenharmony_ci        minimum: 0
7362306a36Sopenharmony_ci        maximum: 3300000
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ci      rohm,dvs-lpsr-voltage:
7662306a36Sopenharmony_ci        description:
7762306a36Sopenharmony_ci          PMIC default "LPSR" state voltage in uV. See below table for
7862306a36Sopenharmony_ci          bucks which support this. 0 means disabled.
7962306a36Sopenharmony_ci        $ref: /schemas/types.yaml#/definitions/uint32
8062306a36Sopenharmony_ci        minimum: 0
8162306a36Sopenharmony_ci        maximum: 3300000
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ci        # Supported default DVS states:
8462306a36Sopenharmony_ci        #     buck       |    run     |   idle    | suspend  | lpsr
8562306a36Sopenharmony_ci        # --------------------------------------------------------------
8662306a36Sopenharmony_ci        # 1, 2, 6, and 7 | supported  | supported | supported (*)
8762306a36Sopenharmony_ci        # --------------------------------------------------------------
8862306a36Sopenharmony_ci        # 3, 4, and 5    |                    supported (**)
8962306a36Sopenharmony_ci        # --------------------------------------------------------------
9062306a36Sopenharmony_ci        #
9162306a36Sopenharmony_ci        # (*)  LPSR and SUSPEND states use same voltage but both states have own
9262306a36Sopenharmony_ci        #      enable /
9362306a36Sopenharmony_ci        #      disable settings. Voltage 0 can be specified for a state to make
9462306a36Sopenharmony_ci        #      regulator disabled on that state.
9562306a36Sopenharmony_ci        #
9662306a36Sopenharmony_ci        # (**) All states use same voltage but have own enable / disable
9762306a36Sopenharmony_ci        #      settings. Voltage 0 can be specified for a state to make
9862306a36Sopenharmony_ci        #      regulator disabled on that state.
9962306a36Sopenharmony_ci
10062306a36Sopenharmony_ci    required:
10162306a36Sopenharmony_ci      - regulator-name
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ci    unevaluatedProperties: false
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ciadditionalProperties: false
106