Skip to content

Commit 3a6fb90

Browse files
smaeulwens
authored andcommitted
dt-bindings: sram: sunxi-sram: Add regulators child
Some sunxi SoCs have in-package regulators controlled by a register in the system control MMIO block. Allow a child node for this regulator device in addition to SRAM child nodes. Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent a40cf06 commit 3a6fb90

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ properties:
5656
ranges: true
5757

5858
patternProperties:
59+
"^regulators@[0-9a-f]+$":
60+
$ref: /schemas/regulator/allwinner,sun20i-d1-system-ldos.yaml#
61+
5962
"^sram@[a-f0-9]+":
6063
$ref: /schemas/sram/sram.yaml#
6164
unevaluatedProperties: false
@@ -130,3 +133,28 @@ examples:
130133
};
131134
};
132135
};
136+
137+
- |
138+
syscon@3000000 {
139+
compatible = "allwinner,sun20i-d1-system-control";
140+
reg = <0x3000000 0x1000>;
141+
ranges;
142+
#address-cells = <1>;
143+
#size-cells = <1>;
144+
145+
regulators@3000150 {
146+
compatible = "allwinner,sun20i-d1-system-ldos";
147+
reg = <0x3000150 0x4>;
148+
149+
reg_ldoa: ldoa {
150+
regulator-min-microvolt = <1800000>;
151+
regulator-max-microvolt = <1800000>;
152+
};
153+
154+
reg_ldob: ldob {
155+
regulator-name = "vcc-dram";
156+
regulator-min-microvolt = <1500000>;
157+
regulator-max-microvolt = <1500000>;
158+
};
159+
};
160+
};

0 commit comments

Comments
 (0)