forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regulator: document binding for MT6315 regulator
Add device tree binding information for MT6315 regulator driver. Example bindings for MT6315 are added. Signed-off-by: Hsin-Hsiung Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
- Loading branch information
1 parent
41a8a02
commit 977fb5b
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
Documentation/devicetree/bindings/regulator/mt6315-regulator.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,69 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/regulator/mt6315-regulator.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Mediatek MT6315 Regulator | ||
|
||
maintainers: | ||
- Hsin-Hsiung Wang <[email protected]> | ||
|
||
description: | | ||
The MT6315 is a power management IC (PMIC) configurable with SPMI. | ||
that contains 4 BUCKs output which can combine with each other | ||
by different efuse settings. | ||
properties: | ||
compatible: | ||
const: mediatek,mt6315-regulator | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
regulators: | ||
type: object | ||
description: List of regulators and its properties | ||
|
||
patternProperties: | ||
"^vbuck[1-4]$": | ||
type: object | ||
$ref: "regulator.yaml#" | ||
|
||
properties: | ||
regulator-name: | ||
pattern: "^vbuck[1-4]$" | ||
|
||
additionalProperties: false | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- regulators | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
pmic@6 { | ||
compatible = "mediatek,mt6315-regulator"; | ||
reg = <0x6 0>; | ||
regulators { | ||
vbuck1 { | ||
regulator-compatible = "vbuck1"; | ||
regulator-min-microvolt = <300000>; | ||
regulator-max-microvolt = <1193750>; | ||
regulator-enable-ramp-delay = <256>; | ||
regulator-allowed-modes = <0 1 2 4>; | ||
}; | ||
vbuck3 { | ||
regulator-compatible = "vbuck3"; | ||
regulator-min-microvolt = <300000>; | ||
regulator-max-microvolt = <1193750>; | ||
regulator-enable-ramp-delay = <256>; | ||
regulator-allowed-modes = <0 1 2 4>; | ||
}; | ||
}; | ||
}; |