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
7title: Samsung S5M8767 Power Management IC regulators
8
9maintainers:
10  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
11
12description: |
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
21patternProperties:
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
74additionalProperties: false
75