Amlogic Meson System Control registers

Schema identifier ($id): "http://devicetree.org/schemas/soc/amlogic/amlogic,meson-gx-hhi-sysctrl.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "amlogic,meson-hhi-sysctrl", "amlogic,meson-gx-hhi-sysctrl", "amlogic,meson-gx-ao-sysctrl", "amlogic,meson-axg-hhi-sysctrl", "amlogic,meson-axg-ao-sysctrl"

Item 2

Exact value (const): "simple-mfd"

Item 3

Exact value (const): "syscon"

reg — required here #

Maximum number of items (maxItems): 1

clock-controller — required here #

Value type (type): "object"

power-controller — not listed as required here #

Shared schema rule ($ref): /schemas/power/amlogic,meson-ee-pwrc.yaml

pinctrl — not listed as required here #

Value type (type): "object"

phy — not listed as required here #

Value type (type): "object"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson-hhi-sysctrl"

When the condition matches (then) #

Properties and child nodes (properties)

clock-controller — not listed as required here

Shared schema rule ($ref): /schemas/clock/amlogic,meson8-clkc.yaml#

pinctrl — not listed as required here

false — Not permitted by this property rule.

phy — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson-gx-hhi-sysctrl", "amlogic,meson-axg-hhi-sysctrl"

When the condition matches (then) #

Properties and child nodes (properties)

clock-controller — not listed as required here

Shared schema rule ($ref): /schemas/clock/amlogic,gxbb-clkc.yaml#

Required in this object (required): "power-controller"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson-gx-ao-sysctrl", "amlogic,meson-axg-ao-sysctrl"

When the condition matches (then) #

Properties and child nodes (properties)

clock-controller — not listed as required here

Shared schema rule ($ref): /schemas/clock/amlogic,gxbb-aoclkc.yaml#

power-controller — not listed as required here

false — Not permitted by this property rule.

phy — not listed as required here

false — Not permitted by this property rule.

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson-gx-hhi-sysctrl"

When the condition matches (then) #

Properties and child nodes (properties)

phy — not listed as required here

false — Not permitted by this property rule.

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson-axg-hhi-sysctrl"

When the condition matches (then) #

Properties and child nodes (properties)

phy — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Shared schema rule ($ref): /schemas/phy/amlogic,g12a-mipi-dphy-analog.yaml

Rule 2

Shared schema rule ($ref): /schemas/phy/amlogic,meson-axg-mipi-pcie-analog.yaml

Required in this object (required): "compatible", "reg", "clock-controller"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

bus@c883c000 {
    compatible = "simple-bus";
    reg = <0xc883c000 0x2000>;
    #address-cells = <1>;
    #size-cells = <1>;
    ranges = <0x0 0xc883c000 0x2000>;

    sysctrl: system-controller@0 {
        compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon";
        reg = <0 0x400>;

        clock-controller {
            compatible = "amlogic,gxbb-clkc";
            #clock-cells = <1>;
            clocks = <&xtal>;
            clock-names = "xtal";
        };

        power-controller {
            compatible = "amlogic,meson-gxbb-pwrc";
            #power-domain-cells = <1>;
            amlogic,ao-sysctrl = <&sysctrl_AO>;

            resets = <&reset_viu>,
                     <&reset_venc>,
                     <&reset_vcbus>,
                     <&reset_bt656>,
                     <&reset_dvin>,
                     <&reset_rdma>,
                     <&reset_venci>,
                     <&reset_vencp>,
                     <&reset_vdac>,
                     <&reset_vdi6>,
                     <&reset_vencl>,
                     <&reset_vid_lock>;
            reset-names = "viu", "venc", "vcbus", "bt656", "dvin",
                          "rdma", "venci", "vencp", "vdac", "vdi6",
                          "vencl", "vid_lock";
            clocks = <&clk_vpu>, <&clk_vapb>;
            clock-names = "vpu", "vapb";
        };
    };
};

bus@c8100000 {
    compatible = "simple-bus";
    reg = <0xc8100000 0x100000>;
    #address-cells = <1>;
    #size-cells = <1>;
    ranges = <0x0 0xc8100000 0x100000>;

    sysctrl_AO: system-controller@0 {
        compatible = "amlogic,meson-gx-ao-sysctrl", "simple-mfd", "syscon";
        reg = <0 0x100>;

        clock-controller {
            compatible = "amlogic,meson-gxbb-aoclkc", "amlogic,meson-gx-aoclkc";
            #clock-cells = <1>;
            #reset-cells = <1>;
            clocks = <&xtal>, <&clk81>;
            clock-names = "xtal", "mpeg-clk";
        };
    };
};
system-controller@ff63c000 {
    compatible = "amlogic,meson-axg-hhi-sysctrl", "simple-mfd", "syscon";
    reg = <0xff63c000 0x400>;

    clock-controller {
        compatible = "amlogic,axg-clkc";
        #clock-cells = <1>;
        clocks = <&xtal>;
        clock-names = "xtal";
    };

    power-controller {
        compatible = "amlogic,meson-axg-pwrc";
        #power-domain-cells = <1>;
        amlogic,ao-sysctrl = <&sysctrl_AO>;

        resets = <&reset_viu>,
                 <&reset_venc>,
                 <&reset_vcbus>,
                 <&reset_vencl>,
                 <&reset_vid_lock>;
        reset-names = "viu", "venc", "vcbus", "vencl", "vid_lock";
        clocks = <&clk_vpu>, <&clk_vapb>;
        clock-names = "vpu", "vapb";
    };

    phy {
        compatible = "amlogic,axg-mipi-pcie-analog-phy";
        #phy-cells = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page