Freescale i.MX General Power Controller v2

Schema identifier ($id): "http://devicetree.org/schemas/power/fsl,imx-gpcv2.yaml#"

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

Maintainers (maintainers): "Andrey Smirnov <andrew.smirnov@gmail.com>"

The i.MX7S/D General Power Control (GPC) block contains Power Gating Control (PGC) for various power domains.

Power domains contained within GPC node are generic power domain providers, documented in Documentation/devicetree/bindings/power/power-domain.yaml, which are described as subnodes of the power gating controller 'pgc' node.

IP cores belonging to a power domain should contain a 'power-domains' property that is a phandle for PGC node representing the domain.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx7d-gpc", "fsl,imx8mn-gpc", "fsl,imx8mq-gpc", "fsl,imx8mm-gpc", "fsl,imx8mp-gpc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

interrupt-controller — not listed as required here #

true — No constraints added by this property rule.

#interrupt-cells — not listed as required here #

Exact value (const): 3

pgc — required here #

Value type (type): "object"

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

false

Not allowed by this rule.

list of power domains provided by this controller.

Properties and child nodes (properties) #

#address-cells — required here

Exact value (const): 1

#size-cells — required here

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

power-domain@[0-9a-f]+$ — 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)

#power-domain-cells — required here

Exact value (const): 0

reg — required here

Power domain index. Valid values are defined in include/dt-bindings/power/imx7-power.h for fsl,imx7d-gpc and include/dt-bindings/power/imx8m-power.h for fsl,imx8mq-gpc include/dt-bindings/power/imx8mm-power.h for fsl,imx8mm-gpc include/dt-bindings/power/imx8mp-power.h for fsl,imx8mp-gpc

Maximum number of items (maxItems): 1

clocks — not listed as required here

A number of phandles to clocks that need to be enabled during domain power-up sequencing to ensure reset propagation into devices located inside this power domain.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

power-supply — not listed as required here

true — No constraints added by this property rule.

power-domains — not listed as required here

Maximum number of items (maxItems): 1

resets — not listed as required here

A number of phandles to resets that need to be asserted during power-up sequencing of the domain. The resets belong to devices located inside the power domain, which need to be held in reset across the power-up sequence. So no means to specify what each reset is in a generic power-domain binding.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Required in this object (required): "#power-domain-cells", "reg"

Required in this object (required): "#address-cells", "#size-cells"

Required in this object (required): "compatible", "reg", "interrupts", "pgc"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

gpc@303a0000 {
    compatible = "fsl,imx7d-gpc";
    reg = <0x303a0000 0x1000>;
    interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;

    pgc {
        #address-cells = <1>;
        #size-cells = <0>;

        pgc_mipi_phy: power-domain@0 {
            #power-domain-cells = <0>;
            reg = <0>;
            power-supply = <&reg_1p0d>;
        };

        pgc_pcie_phy: power-domain@1 {
            #power-domain-cells = <0>;
            reg = <1>;
            power-supply = <&reg_1p0d>;
        };

        pgc_hsic_phy: power-domain@2 {
            #power-domain-cells = <0>;
            reg = <2>;
            power-supply = <&reg_1p2>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page