Skip to content

Commit ea98b9e

Browse files
krzkbroonie
authored andcommitted
regulator: dt-bindings: samsung,s2m: convert to dtschema
Convert the regulators of Samsung S2MPS11/S2MPS13/S2MPS14/S2MPS15/S2MPU02 family of PMICs 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 1790cd3 commit ea98b9e

File tree

7 files changed

+221
-103
lines changed

7 files changed

+221
-103
lines changed

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

Lines changed: 0 additions & 102 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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,s2mps11.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung S2MPS11 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 S2MPS11 provides buck and LDO regulators.
17+
18+
See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for
19+
additional information and example.
20+
21+
patternProperties:
22+
# 38 LDOs
23+
"^LDO([1-9]|[1-2][0-9]|3[0-8])$":
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+
required:
42+
- regulator-name
43+
44+
additionalProperties: false
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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,s2mps13.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung S2MPS13 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 S2MPS13 provides buck and LDO regulators.
17+
18+
See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for
19+
additional information and example.
20+
21+
patternProperties:
22+
# 40 LDOs
23+
"^LDO([1-9]|[1-3][0-9]|40)$":
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+
required:
42+
- regulator-name
43+
44+
additionalProperties: false
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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,s2mps14.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung S2MPS14 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 S2MPS14 provides buck and LDO regulators.
17+
18+
See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for
19+
additional information and example.
20+
21+
patternProperties:
22+
# 25 LDOs
23+
"^LDO([1-9]|[1][0-9]|2[0-5])$":
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+
# 5 bucks
34+
"^BUCK[1-5]$":
35+
type: object
36+
$ref: regulator.yaml#
37+
unevaluatedProperties: false
38+
description:
39+
Properties for single BUCK regulator.
40+
41+
required:
42+
- regulator-name
43+
44+
additionalProperties: false
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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,s2mps15.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung S2MPS15 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 S2MPS15 provides buck and LDO regulators.
17+
18+
See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.yaml for
19+
additional information and example.
20+
21+
patternProperties:
22+
# 27 LDOs
23+
"^LDO([1-9]|[1][0-9]|2[0-7])$":
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+
required:
42+
- regulator-name
43+
44+
additionalProperties: false
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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,s2mpu02.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung S2MPU02 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 S2MPU02 provides buck and LDO regulators.
17+
18+
See also Documentation/devicetree/bindings/mfd/samsung,s2mps11.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+
required:
31+
- regulator-name
32+
33+
# 7 bucks
34+
"^BUCK[1-7]$":
35+
type: object
36+
$ref: regulator.yaml#
37+
unevaluatedProperties: false
38+
description:
39+
Properties for single BUCK regulator.
40+
41+
required:
42+
- regulator-name
43+
44+
additionalProperties: false

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16332,7 +16332,7 @@ L: [email protected]
1633216332
S: Supported
1633316333
F: Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml
1633416334
F: Documentation/devicetree/bindings/mfd/samsung,sec-core.txt
16335-
F: Documentation/devicetree/bindings/regulator/samsung,s2m*.txt
16335+
F: Documentation/devicetree/bindings/regulator/samsung,s2m*.yaml
1633616336
F: Documentation/devicetree/bindings/regulator/samsung,s5m*.txt
1633716337
F: drivers/clk/clk-s2mps11.c
1633816338
F: drivers/mfd/sec*.c

0 commit comments

Comments
 (0)