Skip to content

Commit 65c3851

Browse files
ssekar15broonie
authored andcommitted
dt-bindings: regulator: add document bindings for mp5416
Add device tree binding information for mp5416 regulator driver. Signed-off-by: Saravanan Sekar <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 6d8d840 commit 65c3851

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/mps,mp5416.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Monolithic Power System MP5416 PMIC
8+
9+
maintainers:
10+
- Saravanan Sekar <[email protected]>
11+
12+
properties:
13+
$nodename:
14+
pattern: "^pmic@[0-9a-f]{1,2}$"
15+
compatible:
16+
enum:
17+
- mps,mp5416
18+
19+
reg:
20+
maxItems: 1
21+
22+
regulators:
23+
type: object
24+
description: |
25+
list of regulators provided by this controller, must be named
26+
after their hardware counterparts BUCK[1-4] and LDO[1-4]
27+
28+
patternProperties:
29+
"^buck[1-4]$":
30+
allOf:
31+
- $ref: "regulator.yaml#"
32+
type: object
33+
34+
"^ldo[1-4]$":
35+
allOf:
36+
- $ref: "regulator.yaml#"
37+
type: object
38+
39+
additionalProperties: false
40+
additionalProperties: false
41+
42+
required:
43+
- compatible
44+
- reg
45+
- regulators
46+
47+
additionalProperties: false
48+
49+
examples:
50+
- |
51+
i2c {
52+
#address-cells = <1>;
53+
#size-cells = <0>;
54+
55+
pmic@69 {
56+
compatible = "mps,mp5416";
57+
reg = <0x69>;
58+
59+
regulators {
60+
61+
buck1 {
62+
regulator-name = "buck1";
63+
regulator-min-microvolt = <600000>;
64+
regulator-max-microvolt = <2187500>;
65+
regulator-min-microamp = <3800000>;
66+
regulator-max-microamp = <6800000>;
67+
regulator-boot-on;
68+
};
69+
70+
ldo2 {
71+
regulator-name = "ldo2";
72+
regulator-min-microvolt = <800000>;
73+
regulator-max-microvolt = <3975000>;
74+
};
75+
};
76+
};
77+
};
78+
...

0 commit comments

Comments
 (0)