Skip to content

Commit d07fef2

Browse files
Adam Wardbroonie
authored andcommitted
regulator: da9121: Add DA914x binding info
Add the configuration for the DA9141 and DA9142 regulators. Also tidy the table, cleaning away superfluous information. Signed-off-by: Adam Ward <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/9293e3ae4ff8776704257085df65516b81209b87.1638223185.git.Adam.Ward.opensource@diasemi.com Signed-off-by: Mark Brown <[email protected]>
1 parent b9c044b commit d07fef2

File tree

1 file changed

+44
-31
lines changed

1 file changed

+44
-31
lines changed

Documentation/devicetree/bindings/regulator/dlg,da9121.yaml

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,39 @@ description: |
1717
Dialog Semiconductor DA9130 Single-channel 10A double-phase buck converter
1818
Dialog Semiconductor DA9131 Double-channel 5A single-phase buck converter
1919
Dialog Semiconductor DA9132 Double-channel 3A single-phase buck converter
20-
21-
Current limits
22-
23-
This is PER PHASE, and the current limit setting in the devices reflect
24-
that with a maximum 10A limit. Allowing for transients at/near double
25-
the rated current, this translates across the device range to per
26-
channel figures as so...
27-
28-
| DA9121 DA9122 DA9220 DA9217
29-
| /DA9130 /DA9131 /DA9132
30-
-------------------------------------------------------------------
31-
Output current / channel | 10000000 5000000 3000000 6000000
32-
Output current / phase | 5000000 5000000 3000000 3000000
33-
-------------------------------------------------------------------
34-
Min regulator-min-microvolt| 300000 300000 300000 300000
35-
Max regulator-max-microvolt| 1900000 1900000 1900000 1900000
36-
Device hardware default | 1000000 1000000 1000000 1000000
37-
-------------------------------------------------------------------
38-
Min regulator-min-microamp | 7000000 3500000 3500000 7000000
39-
Max regulator-max-microamp | 20000000 10000000 6000000 12000000
40-
Device hardware default | 15000000 7500000 5500000 11000000
20+
Dialog Semiconductor DA9141 Single-channel 40A quad-phase buck converter
21+
Dialog Semiconductor DA9142 Single-channel 20A double-phase buck converter
22+
23+
Device parameter ranges
24+
25+
The current limits can be set to at/near double the rated current per channel
26+
to allow for transient peaks.
27+
Current limit changes when the output is enabled are not supported, as a
28+
precaution against undefined behaviour.
29+
30+
|----------------------------------------------|
31+
| | range & reset default value |
32+
| Device |------------------------------|
33+
| | microvolt | microamp |
34+
|----------------------------------------------|
35+
| DA9121/DA9130 | Min: 300000 | Min: 7000000 |
36+
| | Max: 1900000 | Max: 20000000 |
37+
|----------------------------------------------|
38+
| DA9121/DA9131 | Min: 300000 | Min: 3500000 |
39+
| | Max: 1900000 | Max: 10000000 |
40+
|----------------------------------------------|
41+
| DA9121/DA9131 | Min: 300000 | Min: 3500000 |
42+
| | Max: 1900000 | Max: 6000000 |
43+
|----------------------------------------------|
44+
| DA9217 | Min: 300000 | Min: 7000000 |
45+
| | Max: 1900000 | Max: 12000000 |
46+
|----------------------------------------------|
47+
| DA9141 | Min: 300000 | Min: 26000000 |
48+
| | Max: 1300000 | Max: 78000000 |
49+
|----------------------------------------------|
50+
| DA9142 | Min: 300000 | Min: 13000000 |
51+
| | Max: 1300000 | Max: 39000000 |
52+
|----------------------------------------------|
4153
4254
properties:
4355
$nodename:
@@ -51,6 +63,8 @@ properties:
5163
- dlg,da9130
5264
- dlg,da9131
5365
- dlg,da9132
66+
- dlg,da9141
67+
- dlg,da9142
5468

5569
reg:
5670
maxItems: 1
@@ -69,26 +83,24 @@ properties:
6983
7084
regulators:
7185
type: object
72-
$ref: regulator.yaml#
7386
description: |
74-
This node defines the settings for the BUCK. The content of the
75-
sub-node is defined by the standard binding for regulators; see regulator.yaml.
76-
The DA9121 regulator is bound using their names listed below
77-
buck1 - BUCK1
78-
buck2 - BUCK2 //DA9122, DA9220, DA9131, DA9132 only
87+
List of regulators provided by the device
7988
8089
patternProperties:
8190
"^buck([1-2])$":
8291
type: object
8392
$ref: regulator.yaml#
93+
description: |
94+
Properties for a single BUCK regulator
8495
8596
properties:
86-
regulator-mode:
87-
maxItems: 1
88-
description: Defined in include/dt-bindings/regulator/dlg,da9121-regulator.h
97+
regulator-name:
98+
pattern: "^BUCK([1-2])$"
99+
description: |
100+
BUCK2 present in DA9122, DA9220, DA9131, DA9132 only
89101
90102
regulator-initial-mode:
91-
maxItems: 1
103+
enum: [ 0, 1, 2, 3 ]
92104
description: Defined in include/dt-bindings/regulator/dlg,da9121-regulator.h
93105

94106
enable-gpios:
@@ -97,6 +109,7 @@ properties:
97109

98110
dlg,ripple-cancel:
99111
$ref: "/schemas/types.yaml#/definitions/uint32"
112+
enum: [ 0, 1, 2, 3 ]
100113
description: |
101114
Defined in include/dt-bindings/regulator/dlg,da9121-regulator.h
102115
Only present on multi-channel devices (DA9122, DA9220, DA9131, DA9132)

0 commit comments

Comments
 (0)