Allwinner A10 System Control
Schema identifier ($id): "http://devicetree.org/schemas/sram/allwinner,sun4i-a10-system-control.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
The SRAM controller found on most Allwinner devices is represented by a regular node for the SRAM controller itself, with sub-nodes representing the SRAM handled by the SRAM controller.
Properties and child nodes (properties) #
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"allwinner,sun4i-a10-sram-controller","allwinner,sun50i-a64-sram-controller"Deprecated (
deprecated):true
Rule 2
Allowed values (
enum):"allwinner,sun4i-a10-system-control","allwinner,sun5i-a13-system-control","allwinner,sun8i-a23-system-control","allwinner,sun8i-h3-system-control","allwinner,sun20i-d1-system-control","allwinner,sun50i-a64-system-control","allwinner,sun50i-h5-system-control","allwinner,sun50i-h616-system-control"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,suniv-f1c100s-system-control","allwinner,sun7i-a20-system-control","allwinner,sun8i-r40-system-control"Item 2
Exact value (
const):"allwinner,sun4i-a10-system-control"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun8i-v3s-system-control"Item 2
Exact value (
const):"allwinner,sun8i-h3-system-control"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun50i-a100-system-control","allwinner,sun50i-h6-system-control","allwinner,sun55i-a523-system-control"Item 2
Exact value (
const):"allwinner,sun50i-a64-system-control"
reg — required here #
Maximum number of items (maxItems): 1
ranges — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^regulators@[0-9a-f]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/regulator/allwinner,sun20i-d1-system-ldos.yaml#
^sram@[a-f0-9]+ — name matches this regular expression #
Shared schema rule ($ref): /schemas/sram/sram.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^sram-section?@[a-f0-9]+$ — name matches this regular expression
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — not listed as required here
true — No constraints added by this property rule.
compatible — not listed as required here
Exactly one of these rules must match (oneOf)
Rule 1
Exact value (
const):"allwinner,sun4i-a10-sram-a3-a4"
Rule 2
Exact value (
const):"allwinner,sun4i-a10-sram-c1"
Rule 3
Exact value (
const):"allwinner,sun4i-a10-sram-d"
Rule 4
Exact value (
const):"allwinner,sun50i-a64-sram-c"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun5i-a13-sram-a3-a4","allwinner,sun7i-a20-sram-a3-a4"Item 2
Exact value (
const):"allwinner,sun4i-a10-sram-a3-a4"
Rule 6
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun5i-a13-sram-c1","allwinner,sun7i-a20-sram-c1","allwinner,sun8i-a23-sram-c1","allwinner,sun8i-h3-sram-c1","allwinner,sun8i-r40-sram-c1","allwinner,sun50i-a64-sram-c1","allwinner,sun50i-h5-sram-c1","allwinner,sun50i-h6-sram-c1"Item 2
Exact value (
const):"allwinner,sun4i-a10-sram-c1"
Rule 7
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,suniv-f1c100s-sram-d","allwinner,sun5i-a13-sram-d","allwinner,sun7i-a20-sram-d"Item 2
Exact value (
const):"allwinner,sun4i-a10-sram-d"
Rule 8
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun50i-h6-sram-c"Item 2
Exact value (
const):"allwinner,sun50i-a64-sram-c"
Required in this object (required): "#address-cells", "#size-cells", "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
system-control@1c00000 {
compatible = "allwinner,sun4i-a10-system-control";
reg = <0x01c00000 0x30>;
#address-cells = <1>;
#size-cells = <1>;
ranges;
sram_a: sram@0 {
compatible = "mmio-sram";
reg = <0x00000000 0xc000>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0x00000000 0xc000>;
emac_sram: sram-section@8000 {
compatible = "allwinner,sun4i-a10-sram-a3-a4";
reg = <0x8000 0x4000>;
};
};
};
syscon@3000000 {
compatible = "allwinner,sun20i-d1-system-control";
reg = <0x3000000 0x1000>;
ranges;
#address-cells = <1>;
#size-cells = <1>;
regulators@3000150 {
compatible = "allwinner,sun20i-d1-system-ldos";
reg = <0x3000150 0x4>;
reg_ldoa: ldoa {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
};
reg_ldob: ldob {
regulator-name = "vcc-dram";
regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <1500000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0+