Skip to content

Commit a52afb0

Browse files
krzkbroonie
authored andcommitted
regulator: dt-bindings: samsung,s2mpa01: convert to dtschema
Convert the regulators of Samsung S2MPA01 PMIC to DT schema format. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Message-Id: <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent ea98b9e commit a52afb0

File tree

2 files changed

+62
-79
lines changed

2 files changed

+62
-79
lines changed

Documentation/devicetree/bindings/regulator/samsung,s2mpa01.txt

Lines changed: 0 additions & 79 deletions
This file was deleted.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/regulator/samsung,s2mpa01.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung S2MPA01 Power Management IC regulators
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <[email protected]>
11+
12+
description: |
13+
This is a part of device tree bindings for S2M and S5M family of Power
14+
Management IC (PMIC).
15+
16+
The S2MPA01 provides buck and LDO regulators.
17+
18+
See also Documentation/devicetree/bindings/mfd/samsung,s2mpa01.yaml for
19+
additional information and example.
20+
21+
patternProperties:
22+
# 26 LDOs
23+
"^LDO([1-9]|1[0-9]|2[0-6])$":
24+
type: object
25+
$ref: regulator.yaml#
26+
unevaluatedProperties: false
27+
description:
28+
Properties for single LDO regulator.
29+
30+
required:
31+
- regulator-name
32+
33+
# 10 bucks
34+
"^BUCK([1-9]|10)$":
35+
type: object
36+
$ref: regulator.yaml#
37+
unevaluatedProperties: false
38+
description:
39+
Properties for single BUCK regulator.
40+
41+
properties:
42+
regulator-ramp-delay:
43+
enum: [0, 6250, 12500, 25000, 50000]
44+
default: 12500
45+
description: |
46+
May be 0 for disabling the ramp delay on BUCK{1,2,3,4}.
47+
48+
In the absence of the regulator-ramp-delay property, the default ramp
49+
delay will be used.
50+
51+
Note: Some bucks share the ramp rate setting i.e. same ramp value
52+
will be set for a particular group of bucks so provide the same
53+
regulator-ramp-delay value for them.
54+
Groups sharing ramp rate:
55+
* buck{1,6},
56+
* buck{2,4},
57+
* buck{8,9,10}.
58+
59+
required:
60+
- regulator-name
61+
62+
additionalProperties: false

0 commit comments

Comments
 (0)