NXP i.MX8M Family Clock Control Module

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

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

Maintainers (maintainers): "Abel Vesa <abelvesa@kernel.org>", "Peng Fan <peng.fan@nxp.com>"

NXP i.MX8M Mini/Nano/Plus/Quad clock control module is an integrated clock controller, which generates and supplies to all modules.

Properties and child nodes (properties) #

compatible — required here #

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

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 2

clocks — required here #

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 7

clock-names — required here #

Minimum number of items (minItems): 6

Maximum number of items (maxItems): 7

#clock-cells — required here #

Exact value (const): 1

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

fsl,operating-mode — not listed as required here #

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

Allowed values (enum): "nominal", "overdrive"

The operating mode of the SoC. This affects the maximum clock rates that can safely be configured by the clock controller.

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

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,imx8mq-ccm"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

32k osc

Item 2

25m osc

Item 3

27m osc

Item 4

ext1 clock input

Item 5

ext2 clock input

Item 6

ext3 clock input

Item 7

ext4 clock input

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "ckil"

Item 2

Exact value (const): "osc_25m"

Item 3

Exact value (const): "osc_27m"

Item 4

Exact value (const): "clk_ext1"

Item 5

Exact value (const): "clk_ext2"

Item 6

Exact value (const): "clk_ext3"

Item 7

Exact value (const): "clk_ext4"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

32k osc

Item 2

24m osc

Item 3

ext1 clock input

Item 4

ext2 clock input

Item 5

ext3 clock input

Item 6

ext4 clock input

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "osc_32k"

Item 2

Exact value (const): "osc_24m"

Item 3

Exact value (const): "clk_ext1"

Item 4

Exact value (const): "clk_ext2"

Item 5

Exact value (const): "clk_ext3"

Item 6

Exact value (const): "clk_ext4"

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

false

Not allowed by this rule.

Examples (examples) #

clock-controller@30380000 {
    compatible = "fsl,imx8mm-ccm";
    reg = <0x30380000 0x10000>;
    #clock-cells = <1>;
    clocks = <&osc_32k>, <&osc_24m>, <&clk_ext1>, <&clk_ext2>,
             <&clk_ext3>, <&clk_ext4>;
    clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2",
                  "clk_ext3", "clk_ext4";
    fsl,operating-mode = "nominal";
};
clock-controller@30380000 {
    compatible = "fsl,imx8mq-ccm";
    reg = <0x30380000 0x10000>;
    #clock-cells = <1>;
    clocks = <&ckil>, <&osc_25m>, <&osc_27m>, <&clk_ext1>,
             <&clk_ext2>, <&clk_ext3>, <&clk_ext4>;
    clock-names = "ckil", "osc_25m", "osc_27m", "clk_ext1",
                  "clk_ext2", "clk_ext3", "clk_ext4";
};

Source notes #

Annotations retained from the schema source

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

Line 109: Clock Control Module node:

Edit this page