Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Powerpc bindings

Single-page view · as markdown

Freescale PowerQUICC II Pro (MPC83xx) platforms

Peios Kernel / Hardware and drivers / Device-tree binding reference / Powerpc bindings / fsl

Schema identifier ($id): "http://devicetree.org/schemas/powerpc/fsl/fsl,mpc83xx.yaml#"

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

Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

Exact value (const): "/"

compatible — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

MPC83xx Reference Design Boards

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8308rdb", "fsl,mpc8315erdb", "fsl,mpc8360rdk", "fsl,mpc8377rdb", "fsl,mpc8377wlan", "fsl,mpc8378rdb", "fsl,mpc8379rdb"

Rule 2

MPC8313E Reference Design Board

Array item rules (items)

Item 1

Exact value (const): "MPC8313ERDB"

Item 2

Exact value (const): "MPC831xRDB"

Item 3

Exact value (const): "MPC83xxRDB"

Rule 3

MPC8323E Reference Design Board

Array item rules (items)

Item 1

Exact value (const): "MPC8323ERDB"

Item 2

Exact value (const): "MPC832xRDB"

Item 3

Exact value (const): "MPC83xxRDB"

Rule 4

MPC8349E-mITX(-GP) Reference Design Platform

Array item rules (items)

Item 1

Allowed values (enum): "MPC8349EMITX", "MPC8349EMITXGP"

Item 2

Exact value (const): "MPC834xMITX"

Item 3

Exact value (const): "MPC83xxMITX"

Rule 5

Keymile KMETER1 board

Exact value (const): "keymile,KMETER1"

Rule 6

MPC8308 P1M board

Exact value (const): "denx,mpc8308_p1m"

Properties matching a name pattern (patternProperties) #

^soc@.*$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

compatible — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8315-immr", "fsl,mpc8308-immr"

Item 2

Exact value (const): "simple-bus"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "fsl,mpc8360-immr"

Item 2

Exact value (const): "fsl,immr"

Item 3

Exact value (const): "fsl,soc"

Item 4

Exact value (const): "simple-bus"

Rule 3

Exact value (const): "simple-bus"

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

true

Allowed by this rule.

Examples (examples) #

/ {
    compatible = "fsl,mpc8315erdb";
    model = "MPC8315E-RDB";
    #address-cells = <1>;
    #size-cells = <1>;

    soc@e0000000 {
        compatible = "fsl,mpc8315-immr", "simple-bus";
        reg = <0xe0000000 0x00000200>;
        #address-cells = <1>;
        #size-cells = <1>;
        device_type = "soc";
        ranges = <0 0xe0000000 0x00100000>;
        bus-frequency = <0>;
    };
};

Source notes #

Annotations retained from the schema source

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

Power Management Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Powerpc bindings / fsl

Schema identifier ($id): "http://devicetree.org/schemas/powerpc/fsl/pmc.yaml#"

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

Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"

The Power Management Controller in several MPC8xxx SoCs helps save power by controlling chip-wide low-power states as well as peripheral clock gating.

Sleep of peripheral devices is configured by the `sleep` property, for example `sleep = <&pmc 0x00000030>`. Any cells after the &pmc phandle are called a sleep specifier.

For "fsl,mpc8349-pmc", sleep specifiers consist of one cell. For each bit that is set in the cell, the corresponding bit in SCCR will be saved and cleared on suspend, and restored on resume. This sleep controller supports disabling and resuming devices at any time.

For "fsl,mpc8536-pmc", sleep specifiers consist of three cells, the third of which will be ORed into PMCDR upon suspend, and cleared from PMCDR upon resume. The first two cells are as described for fsl,mpc8548-pmc. This sleep controller only supports disabling devices during system sleep, or permanently.

For "fsl,mpc8548-pmc" or "fsl,mpc8641d-pmc", Sleep specifiers consist of one or two cells, the first of which will be ORed into DEVDISR (and the second into DEVDISR2, if present -- this cell should be zero or absent if the hardware does not have DEVDISR2) upon a request for permanent device disabling. This sleep controller does not support configuring devices to disable during system sleep (unless supported by another compatible match), or dynamically.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "fsl,mpc8315-pmc"

Item 2

Exact value (const): "fsl,mpc8313-pmc"

Item 3

Exact value (const): "fsl,mpc8349-pmc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8313-pmc", "fsl,mpc8323-pmc", "fsl,mpc8360-pmc", "fsl,mpc8377-pmc", "fsl,mpc8378-pmc", "fsl,mpc8379-pmc"

Item 2

Exact value (const): "fsl,mpc8349-pmc"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "fsl,p1022-pmc"

Item 2

Exact value (const): "fsl,mpc8536-pmc"

Item 3

Exact value (const): "fsl,mpc8548-pmc"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "fsl,mpc8536-pmc", "fsl,mpc8568-pmc", "fsl,mpc8569-pmc"

Item 2

Exact value (const): "fsl,mpc8548-pmc"

Rule 5

Allowed values (enum): "fsl,mpc8548-pmc", "fsl,mpc8641d-pmc"

"fsl,mpc8349-pmc" should be listed for any chip whose PMC is compatible. "fsl,mpc8313-pmc" should also be listed for any chip whose PMC is compatible, and implies deep-sleep capability.

"fsl,mpc8548-pmc" should be listed for any chip whose PMC is compatible. "fsl,mpc8536-pmc" should also be listed for any chip whose PMC is compatible, and implies deep-sleep capability.

"fsl,mpc8641d-pmc" should be listed for any chip whose PMC is compatible; all statements below that apply to "fsl,mpc8548-pmc" also apply to "fsl,mpc8641d-pmc".

Compatibility does not include bit assignments in SCCR/PMCDR/DEVDISR; these bit assignments are indicated via the sleep specifier in each device's sleep property.

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

fsl,mpc8313-wakeup-timer — not listed as required here #

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

For "fsl,mpc8313-pmc"-compatible devices, this is a phandle to an "fsl,gtm" node on which timer 4 can be used as a wakeup source from deep sleep.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "fsl,mpc8349-pmc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

PMC block

Item 2

Clock Configuration block

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,mpc8548-pmc", "fsl,mpc8641d-pmc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

32-byte block beginning with DEVDISR

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

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

false

Not allowed by this rule.

Examples (examples) #

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

pmc: power@b00 {
    compatible = "fsl,mpc8377-pmc", "fsl,mpc8349-pmc";
    reg = <0xb00 0x100>, <0xa00 0x100>;
    interrupts = <80 IRQ_TYPE_LEVEL_LOW>;
};
power@e0070 {
    compatible = "fsl,mpc8548-pmc";
    reg = <0xe0070 0x20>;
};

Source notes #

Annotations retained from the schema source

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

PowerPC sleep property

Peios Kernel / Hardware and drivers / Device-tree binding reference / Powerpc bindings

Schema identifier ($id): "http://devicetree.org/schemas/powerpc/sleep.yaml#"

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

Maintainers (maintainers): "Rob Herring <robh@kernel.org>"

Devices on SOCs often have mechanisms for placing devices into low-power states that are decoupled from the devices' own register blocks. Sometimes, this information is more complicated than a cell-index property can reasonably describe. Thus, each device controlled in such a manner may contain a "sleep" property which describes these connections.

The sleep property consists of one or more sleep resources, each of which consists of a phandle to a sleep controller, followed by a controller-specific sleep specifier of zero or more cells.

The semantics of what type of low power modes are possible are defined by the sleep controller. Some examples of the types of low power modes that may be supported are:

 - Dynamic: The device may be disabled or enabled at any time.
 - System Suspend: The device may request to be disabled or remain
   awake during system suspend, but will not be disabled until then.
 - Permanent: The device is disabled permanently (until the next hard
   reset).

Some devices may share a clock domain with each other, such that they should only be suspended when none of the devices are in use. Where reasonable, such nodes should be placed on a virtual bus, where the bus has the sleep property. If the clock domain is shared among devices that cannot be reasonably grouped in this manner, then create a virtual sleep controller (similar to an interrupt nexus, except that defining a standardized sleep-map should wait until its necessity is demonstrated).

Automatic schema selection (select) #

true

This selection rule always matches.

Properties and child nodes (properties) #

sleep — not listed as required here #

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

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

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Peios Learn — documentation for Peios software.

Built with Trail.