Skip to content

Commit aa4e327

Browse files
lumagandersson
authored andcommitted
dt-bindings: soc: qcom: qcom,saw2: define optional regulator node
The SAW2 device can optionally provide a voltage regulator supplying the CPU core, cluster or L2 cache. Change the boolean 'regulator' property into a proper regulator description. This breaks schema compatibility for the sake of properly describing the regulator. Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 31ac56a commit aa4e327

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ properties:
5353
minItems: 1
5454

5555
regulator:
56-
type: boolean
56+
$ref: /schemas/regulator/regulator.yaml#
5757
description: Indicates that this SPM device acts as a regulator device
5858
device for the core (CPU or Cache) the SPM is attached to.
5959

@@ -102,4 +102,17 @@ examples:
102102
reg = <0x17912000 0x1000>;
103103
};
104104
105+
- |
106+
/*
107+
* Example 3: SAW2 with the bundled regulator definition.
108+
*/
109+
power-manager@2089000 {
110+
compatible = "qcom,apq8064-saw2-v1.1-cpu", "qcom,saw2";
111+
reg = <0x02089000 0x1000>, <0x02009000 0x1000>;
112+
113+
regulator {
114+
regulator-min-microvolt = <850000>;
115+
regulator-max-microvolt = <1300000>;
116+
};
117+
};
105118
...

0 commit comments

Comments
 (0)