1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/regulator/rohm,bd71828-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ROHM BD71828 Power Management Integrated Circuit regulators
8
9maintainers:
10  - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
11
12description: |
13  This module is part of the ROHM BD71828 MFD device. For more details
14  see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml.
15
16  The regulator controller is represented as a sub-node of the PMIC node
17  on the device tree.
18
19  Regulator nodes should be named to BUCK_<number> and LDO_<number>.
20  The valid names for BD71828 regulator nodes are
21  BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7
22  LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7
23
24patternProperties:
25  "^LDO[1-7]$":
26    type: object
27    allOf:
28      - $ref: regulator.yaml#
29    description:
30      Properties for single LDO regulator.
31
32    properties:
33      regulator-name:
34        pattern: "^ldo[1-7]$"
35        description:
36          should be "ldo1", ..., "ldo7"
37
38    unevaluatedProperties: false
39
40  "^BUCK[1-7]$":
41    type: object
42    allOf:
43      - $ref: regulator.yaml#
44    description:
45      Properties for single BUCK regulator.
46
47    properties:
48      regulator-name:
49        pattern: "^buck[1-7]$"
50        description:
51          should be "buck1", ..., "buck7"
52
53      rohm,dvs-run-voltage:
54        allOf:
55          - $ref: "/schemas/types.yaml#/definitions/uint32"
56          - minimum: 0
57            maximum: 3300000
58        description:
59          PMIC default "RUN" state voltage in uV. See below table for
60          bucks which support this. 0 means disabled.
61
62      rohm,dvs-idle-voltage:
63        allOf:
64          - $ref: "/schemas/types.yaml#/definitions/uint32"
65          - minimum: 0
66            maximum: 3300000
67        description:
68          PMIC default "IDLE" state voltage in uV. See below table for
69          bucks which support this. 0 means disabled.
70
71      rohm,dvs-suspend-voltage:
72        allOf:
73          - $ref: "/schemas/types.yaml#/definitions/uint32"
74          - minimum: 0
75            maximum: 3300000
76        description:
77          PMIC default "SUSPEND" state voltage in uV. See below table for
78          bucks which support this. 0 means disabled.
79
80      rohm,dvs-lpsr-voltage:
81        allOf:
82          - $ref: "/schemas/types.yaml#/definitions/uint32"
83          - minimum: 0
84            maximum: 3300000
85        description:
86          PMIC default "LPSR" state voltage in uV. See below table for
87          bucks which support this. 0 means disabled.
88
89        # Supported default DVS states:
90        #     buck       |    run     |   idle    | suspend  | lpsr
91        #--------------------------------------------------------------
92        # 1, 2, 6, and 7 | supported  | supported | supported (*)
93        #--------------------------------------------------------------
94        # 3, 4, and 5    |                    supported (**)
95        #--------------------------------------------------------------
96        #
97        #(*)  LPSR and SUSPEND states use same voltage but both states have own
98        #     enable /
99        #     disable settings. Voltage 0 can be specified for a state to make
100        #     regulator disabled on that state.
101        #
102        #(**) All states use same voltage but have own enable / disable
103        #     settings. Voltage 0 can be specified for a state to make
104        #     regulator disabled on that state.
105
106    required:
107      - regulator-name
108
109    unevaluatedProperties: false
110
111additionalProperties: false
112