Samsung ExynosAuto v920 SoC clock controller

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

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

Maintainers (maintainers): "Sunyeal Hong <sunyeal.hong@samsung.com>", "Shin Son <shin.son@samsung.com>", "Chanwoo Choi <cw00.choi@samsung.com>", "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>"

ExynosAuto v920 clock controller is comprised of several CMU units, generating clocks for different domains. Those CMU units are modeled as separate device tree nodes, and might depend on each other. Root clocks in that clock tree are two external clocks:: OSCCLK/XTCXO (38.4 MHz) and RTCCLK/XrtcXTI (32768 Hz). The external OSCCLK must be defined as fixed-rate clock in dts.

CMU_TOP is a top-level CMU, where all base clocks are prepared using PLLs and dividers; all other clocks of function blocks (other CMUs) are usually derived from CMU_TOP.

Each clock is assigned an identifier and client nodes can use this identifier to specify the clock which they consume. All clocks available for usage in clock consumer nodes are defined as preprocessor macros in 'include/dt-bindings/clock/samsung,exynosautov920.h' header.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,exynosautov920-cmu-cpucl0", "samsung,exynosautov920-cmu-cpucl1", "samsung,exynosautov920-cmu-cpucl2", "samsung,exynosautov920-cmu-hsi0", "samsung,exynosautov920-cmu-hsi1", "samsung,exynosautov920-cmu-hsi2", "samsung,exynosautov920-cmu-m2m", "samsung,exynosautov920-cmu-mfc", "samsung,exynosautov920-cmu-mfd", "samsung,exynosautov920-cmu-misc", "samsung,exynosautov920-cmu-peric0", "samsung,exynosautov920-cmu-peric1", "samsung,exynosautov920-cmu-top"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

#clock-cells — required here #

Exact value (const): 1

reg — required here #

Maximum number of items (maxItems): 1

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): "samsung,exynosautov920-cmu-top"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "samsung,exynosautov920-cmu-cpucl0"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

Item 2

CMU_CPUCL0 SWITCH clock (from CMU_TOP)

Item 3

CMU_CPUCL0 CLUSTER clock (from CMU_TOP)

Item 4

CMU_CPUCL0 DBG clock (from CMU_TOP)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "switch"

Item 3

Exact value (const): "cluster"

Item 4

Exact value (const): "dbg"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "samsung,exynosautov920-cmu-cpucl1"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

Item 2

CMU_CPUCL1 SWITCH clock (from CMU_TOP)

Item 3

CMU_CPUCL1 CLUSTER clock (from CMU_TOP)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "switch"

Item 3

Exact value (const): "cluster"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "samsung,exynosautov920-cmu-cpucl2"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

Item 2

CMU_CPUCL2 SWITCH clock (from CMU_TOP)

Item 3

CMU_CPUCL2 CLUSTER clock (from CMU_TOP)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "switch"

Item 3

Exact value (const): "cluster"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "samsung,exynosautov920-cmu-peric0", "samsung,exynosautov920-cmu-peric1"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

Item 2

CMU_PERICn NOC clock (from CMU_TOP)

Item 3

CMU_PERICn IP clock (from CMU_TOP)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "noc"

Item 3

Exact value (const): "ip"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "samsung,exynosautov920-cmu-misc", "samsung,exynosautov920-cmu-hsi0"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

Item 2

CMU_MISC/CMU_HSI0 NOC clock (from CMU_TOP)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "noc"

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynosautov920-cmu-hsi1"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

Item 2

CMU_HSI1 NOC clock (from CMU_TOP)

Item 3

CMU_HSI1 USBDRD clock (from CMU_TOP)

Item 4

CMU_HSI1 MMC_CARD clock (from CMU_TOP)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "noc"

Item 3

Exact value (const): "usbdrd"

Item 4

Exact value (const): "mmc_card"

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynosautov920-cmu-hsi2"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

Item 2

CMU_HSI2 NOC clock (from CMU_TOP)

Item 3

CMU_HSI2 NOC UFS clock (from CMU_TOP)

Item 4

CMU_HSI2 UFS EMBD clock (from CMU_TOP)

Item 5

CMU_HSI2 ETHERNET clock (from CMU_TOP)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "noc"

Item 3

Exact value (const): "ufs"

Item 4

Exact value (const): "embd"

Item 5

Exact value (const): "ethernet"

Rule 9 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynosautov920-cmu-m2m"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

Item 2

CMU_M2M NOC clock (from CMU_TOP)

Item 3

CMU_M2M JPEG clock (from CMU_TOP)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "noc"

Item 3

Exact value (const): "jpeg"

Rule 10 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynosautov920-cmu-mfc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

Item 2

CMU_MFC MFC clock (from CMU_TOP)

Item 3

CMU_MFC WFD clock (from CMU_TOP)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "mfc"

Item 3

Exact value (const): "wfd"

Rule 11 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynosautov920-cmu-mfd"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

External reference clock (38.4 MHz)

Item 2

CMU_MFD NOC clock (from CMU_TOP)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "noc"

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/samsung,exynosautov920.h>

cmu_peric0: clock-controller@10800000 {
    compatible = "samsung,exynosautov920-cmu-peric0";
    reg = <0x10800000 0x8000>;
    #clock-cells = <1>;

    clocks = <&xtcxo>,
             <&cmu_top DOUT_CLKCMU_PERIC0_NOC>,
             <&cmu_top DOUT_CLKCMU_PERIC0_IP>;
    clock-names = "oscclk",
                  "noc",
                  "ip";
};

Source notes #

Annotations retained from the schema source

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

Line 300: Clock controller node for CMU_PERIC0

Edit this page