Amlogic Meson Everything-Else Power Domains

Schema identifier ($id): "http://devicetree.org/schemas/power/amlogic,meson-ee-pwrc.yaml#"

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

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

The Everything-Else Power Domains node should be the child of a syscon node with the required property:

- compatible: Should be the following:
              "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon"

Refer to the bindings described in Documentation/devicetree/bindings/mfd/syscon.yaml

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "amlogic,meson8-pwrc", "amlogic,meson8b-pwrc", "amlogic,meson8m2-pwrc", "amlogic,meson-gxbb-pwrc", "amlogic,meson-axg-pwrc", "amlogic,meson-g12a-pwrc", "amlogic,meson-sm1-pwrc"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "vpu"

Item 2

Exact value (const): "vapb"

resets — not listed as required here #

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 12

reset-names — not listed as required here #

Minimum number of items (minItems): 5

Maximum number of items (maxItems): 12

#power-domain-cells — required here #

Exact value (const): 1

amlogic,ao-sysctrl — required here #

phandle to the AO sysctrl node

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

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,meson8b-pwrc", "amlogic,meson8m2-pwrc"

When the condition matches (then) #

Properties and child nodes (properties)

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "dblk"

Item 2

Exact value (const): "pic_dc"

Item 3

Exact value (const): "hdmi_apb"

Item 4

Exact value (const): "hdmi_system"

Item 5

Exact value (const): "venci"

Item 6

Exact value (const): "vencp"

Item 7

Exact value (const): "vdac"

Item 8

Exact value (const): "vencl"

Item 9

Exact value (const): "viu"

Item 10

Exact value (const): "venc"

Item 11

Exact value (const): "rdma"

Required in this object (required): "resets", "reset-names"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson-gxbb-pwrc"

When the condition matches (then) #

Properties and child nodes (properties)

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "viu"

Item 2

Exact value (const): "venc"

Item 3

Exact value (const): "vcbus"

Item 4

Exact value (const): "bt656"

Item 5

Exact value (const): "dvin"

Item 6

Exact value (const): "rdma"

Item 7

Exact value (const): "venci"

Item 8

Exact value (const): "vencp"

Item 9

Exact value (const): "vdac"

Item 10

Exact value (const): "vdi6"

Item 11

Exact value (const): "vencl"

Item 12

Exact value (const): "vid_lock"

Required in this object (required): "resets", "reset-names"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

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

When the condition matches (then) #

Properties and child nodes (properties)

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "viu"

Item 2

Exact value (const): "venc"

Item 3

Exact value (const): "vcbus"

Item 4

Exact value (const): "vencl"

Item 5

Exact value (const): "vid_lock"

Required in this object (required): "resets", "reset-names"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "amlogic,meson-g12a-pwrc", "amlogic,meson-sm1-pwrc"

When the condition matches (then) #

Properties and child nodes (properties)

reset-names — required here

Array item rules (items)

Item 1

Exact value (const): "viu"

Item 2

Exact value (const): "venc"

Item 3

Exact value (const): "vcbus"

Item 4

Exact value (const): "bt656"

Item 5

Exact value (const): "rdma"

Item 6

Exact value (const): "venci"

Item 7

Exact value (const): "vencp"

Item 8

Exact value (const): "vdac"

Item 9

Exact value (const): "vdi6"

Item 10

Exact value (const): "vencl"

Item 11

Exact value (const): "vid_lock"

Required in this object (required): "resets", "reset-names"

Required in this object (required): "compatible", "clocks", "clock-names", "#power-domain-cells", "amlogic,ao-sysctrl"

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

false

Not allowed by this rule.

Examples (examples) #

pwrc: power-controller {
      compatible = "amlogic,meson-sm1-pwrc";
      #power-domain-cells = <1>;
      amlogic,ao-sysctrl = <&rti>;
      resets = <&reset_viu>,
               <&reset_venc>,
               <&reset_vcbus>,
               <&reset_bt656>,
               <&reset_rdma>,
               <&reset_venci>,
               <&reset_vencp>,
               <&reset_vdac>,
               <&reset_vdi6>,
               <&reset_vencl>,
               <&reset_vid_lock>;
      reset-names = "viu", "venc", "vcbus", "bt656",
                    "rdma", "venci", "vencp", "vdac",
                    "vdi6", "vencl", "vid_lock";
      clocks = <&clk_vpu>, <&clk_vapb>;
      clock-names = "vpu", "vapb";
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2019 BayLibre, SAS

Edit this page