xref: /linux/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
184a867c0SMatti Vaittinen# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
284a867c0SMatti Vaittinen%YAML 1.2
384a867c0SMatti Vaittinen---
484a867c0SMatti Vaittinen$id: http://devicetree.org/schemas/regulator/rohm,bd71828-regulator.yaml#
584a867c0SMatti Vaittinen$schema: http://devicetree.org/meta-schemas/core.yaml#
684a867c0SMatti Vaittinen
784a867c0SMatti Vaittinentitle: ROHM BD71828 Power Management Integrated Circuit regulators
884a867c0SMatti Vaittinen
984a867c0SMatti Vaittinenmaintainers:
101ca8a011SMatti Vaittinen  - Matti Vaittinen <mazziesaccount@gmail.com>
1184a867c0SMatti Vaittinen
1284a867c0SMatti Vaittinendescription: |
1384a867c0SMatti Vaittinen  This module is part of the ROHM BD71828 MFD device. For more details
1484a867c0SMatti Vaittinen  see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml.
1584a867c0SMatti Vaittinen
1684a867c0SMatti Vaittinen  The regulator controller is represented as a sub-node of the PMIC node
1784a867c0SMatti Vaittinen  on the device tree.
1884a867c0SMatti Vaittinen
1984a867c0SMatti Vaittinen  Regulator nodes should be named to BUCK_<number> and LDO_<number>.
2084a867c0SMatti Vaittinen  The valid names for BD71828 regulator nodes are
2184a867c0SMatti Vaittinen  BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7
2284a867c0SMatti Vaittinen  LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7
2384a867c0SMatti Vaittinen
2484a867c0SMatti VaittinenpatternProperties:
2584a867c0SMatti Vaittinen  "^LDO[1-7]$":
2684a867c0SMatti Vaittinen    type: object
2784a867c0SMatti Vaittinen    description:
2884a867c0SMatti Vaittinen      Properties for single LDO regulator.
293d21a460SRob Herring    $ref: regulator.yaml#
3084a867c0SMatti Vaittinen
3184a867c0SMatti Vaittinen    properties:
3284a867c0SMatti Vaittinen      regulator-name:
3384a867c0SMatti Vaittinen        pattern: "^ldo[1-7]$"
3484a867c0SMatti Vaittinen        description:
3584a867c0SMatti Vaittinen          should be "ldo1", ..., "ldo7"
3684a867c0SMatti Vaittinen
372bdfd4fbSRob Herring    unevaluatedProperties: false
382bdfd4fbSRob Herring
3984a867c0SMatti Vaittinen  "^BUCK[1-7]$":
4084a867c0SMatti Vaittinen    type: object
4184a867c0SMatti Vaittinen    description:
4284a867c0SMatti Vaittinen      Properties for single BUCK regulator.
433d21a460SRob Herring    $ref: regulator.yaml#
4484a867c0SMatti Vaittinen
4584a867c0SMatti Vaittinen    properties:
4684a867c0SMatti Vaittinen      regulator-name:
4784a867c0SMatti Vaittinen        pattern: "^buck[1-7]$"
4884a867c0SMatti Vaittinen        description:
4984a867c0SMatti Vaittinen          should be "buck1", ..., "buck7"
5084a867c0SMatti Vaittinen
5184a867c0SMatti Vaittinen      rohm,dvs-run-voltage:
5284a867c0SMatti Vaittinen        description:
5384a867c0SMatti Vaittinen          PMIC default "RUN" state voltage in uV. See below table for
5484a867c0SMatti Vaittinen          bucks which support this. 0 means disabled.
55*cff5c895SRob Herring        $ref: /schemas/types.yaml#/definitions/uint32
563d21a460SRob Herring        minimum: 0
573d21a460SRob Herring        maximum: 3300000
5884a867c0SMatti Vaittinen
5984a867c0SMatti Vaittinen      rohm,dvs-idle-voltage:
6084a867c0SMatti Vaittinen        description:
6184a867c0SMatti Vaittinen          PMIC default "IDLE" state voltage in uV. See below table for
6284a867c0SMatti Vaittinen          bucks which support this. 0 means disabled.
63*cff5c895SRob Herring        $ref: /schemas/types.yaml#/definitions/uint32
643d21a460SRob Herring        minimum: 0
653d21a460SRob Herring        maximum: 3300000
6684a867c0SMatti Vaittinen
6784a867c0SMatti Vaittinen      rohm,dvs-suspend-voltage:
6884a867c0SMatti Vaittinen        description:
6984a867c0SMatti Vaittinen          PMIC default "SUSPEND" state voltage in uV. See below table for
7084a867c0SMatti Vaittinen          bucks which support this. 0 means disabled.
71*cff5c895SRob Herring        $ref: /schemas/types.yaml#/definitions/uint32
723d21a460SRob Herring        minimum: 0
733d21a460SRob Herring        maximum: 3300000
7484a867c0SMatti Vaittinen
7584a867c0SMatti Vaittinen      rohm,dvs-lpsr-voltage:
7684a867c0SMatti Vaittinen        description:
7784a867c0SMatti Vaittinen          PMIC default "LPSR" state voltage in uV. See below table for
7884a867c0SMatti Vaittinen          bucks which support this. 0 means disabled.
79*cff5c895SRob Herring        $ref: /schemas/types.yaml#/definitions/uint32
803d21a460SRob Herring        minimum: 0
813d21a460SRob Herring        maximum: 3300000
8284a867c0SMatti Vaittinen
8384a867c0SMatti Vaittinen        # Supported default DVS states:
8484a867c0SMatti Vaittinen        #     buck       |    run     |   idle    | suspend  | lpsr
8584a867c0SMatti Vaittinen        # --------------------------------------------------------------
8684a867c0SMatti Vaittinen        # 1, 2, 6, and 7 | supported  | supported | supported (*)
8784a867c0SMatti Vaittinen        # --------------------------------------------------------------
8884a867c0SMatti Vaittinen        # 3, 4, and 5    |                    supported (**)
8984a867c0SMatti Vaittinen        # --------------------------------------------------------------
9084a867c0SMatti Vaittinen        #
9184a867c0SMatti Vaittinen        # (*)  LPSR and SUSPEND states use same voltage but both states have own
9284a867c0SMatti Vaittinen        #      enable /
9384a867c0SMatti Vaittinen        #      disable settings. Voltage 0 can be specified for a state to make
9484a867c0SMatti Vaittinen        #      regulator disabled on that state.
9584a867c0SMatti Vaittinen        #
9684a867c0SMatti Vaittinen        # (**) All states use same voltage but have own enable / disable
9784a867c0SMatti Vaittinen        #      settings. Voltage 0 can be specified for a state to make
9884a867c0SMatti Vaittinen        #      regulator disabled on that state.
9984a867c0SMatti Vaittinen
10084a867c0SMatti Vaittinen    required:
10184a867c0SMatti Vaittinen      - regulator-name
1022bdfd4fbSRob Herring
1032bdfd4fbSRob Herring    unevaluatedProperties: false
1042bdfd4fbSRob Herring
10584a867c0SMatti VaittinenadditionalProperties: false
106