Skip to content

Commit fab58de

Browse files
krzkbroonie
authored andcommitted
regulator: dt-bindings: samsung,s5m8767: convert to dtschema
Convert the regulators of Samsung S5M8767 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 a52afb0 commit fab58de

File tree

3 files changed

+75
-141
lines changed

3 files changed

+75
-141
lines changed

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

Lines changed: 0 additions & 140 deletions
This file was deleted.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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,s5m8767.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung S5M8767 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 S5M8767 provides buck and LDO regulators.
17+
18+
See also Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml for
19+
additional information and example.
20+
21+
patternProperties:
22+
# 28 LDOs
23+
"^LDO([1-9]|1[0-9]|2[0-8])$":
24+
type: object
25+
$ref: regulator.yaml#
26+
unevaluatedProperties: false
27+
description:
28+
Properties for single LDO regulator.
29+
30+
properties:
31+
op_mode:
32+
$ref: /schemas/types.yaml#/definitions/uint32
33+
enum: [0, 1, 2, 3]
34+
default: 1
35+
description: |
36+
Describes the different operating modes of the LDO's with power mode
37+
change in SOC. The different possible values are:
38+
0 - always off mode
39+
1 - on in normal mode
40+
2 - low power mode
41+
3 - suspend mode
42+
43+
required:
44+
- regulator-name
45+
46+
# 8 bucks
47+
"^BUCK[1-8]$":
48+
type: object
49+
$ref: regulator.yaml#
50+
unevaluatedProperties: false
51+
description:
52+
Properties for single BUCK regulator.
53+
54+
required:
55+
- regulator-name
56+
57+
# 9 buck
58+
"^BUCK9$":
59+
type: object
60+
$ref: regulator.yaml#
61+
unevaluatedProperties: false
62+
description:
63+
Properties for single BUCK regulator.
64+
65+
properties:
66+
s5m8767,pmic-ext-control-gpios:
67+
maxItems: 1
68+
description: |
69+
GPIO specifier for one GPIO controlling this regulator on/off.
70+
71+
required:
72+
- regulator-name
73+
74+
additionalProperties: false

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16333,7 +16333,7 @@ S: Supported
1633316333
F: Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml
1633416334
F: Documentation/devicetree/bindings/mfd/samsung,sec-core.txt
1633516335
F: Documentation/devicetree/bindings/regulator/samsung,s2m*.yaml
16336-
F: Documentation/devicetree/bindings/regulator/samsung,s5m*.txt
16336+
F: Documentation/devicetree/bindings/regulator/samsung,s5m*.yaml
1633716337
F: drivers/clk/clk-s2mps11.c
1633816338
F: drivers/mfd/sec*.c
1633916339
F: drivers/regulator/s2m*.c

0 commit comments

Comments
 (0)