Freescale i.MX7ULP System Clock Generation (SCG) modules Clock Controller

Schema identifier ($id): "http://devicetree.org/schemas/clock/imx7ulp-scg-clock.yaml#"

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

Maintainers (maintainers): "A.s. Dong <aisheng.dong@nxp.com>"

i.MX7ULP Clock functions are under joint control of the System Clock Generation (SCG) modules, Peripheral Clock Control (PCC) modules, and Core Mode Controller (CMC)1 blocks

The clocking scheme provides clear separation between M4 domain and A7 domain. Except for a few clock sources shared between two domains, such as the System Oscillator clock, the Slow IRC (SIRC), and and the Fast IRC clock (FIRCLK), clock sources and clock management are separated and contained within each domain.

M4 clock management consists of SCG0, PCC0, PCC1, and CMC0 modules. A7 clock management consists of SCG1, PCC2, PCC3, and CMC1 modules.

Note: this binding doc is only for A7 clock domain.

The System Clock Generation (SCG) is responsible for clock generation and distribution across this device. Functions performed by the SCG include: clock reference selection, generation of clock used to derive processor, system, peripheral bus and external memory interface clocks, source selection for peripheral clocks and control of power saving clock gating mode.

The clock consumer should specify the desired clock by having the clock ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx7ulp-clock.h for the full list of i.MX7ULP clock IDs of each module.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,imx7ulp-scg1"

reg — required here #

Maximum number of items (maxItems): 1

#clock-cells — required here #

Exact value (const): 1

clocks — required here #

Array item rules (items) #

Item 1

rtc osc

Item 2

system osc

Item 3

slow internal reference clock

Item 4

fast internal reference clock

Item 5

usb PLL

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rosc"

Item 2

Exact value (const): "sosc"

Item 3

Exact value (const): "sirc"

Item 4

Exact value (const): "firc"

Item 5

Exact value (const): "upll"

Required in this object (required): "compatible", "reg", "#clock-cells", "clocks", "clock-names"

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

false

Not allowed by this rule.

Examples (examples) #

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

clock-controller@403e0000 {
    compatible = "fsl,imx7ulp-scg1";
    reg = <0x403e0000 0x10000>;
    clocks = <&rosc>, <&sosc>, <&sirc>,
             <&firc>, <&upll>;
    clock-names = "rosc", "sosc", "sirc",
                  "firc", "upll";
    #clock-cells = <1>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page