-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regulator: convert QCOM SMD-RPM regulator document to YAML schema
Convert qcom,smd-rpm-regulator.txt document to YAML schema Signed-off-by: Kathiravan T <kathirav@codeaurora.org> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/1595225543-12127-5-git-send-email-kathirav@codeaurora.org Signed-off-by: Mark Brown <broonie@kernel.org>
- Loading branch information
Kathiravan T
authored and
Mark Brown
committed
Jul 21, 2020
1 parent
f70e472
commit 175a1d8
Showing
2 changed files
with
106 additions
and
321 deletions.
There are no files selected for viewing
321 changes: 0 additions & 321 deletions
321
Documentation/devicetree/bindings/regulator/qcom,smd-rpm-regulator.txt
This file was deleted.
Oops, something went wrong.
106 changes: 106 additions & 0 deletions
106
Documentation/devicetree/bindings/regulator/qcom,smd-rpm-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,106 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/regulator/qcom,smd-rpm-regulator.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: QCOM SMD RPM REGULATOR | ||
|
||
description: | ||
The Qualcomm RPM over SMD regulator is modelled as a subdevice of the RPM. | ||
Because SMD is used as the communication transport mechanism, the RPM | ||
resides as a subnode of the SMD. As such, the SMD-RPM regulator requires | ||
that the SMD and RPM nodes be present. | ||
|
||
Please refer to Documentation/devicetree/bindings/soc/qcom/qcom,smd.txt for | ||
information pertaining to the SMD node. | ||
|
||
Please refer to Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml | ||
for information regarding the RPM node. | ||
|
||
The regulator node houses sub-nodes for each regulator within the device. | ||
Each sub-node is identified using the node's name, with valid values listed | ||
for each of the pmics below. | ||
|
||
For pm8841, s1, s2, s3, s4, s5, s6, s7, s8 | ||
|
||
For pm8916, s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, | ||
l12, l13, l14, l15, l16, l17, l18 | ||
|
||
For pm8941, s1, s2, s3, s4, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, | ||
l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, lvs1, lvs2, | ||
lvs3, 5vs1, 5vs2 | ||
|
||
For pm8994, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, l1, l2, l3, | ||
l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, | ||
l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, lvs1, lvs2 | ||
|
||
For pm8998, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, l1, l2, | ||
l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, | ||
l20, l21, l22, l23, l24, l25, l26, l27, l28, lvs1, lvs2 | ||
|
||
For pma8084, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, l1, l2, l3, | ||
l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, | ||
l20, l21, l22, l23, l24, l25, l26, l27, lvs1, lvs2, lvs3, lvs4, 5vs1 | ||
|
||
For pmi8994, s1, s2, s3, boost-bypass | ||
|
||
For pmi8998, bob | ||
|
||
For pms405, s1, s2, s3, s4, s5, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, | ||
l12, l13 | ||
|
||
maintainers: | ||
- Kathiravan T <kathirav@codeaurora.org> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- qcom,rpm-mp5496-regulators | ||
- qcom,rpm-pm8841-regulators | ||
- qcom,rpm-pm8916-regulators | ||
- qcom,rpm-pm8941-regulators | ||
- qcom,rpm-pm8950-regulators | ||
- qcom,rpm-pm8994-regulators | ||
- qcom,rpm-pm8998-regulators | ||
- qcom,rpm-pma8084-regulators | ||
- qcom,rpm-pmi8994-regulators | ||
- qcom,rpm-pmi8998-regulators | ||
- qcom,rpm-pms405-regulators | ||
|
||
patternProperties: | ||
".*-supply$": | ||
description: Input supply phandle(s) for this node | ||
|
||
"^((s|l|lvs|5vs)[0-9]*)|(boost-bypass)|(bob)$": | ||
description: List of regulators and its properties | ||
allOf: | ||
- $ref: regulator.yaml# | ||
|
||
additionalProperties: false | ||
|
||
required: | ||
- compatible | ||
|
||
examples: | ||
- | | ||
pm8941-regulators { | ||
compatible = "qcom,rpm-pm8941-regulators"; | ||
vdd_l13_l20_l23_l24-supply = <&pm8941_boost>; | ||
pm8941_s3: s3 { | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
pm8941_boost: s4 { | ||
regulator-min-microvolt = <5000000>; | ||
regulator-max-microvolt = <5000000>; | ||
}; | ||
pm8941_l20: l20 { | ||
regulator-min-microvolt = <2950000>; | ||
regulator-max-microvolt = <2950000>; | ||
}; | ||
}; | ||
... |