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,bd71837-regulator.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ROHM BD71837 Power Management Integrated Circuit regulators
8
9maintainers:
10  - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
11
12description: |
13  List of regulators provided by this controller. BD71837 regulators node
14  should be sub node of the BD71837 MFD node. See BD71837 MFD bindings at
15  Documentation/devicetree/bindings/mfd/rohm,bd71837-pmic.yaml
16  Regulator nodes should be named to BUCK_<number> and LDO_<number>. The
17  definition for each of these nodes is defined using the standard
18  binding for regulators at
19  Documentation/devicetree/bindings/regulator/regulator.txt.
20  Note that if BD71837 starts at RUN state you probably want to use
21  regulator-boot-on at least for BUCK6 and BUCK7 so that those are not
22  disabled by driver at startup. LDO5 and LDO6 are supplied by those and
23  if they are disabled at startup the voltage monitoring for LDO5/LDO6 will
24  cause PMIC to reset.
25
26#The valid names for BD71837 regulator nodes are:
27#BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7, BUCK8
28#LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7
29
30patternProperties:
31  "^LDO[1-7]$":
32    type: object
33    allOf:
34      - $ref: regulator.yaml#
35    description:
36      Properties for single LDO regulator.
37
38    properties:
39      regulator-name:
40        pattern: "^ldo[1-7]$"
41        description:
42          should be "ldo1", ..., "ldo7"
43
44    unevaluatedProperties: false
45
46  "^BUCK[1-8]$":
47    type: object
48    allOf:
49      - $ref: regulator.yaml#
50    description:
51      Properties for single BUCK regulator.
52
53    properties:
54      regulator-name:
55        pattern: "^buck[1-8]$"
56        description:
57          should be "buck1", ..., "buck8"
58
59      rohm,dvs-run-voltage:
60        allOf:
61          - $ref: "/schemas/types.yaml#/definitions/uint32"
62          - minimum: 0
63            maximum: 1300000
64        description:
65          PMIC default "RUN" state voltage in uV. See below table for
66          bucks which support this. 0 means disabled.
67
68      rohm,dvs-idle-voltage:
69        allOf:
70          - $ref: "/schemas/types.yaml#/definitions/uint32"
71          - minimum: 0
72            maximum: 1300000
73        description:
74          PMIC default "IDLE" state voltage in uV. See below table for
75          bucks which support this. 0 means disabled.
76
77      rohm,dvs-suspend-voltage:
78        allOf:
79          - $ref: "/schemas/types.yaml#/definitions/uint32"
80          - minimum: 0
81            maximum: 1300000
82        description:
83          PMIC default "SUSPEND" state voltage in uV. See below table for
84          bucks which support this. 0 means disabled.
85
86        # Supported default DVS states:
87        #
88        # BD71837:
89        # buck | dvs-run-voltage | dvs-idle-voltage | dvs-suspend-voltage
90        # ----------------------------------------------------------------
91        # 1    | supported       | supported        | supported
92        # ----------------------------------------------------------------
93        # 2    | supported       | supported        | not supported
94        # ----------------------------------------------------------------
95        # 3    | supported       | not supported    | not supported
96        # ----------------------------------------------------------------
97        # 4    | supported       | not supported    | not supported
98        # ----------------------------------------------------------------
99        # rest | not supported   | not supported    | not supported
100
101
102    required:
103      - regulator-name
104
105    unevaluatedProperties: false
106
107additionalProperties: false
108