Samsung Exynos850 SoC clock controller

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

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

Maintainers (maintainers): "Sam Protsenko <semen.protsenko@linaro.org>", "Chanwoo Choi <cw00.choi@samsung.com>", "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>", "Tomasz Figa <tomasz.figa@gmail.com>"

Exynos850 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 (26 MHz) and RTCCLK (32768 Hz). Those external clocks must be defined as fixed-rate clocks in dts.

CMU_TOP is a top-level CMU, where all base clocks are prepared using PLLs and dividers; all other leaf clocks (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 'dt-bindings/clock/exynos850.h' header.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,exynos850-cmu-top", "samsung,exynos850-cmu-apm", "samsung,exynos850-cmu-aud", "samsung,exynos850-cmu-cmgp", "samsung,exynos850-cmu-core", "samsung,exynos850-cmu-cpucl0", "samsung,exynos850-cmu-cpucl1", "samsung,exynos850-cmu-dpu", "samsung,exynos850-cmu-g3d", "samsung,exynos850-cmu-hsi", "samsung,exynos850-cmu-is", "samsung,exynos850-cmu-mfcmscl", "samsung,exynos850-cmu-peri"

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,exynos850-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 (26 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)

Exact value (const): "samsung,exynos850-cmu-apm"

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 (26 MHz)

Item 2

CMU_APM bus 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): "dout_clkcmu_apm_bus"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos850-cmu-aud"

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 (26 MHz)

Item 2

AUD 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): "dout_aud"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos850-cmu-cmgp"

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 (26 MHz)

Item 2

CMU_CMGP bus clock (from CMU_APM)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "oscclk"

Item 2

Exact value (const): "gout_clkcmu_cmgp_bus"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos850-cmu-core"

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 (26 MHz)

Item 2

CMU_CORE bus clock (from CMU_TOP)

Item 3

CCI clock (from CMU_TOP)

Item 4

eMMC clock (from CMU_TOP)

Item 5

SSS 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): "dout_core_bus"

Item 3

Exact value (const): "dout_core_cci"

Item 4

Exact value (const): "dout_core_mmc_embd"

Item 5

Exact value (const): "dout_core_sss"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos850-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 (26 MHz)

Item 2

CPUCL0 switch clock (from CMU_TOP)

Item 3

CPUCL0 debug 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): "dout_cpucl0_switch"

Item 3

Exact value (const): "dout_cpucl0_dbg"

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,exynos850-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 (26 MHz)

Item 2

CPUCL1 switch clock (from CMU_TOP)

Item 3

CPUCL1 debug 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): "dout_cpucl1_switch"

Item 3

Exact value (const): "dout_cpucl1_dbg"

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,exynos850-cmu-dpu"

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 (26 MHz)

Item 2

DPU 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): "dout_dpu"

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,exynos850-cmu-g3d"

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 (26 MHz)

Item 2

G3D 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): "dout_g3d_switch"

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,exynos850-cmu-hsi"

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 (26 MHz)

Item 2

External RTC clock (32768 Hz)

Item 3

CMU_HSI bus clock (from CMU_TOP)

Item 4

SD card clock (from CMU_TOP)

Item 5

USB 2.0 DRD 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): "rtcclk"

Item 3

Exact value (const): "dout_hsi_bus"

Item 4

Exact value (const): "dout_hsi_mmc_card"

Item 5

Exact value (const): "dout_hsi_usb20drd"

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,exynos850-cmu-is"

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 (26 MHz)

Item 2

CMU_IS bus clock (from CMU_TOP)

Item 3

Image Texture Processing core clock (from CMU_TOP)

Item 4

Visual Recognition Accelerator clock (from CMU_TOP)

Item 5

Geometric Distortion Correction 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): "dout_is_bus"

Item 3

Exact value (const): "dout_is_itp"

Item 4

Exact value (const): "dout_is_vra"

Item 5

Exact value (const): "dout_is_gdc"

Rule 12 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos850-cmu-mfcmscl"

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 (26 MHz)

Item 2

Multi-Format Codec clock (from CMU_TOP)

Item 3

Memory to Memory Scaler clock (from CMU_TOP)

Item 4

Multi-Channel Scaler clock (from CMU_TOP)

Item 5

JPEG codec 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): "dout_mfcmscl_mfc"

Item 3

Exact value (const): "dout_mfcmscl_m2m"

Item 4

Exact value (const): "dout_mfcmscl_mcsc"

Item 5

Exact value (const): "dout_mfcmscl_jpeg"

Rule 13 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos850-cmu-peri"

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 (26 MHz)

Item 2

CMU_PERI bus clock (from CMU_TOP)

Item 3

UART clock (from CMU_TOP)

Item 4

Parent clock for HSI2C and SPI (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): "dout_peri_bus"

Item 3

Exact value (const): "dout_peri_uart"

Item 4

Exact value (const): "dout_peri_ip"

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/exynos850.h>

cmu_peri: clock-controller@10030000 {
    compatible = "samsung,exynos850-cmu-peri";
    reg = <0x10030000 0x8000>;
    #clock-cells = <1>;

    clocks = <&oscclk>, <&cmu_top CLK_DOUT_PERI_BUS>,
             <&cmu_top CLK_DOUT_PERI_UART>,
             <&cmu_top CLK_DOUT_PERI_IP>;
    clock-names = "oscclk", "dout_peri_bus",
                  "dout_peri_uart", "dout_peri_ip";
};

Source notes #

Annotations retained from the schema source

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

Line 337: Clock controller node for CMU_PERI

Edit this page