xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/samsung,s5m8767.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/regulator/samsung,s5m8767.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: Samsung S5M8767 Power Management IC regulators
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
10*c9ccf3a3SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
118cc087a1SEmmanuel Vadot
128cc087a1SEmmanuel Vadotdescription: |
138cc087a1SEmmanuel Vadot  This is a part of device tree bindings for S2M and S5M family of Power
148cc087a1SEmmanuel Vadot  Management IC (PMIC).
158cc087a1SEmmanuel Vadot
168cc087a1SEmmanuel Vadot  The S5M8767 provides buck and LDO regulators.
178cc087a1SEmmanuel Vadot
188cc087a1SEmmanuel Vadot  See also Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml for
198cc087a1SEmmanuel Vadot  additional information and example.
208cc087a1SEmmanuel Vadot
218cc087a1SEmmanuel VadotpatternProperties:
228cc087a1SEmmanuel Vadot  # 28 LDOs
238cc087a1SEmmanuel Vadot  "^LDO([1-9]|1[0-9]|2[0-8])$":
248cc087a1SEmmanuel Vadot    type: object
258cc087a1SEmmanuel Vadot    $ref: regulator.yaml#
268cc087a1SEmmanuel Vadot    unevaluatedProperties: false
278cc087a1SEmmanuel Vadot    description:
288cc087a1SEmmanuel Vadot      Properties for single LDO regulator.
298cc087a1SEmmanuel Vadot
308cc087a1SEmmanuel Vadot    properties:
318cc087a1SEmmanuel Vadot      op_mode:
328cc087a1SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
338cc087a1SEmmanuel Vadot        enum: [0, 1, 2, 3]
348cc087a1SEmmanuel Vadot        default: 1
358cc087a1SEmmanuel Vadot        description: |
368cc087a1SEmmanuel Vadot          Describes the different operating modes of the LDO's with power mode
378cc087a1SEmmanuel Vadot          change in SOC. The different possible values are:
388cc087a1SEmmanuel Vadot            0 - always off mode
398cc087a1SEmmanuel Vadot            1 - on in normal mode
408cc087a1SEmmanuel Vadot            2 - low power mode
418cc087a1SEmmanuel Vadot            3 - suspend mode
428cc087a1SEmmanuel Vadot
438cc087a1SEmmanuel Vadot    required:
448cc087a1SEmmanuel Vadot      - regulator-name
458cc087a1SEmmanuel Vadot
468cc087a1SEmmanuel Vadot  # 8 bucks
478cc087a1SEmmanuel Vadot  "^BUCK[1-8]$":
488cc087a1SEmmanuel Vadot    type: object
498cc087a1SEmmanuel Vadot    $ref: regulator.yaml#
508cc087a1SEmmanuel Vadot    unevaluatedProperties: false
518cc087a1SEmmanuel Vadot    description:
528cc087a1SEmmanuel Vadot      Properties for single BUCK regulator.
538cc087a1SEmmanuel Vadot
548cc087a1SEmmanuel Vadot    properties:
558cc087a1SEmmanuel Vadot      op_mode:
568cc087a1SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
578cc087a1SEmmanuel Vadot        enum: [0, 1, 2, 3]
588cc087a1SEmmanuel Vadot        default: 1
598cc087a1SEmmanuel Vadot        description: |
608cc087a1SEmmanuel Vadot          Describes the different operating modes of the regulator with power
618cc087a1SEmmanuel Vadot          mode change in SOC. The different possible values are:
628cc087a1SEmmanuel Vadot            0 - always off mode
638cc087a1SEmmanuel Vadot            1 - on in normal mode
648cc087a1SEmmanuel Vadot            2 - low power mode
658cc087a1SEmmanuel Vadot            3 - suspend mode
668cc087a1SEmmanuel Vadot
678cc087a1SEmmanuel Vadot    required:
688cc087a1SEmmanuel Vadot      - regulator-name
698cc087a1SEmmanuel Vadot
70e67e8565SEmmanuel Vadotproperties:
718cc087a1SEmmanuel Vadot  # 9 buck
72e67e8565SEmmanuel Vadot  BUCK9:
738cc087a1SEmmanuel Vadot    type: object
748cc087a1SEmmanuel Vadot    $ref: regulator.yaml#
758cc087a1SEmmanuel Vadot    unevaluatedProperties: false
768cc087a1SEmmanuel Vadot    description:
778cc087a1SEmmanuel Vadot      Properties for single BUCK regulator.
788cc087a1SEmmanuel Vadot
798cc087a1SEmmanuel Vadot    properties:
808cc087a1SEmmanuel Vadot      op_mode:
818cc087a1SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
828cc087a1SEmmanuel Vadot        enum: [0, 1, 2, 3]
838cc087a1SEmmanuel Vadot        default: 1
848cc087a1SEmmanuel Vadot        description: |
858cc087a1SEmmanuel Vadot          Describes the different operating modes of the regulator with power
868cc087a1SEmmanuel Vadot          mode change in SOC. The different possible values are:
878cc087a1SEmmanuel Vadot            0 - always off mode
888cc087a1SEmmanuel Vadot            1 - on in normal mode
898cc087a1SEmmanuel Vadot            2 - low power mode
908cc087a1SEmmanuel Vadot            3 - suspend mode
918cc087a1SEmmanuel Vadot
928cc087a1SEmmanuel Vadot      s5m8767,pmic-ext-control-gpios:
938cc087a1SEmmanuel Vadot        maxItems: 1
948cc087a1SEmmanuel Vadot        description: |
958cc087a1SEmmanuel Vadot          GPIO specifier for one GPIO controlling this regulator on/off.
968cc087a1SEmmanuel Vadot
978cc087a1SEmmanuel Vadot    required:
988cc087a1SEmmanuel Vadot      - regulator-name
998cc087a1SEmmanuel Vadot
1008cc087a1SEmmanuel VadotadditionalProperties: false
101