]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - Bindings/regulator/rohm,bd71847-regulator.yaml
Import DTS files from Linux 5.7
[FreeBSD/FreeBSD.git] / Bindings / regulator / rohm,bd71847-regulator.yaml
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,bd71847-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: ROHM BD71847 and BD71850 Power Management Integrated Circuit regulators
8
9 maintainers:
10   - Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
11
12 description: |
13   List of regulators provided by this controller. BD71847 regulators node
14   should be sub node of the BD71847 MFD node. See BD71847 MFD bindings at
15   Documentation/devicetree/bindings/mfd/rohm,bd71847-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 BD71847 starts at RUN state you probably want to use
21   regulator-boot-on at least for BUCK5. LDO6 is supplied by it and it must
22   not be disabled by driver at startup. If BUCK5 is disabled at startup the
23   voltage monitoring for LDO5/LDO6 can cause PMIC to reset.
24
25 #The valid names for BD71847 regulator nodes are:
26 #BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6
27 #LDO1, LDO2, LDO3, LDO4, LDO5, LDO6
28
29 patternProperties:
30   "^LDO[1-6]$":
31     type: object
32     allOf:
33       - $ref: regulator.yaml#
34     description:
35       Properties for single LDO regulator.
36
37     properties:
38       regulator-name:
39         pattern: "^ldo[1-6]$"
40         description:
41           should be "ldo1", ..., "ldo6"
42
43     unevaluatedProperties: false
44
45   "^BUCK[1-6]$":
46     type: object
47     allOf:
48       - $ref: regulator.yaml#
49     description:
50       Properties for single BUCK regulator.
51
52     properties:
53       regulator-name:
54         pattern: "^buck[1-6]$"
55         description:
56           should be "buck1", ..., "buck6"
57
58       rohm,dvs-run-voltage:
59         allOf:
60           - $ref: "/schemas/types.yaml#/definitions/uint32"
61           - minimum: 0
62             maximum: 1300000
63         description:
64           PMIC default "RUN" state voltage in uV. See below table for
65           bucks which support this. 0 means disabled.
66
67       rohm,dvs-idle-voltage:
68         allOf:
69           - $ref: "/schemas/types.yaml#/definitions/uint32"
70           - minimum: 0
71             maximum: 1300000
72         description:
73           PMIC default "IDLE" state voltage in uV. See below table for
74           bucks which support this. 0 means disabled.
75
76       rohm,dvs-suspend-voltage:
77         allOf:
78           - $ref: "/schemas/types.yaml#/definitions/uint32"
79           - minimum: 0
80             maximum: 1300000
81         description:
82           PMIC default "SUSPEND" state voltage in uV. See below table for
83           bucks which support this. 0 means disabled.
84
85         # Supported default DVS states:
86         #
87         # BD71847:
88         # buck | dvs-run-voltage | dvs-idle-voltage | dvs-suspend-voltage
89         # ----------------------------------------------------------------
90         # 1    | supported       | supported        | supported
91         # ----------------------------------------------------------------
92         # 2    | supported       | supported        | not supported
93         # ----------------------------------------------------------------
94         # rest | not supported   | not supported    | not supported
95
96     required:
97       - regulator-name
98
99     unevaluatedProperties: false
100
101 additionalProperties: false