xref: /freebsd/sys/contrib/device-tree/Bindings/sram/allwinner,sun4i-a10-system-control.yaml (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0+
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sram/allwinner,sun4i-a10-system-control.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: Allwinner A10 System Control
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
11c66ec88fSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadotdescription:
14c66ec88fSEmmanuel Vadot  The SRAM controller found on most Allwinner devices is represented
15c66ec88fSEmmanuel Vadot  by a regular node for the SRAM controller itself, with sub-nodes
16c66ec88fSEmmanuel Vadot  representing the SRAM handled by the SRAM controller.
17c66ec88fSEmmanuel Vadot
18c66ec88fSEmmanuel Vadotproperties:
19c66ec88fSEmmanuel Vadot  "#address-cells":
20c66ec88fSEmmanuel Vadot    const: 1
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot  "#size-cells":
23c66ec88fSEmmanuel Vadot    const: 1
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  compatible:
26c66ec88fSEmmanuel Vadot    oneOf:
277ef62cebSEmmanuel Vadot      - enum:
287ef62cebSEmmanuel Vadot          - allwinner,sun4i-a10-sram-controller
297ef62cebSEmmanuel Vadot          - allwinner,sun50i-a64-sram-controller
30c66ec88fSEmmanuel Vadot        deprecated: true
317ef62cebSEmmanuel Vadot      - enum:
327ef62cebSEmmanuel Vadot          - allwinner,sun4i-a10-system-control
337ef62cebSEmmanuel Vadot          - allwinner,sun5i-a13-system-control
347ef62cebSEmmanuel Vadot          - allwinner,sun8i-a23-system-control
357ef62cebSEmmanuel Vadot          - allwinner,sun8i-h3-system-control
367ef62cebSEmmanuel Vadot          - allwinner,sun20i-d1-system-control
377ef62cebSEmmanuel Vadot          - allwinner,sun50i-a64-system-control
387ef62cebSEmmanuel Vadot          - allwinner,sun50i-h5-system-control
397ef62cebSEmmanuel Vadot          - allwinner,sun50i-h616-system-control
40c66ec88fSEmmanuel Vadot      - items:
417ef62cebSEmmanuel Vadot          - enum:
427ef62cebSEmmanuel Vadot              - allwinner,suniv-f1c100s-system-control
437ef62cebSEmmanuel Vadot              - allwinner,sun7i-a20-system-control
447ef62cebSEmmanuel Vadot              - allwinner,sun8i-r40-system-control
45c66ec88fSEmmanuel Vadot          - const: allwinner,sun4i-a10-system-control
466be33864SEmmanuel Vadot      - items:
476be33864SEmmanuel Vadot          - const: allwinner,sun8i-v3s-system-control
486be33864SEmmanuel Vadot          - const: allwinner,sun8i-h3-system-control
496be33864SEmmanuel Vadot      - items:
50c66ec88fSEmmanuel Vadot          - const: allwinner,sun50i-h6-system-control
51c66ec88fSEmmanuel Vadot          - const: allwinner,sun50i-a64-system-control
52c66ec88fSEmmanuel Vadot
53c66ec88fSEmmanuel Vadot  reg:
54c66ec88fSEmmanuel Vadot    maxItems: 1
55c66ec88fSEmmanuel Vadot
56c66ec88fSEmmanuel Vadot  ranges: true
57c66ec88fSEmmanuel Vadot
58c66ec88fSEmmanuel VadotpatternProperties:
59*0e8011faSEmmanuel Vadot  "^regulators@[0-9a-f]+$":
60*0e8011faSEmmanuel Vadot    $ref: /schemas/regulator/allwinner,sun20i-d1-system-ldos.yaml#
61*0e8011faSEmmanuel Vadot
6201950c46SEmmanuel Vadot  "^sram@[a-f0-9]+":
63fac71e4eSEmmanuel Vadot    $ref: /schemas/sram/sram.yaml#
64fac71e4eSEmmanuel Vadot    unevaluatedProperties: false
65c66ec88fSEmmanuel Vadot
66c66ec88fSEmmanuel Vadot    patternProperties:
67c66ec88fSEmmanuel Vadot      "^sram-section?@[a-f0-9]+$":
68c66ec88fSEmmanuel Vadot        type: object
69fac71e4eSEmmanuel Vadot        additionalProperties: false
70c66ec88fSEmmanuel Vadot
71c66ec88fSEmmanuel Vadot        properties:
72fac71e4eSEmmanuel Vadot          reg: true
73fac71e4eSEmmanuel Vadot
74c66ec88fSEmmanuel Vadot          compatible:
75c66ec88fSEmmanuel Vadot            oneOf:
76c66ec88fSEmmanuel Vadot              - const: allwinner,sun4i-a10-sram-a3-a4
77c66ec88fSEmmanuel Vadot              - const: allwinner,sun4i-a10-sram-c1
78c66ec88fSEmmanuel Vadot              - const: allwinner,sun4i-a10-sram-d
79c66ec88fSEmmanuel Vadot              - const: allwinner,sun50i-a64-sram-c
80c66ec88fSEmmanuel Vadot              - items:
817ef62cebSEmmanuel Vadot                  - enum:
827ef62cebSEmmanuel Vadot                      - allwinner,sun5i-a13-sram-a3-a4
837ef62cebSEmmanuel Vadot                      - allwinner,sun7i-a20-sram-a3-a4
84c66ec88fSEmmanuel Vadot                  - const: allwinner,sun4i-a10-sram-a3-a4
85c66ec88fSEmmanuel Vadot              - items:
867ef62cebSEmmanuel Vadot                  - enum:
877ef62cebSEmmanuel Vadot                      - allwinner,sun5i-a13-sram-c1
887ef62cebSEmmanuel Vadot                      - allwinner,sun7i-a20-sram-c1
897ef62cebSEmmanuel Vadot                      - allwinner,sun8i-a23-sram-c1
907ef62cebSEmmanuel Vadot                      - allwinner,sun8i-h3-sram-c1
917ef62cebSEmmanuel Vadot                      - allwinner,sun8i-r40-sram-c1
927ef62cebSEmmanuel Vadot                      - allwinner,sun50i-a64-sram-c1
937ef62cebSEmmanuel Vadot                      - allwinner,sun50i-h5-sram-c1
947ef62cebSEmmanuel Vadot                      - allwinner,sun50i-h6-sram-c1
95c66ec88fSEmmanuel Vadot                  - const: allwinner,sun4i-a10-sram-c1
96c66ec88fSEmmanuel Vadot              - items:
977ef62cebSEmmanuel Vadot                  - enum:
987ef62cebSEmmanuel Vadot                      - allwinner,suniv-f1c100s-sram-d
997ef62cebSEmmanuel Vadot                      - allwinner,sun5i-a13-sram-d
1007ef62cebSEmmanuel Vadot                      - allwinner,sun7i-a20-sram-d
101c66ec88fSEmmanuel Vadot                  - const: allwinner,sun4i-a10-sram-d
102c66ec88fSEmmanuel Vadot              - items:
103c66ec88fSEmmanuel Vadot                  - const: allwinner,sun50i-h6-sram-c
104c66ec88fSEmmanuel Vadot                  - const: allwinner,sun50i-a64-sram-c
105c66ec88fSEmmanuel Vadot
106c66ec88fSEmmanuel Vadotrequired:
107c66ec88fSEmmanuel Vadot  - "#address-cells"
108c66ec88fSEmmanuel Vadot  - "#size-cells"
109c66ec88fSEmmanuel Vadot  - compatible
110c66ec88fSEmmanuel Vadot  - reg
111c66ec88fSEmmanuel Vadot
112c66ec88fSEmmanuel VadotadditionalProperties: false
113c66ec88fSEmmanuel Vadot
114c66ec88fSEmmanuel Vadotexamples:
115c66ec88fSEmmanuel Vadot  - |
116c66ec88fSEmmanuel Vadot    system-control@1c00000 {
117c66ec88fSEmmanuel Vadot      compatible = "allwinner,sun4i-a10-system-control";
118c66ec88fSEmmanuel Vadot      reg = <0x01c00000 0x30>;
119c66ec88fSEmmanuel Vadot      #address-cells = <1>;
120c66ec88fSEmmanuel Vadot      #size-cells = <1>;
121c66ec88fSEmmanuel Vadot      ranges;
122c66ec88fSEmmanuel Vadot
123c66ec88fSEmmanuel Vadot      sram_a: sram@0 {
124c66ec88fSEmmanuel Vadot        compatible = "mmio-sram";
125c66ec88fSEmmanuel Vadot        reg = <0x00000000 0xc000>;
126c66ec88fSEmmanuel Vadot        #address-cells = <1>;
127c66ec88fSEmmanuel Vadot        #size-cells = <1>;
128c66ec88fSEmmanuel Vadot        ranges = <0 0x00000000 0xc000>;
129c66ec88fSEmmanuel Vadot
130c66ec88fSEmmanuel Vadot        emac_sram: sram-section@8000 {
131c66ec88fSEmmanuel Vadot          compatible = "allwinner,sun4i-a10-sram-a3-a4";
132c66ec88fSEmmanuel Vadot          reg = <0x8000 0x4000>;
133c66ec88fSEmmanuel Vadot        };
134c66ec88fSEmmanuel Vadot      };
135c66ec88fSEmmanuel Vadot    };
136*0e8011faSEmmanuel Vadot
137*0e8011faSEmmanuel Vadot  - |
138*0e8011faSEmmanuel Vadot    syscon@3000000 {
139*0e8011faSEmmanuel Vadot      compatible = "allwinner,sun20i-d1-system-control";
140*0e8011faSEmmanuel Vadot      reg = <0x3000000 0x1000>;
141*0e8011faSEmmanuel Vadot      ranges;
142*0e8011faSEmmanuel Vadot      #address-cells = <1>;
143*0e8011faSEmmanuel Vadot      #size-cells = <1>;
144*0e8011faSEmmanuel Vadot
145*0e8011faSEmmanuel Vadot      regulators@3000150 {
146*0e8011faSEmmanuel Vadot        compatible = "allwinner,sun20i-d1-system-ldos";
147*0e8011faSEmmanuel Vadot        reg = <0x3000150 0x4>;
148*0e8011faSEmmanuel Vadot
149*0e8011faSEmmanuel Vadot        reg_ldoa: ldoa {
150*0e8011faSEmmanuel Vadot          regulator-min-microvolt = <1800000>;
151*0e8011faSEmmanuel Vadot          regulator-max-microvolt = <1800000>;
152*0e8011faSEmmanuel Vadot        };
153*0e8011faSEmmanuel Vadot
154*0e8011faSEmmanuel Vadot        reg_ldob: ldob {
155*0e8011faSEmmanuel Vadot          regulator-name = "vcc-dram";
156*0e8011faSEmmanuel Vadot          regulator-min-microvolt = <1500000>;
157*0e8011faSEmmanuel Vadot          regulator-max-microvolt = <1500000>;
158*0e8011faSEmmanuel Vadot        };
159*0e8011faSEmmanuel Vadot      };
160*0e8011faSEmmanuel Vadot    };
161