forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
3 changed files
with
75 additions
and
141 deletions.
There are no files selected for viewing
140 changes: 0 additions & 140 deletions
140
Documentation/devicetree/bindings/regulator/samsung,s5m8767.txt
This file was deleted.
Oops, something went wrong.
74 changes: 74 additions & 0 deletions
74
Documentation/devicetree/bindings/regulator/samsung,s5m8767.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/regulator/samsung,s5m8767.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Samsung S5M8767 Power Management IC regulators | ||
|
||
maintainers: | ||
- Krzysztof Kozlowski <[email protected]> | ||
|
||
description: | | ||
This is a part of device tree bindings for S2M and S5M family of Power | ||
Management IC (PMIC). | ||
The S5M8767 provides buck and LDO regulators. | ||
See also Documentation/devicetree/bindings/mfd/samsung,s5m8767.yaml for | ||
additional information and example. | ||
patternProperties: | ||
# 28 LDOs | ||
"^LDO([1-9]|1[0-9]|2[0-8])$": | ||
type: object | ||
$ref: regulator.yaml# | ||
unevaluatedProperties: false | ||
description: | ||
Properties for single LDO regulator. | ||
|
||
properties: | ||
op_mode: | ||
$ref: /schemas/types.yaml#/definitions/uint32 | ||
enum: [0, 1, 2, 3] | ||
default: 1 | ||
description: | | ||
Describes the different operating modes of the LDO's with power mode | ||
change in SOC. The different possible values are: | ||
0 - always off mode | ||
1 - on in normal mode | ||
2 - low power mode | ||
3 - suspend mode | ||
required: | ||
- regulator-name | ||
|
||
# 8 bucks | ||
"^BUCK[1-8]$": | ||
type: object | ||
$ref: regulator.yaml# | ||
unevaluatedProperties: false | ||
description: | ||
Properties for single BUCK regulator. | ||
|
||
required: | ||
- regulator-name | ||
|
||
# 9 buck | ||
"^BUCK9$": | ||
type: object | ||
$ref: regulator.yaml# | ||
unevaluatedProperties: false | ||
description: | ||
Properties for single BUCK regulator. | ||
|
||
properties: | ||
s5m8767,pmic-ext-control-gpios: | ||
maxItems: 1 | ||
description: | | ||
GPIO specifier for one GPIO controlling this regulator on/off. | ||
required: | ||
- regulator-name | ||
|
||
additionalProperties: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters