1 From 52c6979628d596018e9259767bff4def25e449dc Mon Sep 17 00:00:00 2001
2 From: Samuel Holland <samuel@sholland.org>
3 Date: Mon, 1 Aug 2022 23:57:19 -0500
4 Subject: [PATCH 022/117] dt-bindings: sram: sunxi-sram: Add optional
7 Some sunxi SoCs have in-package regulators controlled by a register in
8 the system control MMIO block. Allow a child node for these regulators
9 in addition to SRAM child nodes.
15 - Require the regulators node to have a unit address
16 - Reference the regulator schema from the SRAM controller schema
17 - Move the system LDOs example to the SRAM controller schema
18 - Reorder the patches so the example passes validation
21 - Remove unevaluatedProperties from regulators schema reference
23 Signed-off-by: Samuel Holland <samuel@sholland.org>
25 .../allwinner,sun4i-a10-system-control.yaml | 28 +++++++++++++++++++
26 1 file changed, 28 insertions(+)
28 --- a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml
29 +++ b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml
30 @@ -56,6 +56,9 @@ properties:
34 + "^regulators@[0-9a-f]+$":
35 + $ref: /schemas/regulator/allwinner,sun20i-d1-system-ldos.yaml#
40 @@ -130,3 +133,28 @@ examples:
47 + compatible = "allwinner,sun20i-d1-system-control";
48 + reg = <0x3000000 0x1000>;
50 + #address-cells = <1>;
53 + regulators@3000150 {
54 + compatible = "allwinner,sun20i-d1-system-ldos";
55 + reg = <0x3000150 0x4>;
58 + regulator-min-microvolt = <1800000>;
59 + regulator-max-microvolt = <1800000>;
63 + regulator-name = "vcc-dram";
64 + regulator-min-microvolt = <1500000>;
65 + regulator-max-microvolt = <1500000>;