xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/samsung,s5m8767.yaml (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
1*8cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*8cc087a1SEmmanuel Vadot%YAML 1.2
3*8cc087a1SEmmanuel Vadot---
4*8cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/samsung,s5m8767.yaml#
5*8cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8cc087a1SEmmanuel Vadot
7*8cc087a1SEmmanuel Vadottitle: Samsung S5M8767 Power Management IC regulators
8*8cc087a1SEmmanuel Vadot
9*8cc087a1SEmmanuel Vadotmaintainers:
10*8cc087a1SEmmanuel Vadot  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
11*8cc087a1SEmmanuel Vadot
12*8cc087a1SEmmanuel Vadotdescription: |
13*8cc087a1SEmmanuel Vadot  This is a part of device tree bindings for S2M and S5M family of Power
14*8cc087a1SEmmanuel Vadot  Management IC (PMIC).
15*8cc087a1SEmmanuel Vadot
16*8cc087a1SEmmanuel Vadot  The S5M8767 provides buck and LDO regulators.
17*8cc087a1SEmmanuel Vadot
18*8cc087a1SEmmanuel Vadot  See also Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml for
19*8cc087a1SEmmanuel Vadot  additional information and example.
20*8cc087a1SEmmanuel Vadot
21*8cc087a1SEmmanuel VadotpatternProperties:
22*8cc087a1SEmmanuel Vadot  # 28 LDOs
23*8cc087a1SEmmanuel Vadot  "^LDO([1-9]|1[0-9]|2[0-8])$":
24*8cc087a1SEmmanuel Vadot    type: object
25*8cc087a1SEmmanuel Vadot    $ref: regulator.yaml#
26*8cc087a1SEmmanuel Vadot    unevaluatedProperties: false
27*8cc087a1SEmmanuel Vadot    description:
28*8cc087a1SEmmanuel Vadot      Properties for single LDO regulator.
29*8cc087a1SEmmanuel Vadot
30*8cc087a1SEmmanuel Vadot    properties:
31*8cc087a1SEmmanuel Vadot      op_mode:
32*8cc087a1SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
33*8cc087a1SEmmanuel Vadot        enum: [0, 1, 2, 3]
34*8cc087a1SEmmanuel Vadot        default: 1
35*8cc087a1SEmmanuel Vadot        description: |
36*8cc087a1SEmmanuel Vadot          Describes the different operating modes of the LDO's with power mode
37*8cc087a1SEmmanuel Vadot          change in SOC. The different possible values are:
38*8cc087a1SEmmanuel Vadot            0 - always off mode
39*8cc087a1SEmmanuel Vadot            1 - on in normal mode
40*8cc087a1SEmmanuel Vadot            2 - low power mode
41*8cc087a1SEmmanuel Vadot            3 - suspend mode
42*8cc087a1SEmmanuel Vadot
43*8cc087a1SEmmanuel Vadot    required:
44*8cc087a1SEmmanuel Vadot      - regulator-name
45*8cc087a1SEmmanuel Vadot
46*8cc087a1SEmmanuel Vadot  # 8 bucks
47*8cc087a1SEmmanuel Vadot  "^BUCK[1-8]$":
48*8cc087a1SEmmanuel Vadot    type: object
49*8cc087a1SEmmanuel Vadot    $ref: regulator.yaml#
50*8cc087a1SEmmanuel Vadot    unevaluatedProperties: false
51*8cc087a1SEmmanuel Vadot    description:
52*8cc087a1SEmmanuel Vadot      Properties for single BUCK regulator.
53*8cc087a1SEmmanuel Vadot
54*8cc087a1SEmmanuel Vadot    properties:
55*8cc087a1SEmmanuel Vadot      op_mode:
56*8cc087a1SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
57*8cc087a1SEmmanuel Vadot        enum: [0, 1, 2, 3]
58*8cc087a1SEmmanuel Vadot        default: 1
59*8cc087a1SEmmanuel Vadot        description: |
60*8cc087a1SEmmanuel Vadot          Describes the different operating modes of the regulator with power
61*8cc087a1SEmmanuel Vadot          mode change in SOC. The different possible values are:
62*8cc087a1SEmmanuel Vadot            0 - always off mode
63*8cc087a1SEmmanuel Vadot            1 - on in normal mode
64*8cc087a1SEmmanuel Vadot            2 - low power mode
65*8cc087a1SEmmanuel Vadot            3 - suspend mode
66*8cc087a1SEmmanuel Vadot
67*8cc087a1SEmmanuel Vadot    required:
68*8cc087a1SEmmanuel Vadot      - regulator-name
69*8cc087a1SEmmanuel Vadot
70*8cc087a1SEmmanuel Vadot  # 9 buck
71*8cc087a1SEmmanuel Vadot  "^BUCK9$":
72*8cc087a1SEmmanuel Vadot    type: object
73*8cc087a1SEmmanuel Vadot    $ref: regulator.yaml#
74*8cc087a1SEmmanuel Vadot    unevaluatedProperties: false
75*8cc087a1SEmmanuel Vadot    description:
76*8cc087a1SEmmanuel Vadot      Properties for single BUCK regulator.
77*8cc087a1SEmmanuel Vadot
78*8cc087a1SEmmanuel Vadot    properties:
79*8cc087a1SEmmanuel Vadot      op_mode:
80*8cc087a1SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
81*8cc087a1SEmmanuel Vadot        enum: [0, 1, 2, 3]
82*8cc087a1SEmmanuel Vadot        default: 1
83*8cc087a1SEmmanuel Vadot        description: |
84*8cc087a1SEmmanuel Vadot          Describes the different operating modes of the regulator with power
85*8cc087a1SEmmanuel Vadot          mode change in SOC. The different possible values are:
86*8cc087a1SEmmanuel Vadot            0 - always off mode
87*8cc087a1SEmmanuel Vadot            1 - on in normal mode
88*8cc087a1SEmmanuel Vadot            2 - low power mode
89*8cc087a1SEmmanuel Vadot            3 - suspend mode
90*8cc087a1SEmmanuel Vadot
91*8cc087a1SEmmanuel Vadot      s5m8767,pmic-ext-control-gpios:
92*8cc087a1SEmmanuel Vadot        maxItems: 1
93*8cc087a1SEmmanuel Vadot        description: |
94*8cc087a1SEmmanuel Vadot          GPIO specifier for one GPIO controlling this regulator on/off.
95*8cc087a1SEmmanuel Vadot
96*8cc087a1SEmmanuel Vadot    required:
97*8cc087a1SEmmanuel Vadot      - regulator-name
98*8cc087a1SEmmanuel Vadot
99*8cc087a1SEmmanuel VadotadditionalProperties: false
100