d1: add new target
[openwrt/staging/mans0n.git] / target / linux / d1 / patches-6.1 / 0022-dt-bindings-sram-sunxi-sram-Add-optional-regulators-.patch
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
5 regulators child
6
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.
10
11 Commit-changes: 2
12 - New patch for v2
13
14 Series-changes: 3
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
19
20 Series-changes: 4
21 - Remove unevaluatedProperties from regulators schema reference
22
23 Signed-off-by: Samuel Holland <samuel@sholland.org>
24 ---
25 .../allwinner,sun4i-a10-system-control.yaml | 28 +++++++++++++++++++
26 1 file changed, 28 insertions(+)
27
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:
31 ranges: true
32
33 patternProperties:
34 + "^regulators@[0-9a-f]+$":
35 + $ref: /schemas/regulator/allwinner,sun20i-d1-system-ldos.yaml#
36 +
37 "^sram@[a-z0-9]+":
38 type: object
39
40 @@ -130,3 +133,28 @@ examples:
41 };
42 };
43 };
44 +
45 + - |
46 + syscon@3000000 {
47 + compatible = "allwinner,sun20i-d1-system-control";
48 + reg = <0x3000000 0x1000>;
49 + ranges;
50 + #address-cells = <1>;
51 + #size-cells = <1>;
52 +
53 + regulators@3000150 {
54 + compatible = "allwinner,sun20i-d1-system-ldos";
55 + reg = <0x3000150 0x4>;
56 +
57 + reg_ldoa: ldoa {
58 + regulator-min-microvolt = <1800000>;
59 + regulator-max-microvolt = <1800000>;
60 + };
61 +
62 + reg_ldob: ldob {
63 + regulator-name = "vcc-dram";
64 + regulator-min-microvolt = <1500000>;
65 + regulator-max-microvolt = <1500000>;
66 + };
67 + };
68 + };