Samsung Exynos990 SoC clock controller

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

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

Maintainers (maintainers): "Igor Belwon <igor.belwon@mentallysanemainliners.org>", "Chanwoo Choi <cw00.choi@samsung.com>", "Krzysztof Kozlowski <krzk@kernel.org>"

Exynos990 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. The root clock in that root tree is an external clock: OSCCLK (26 MHz). This external clock must be defined as a 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,exynos990.h' header.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,exynos990-cmu-peric1", "samsung,exynos990-cmu-peric0", "samsung,exynos990-cmu-hsi0", "samsung,exynos990-cmu-peris", "samsung,exynos990-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

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

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)

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

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

Connectivity Peripheral 0/1 bus clock (from CMU_TOP)

Item 3

Connectivity Peripheral 0/1 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): "bus"

Item 3

Exact value (const): "ip"

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

Item 2

CMU_HSI0 BUS clock (from CMU_TOP)

Item 3

CMU_HSI0 USB31DRD clock (from CMU_TOP)

Item 4

CMU_HSI0 USBDP_DEBUG clock (from CMU_TOP)

Item 5

CMU_HSI0 DPGTC 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): "bus"

Item 3

Exact value (const): "usb31drd"

Item 4

Exact value (const): "usbdp_debug"

Item 5

Exact value (const): "dpgtc"

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,exynos990-cmu-peris"

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

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,exynos990-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"

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

false

Not allowed by this rule.

Examples (examples) #

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

cmu_hsi0: clock-controller@10a00000 {
    compatible = "samsung,exynos990-cmu-hsi0";
    reg = <0x10a00000 0x8000>;
    #clock-cells = <1>;

    clocks = <&oscclk>,
             <&cmu_top CLK_DOUT_CMU_HSI0_BUS>,
             <&cmu_top CLK_DOUT_CMU_HSI0_USB31DRD>,
             <&cmu_top CLK_DOUT_CMU_HSI0_USBDP_DEBUG>,
             <&cmu_top CLK_DOUT_CMU_HSI0_DPGTC>;
    clock-names = "oscclk",
                  "bus",
                  "usb31drd",
                  "usbdp_debug",
                  "dpgtc";
};

Source notes #

Annotations retained from the schema source

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

Edit this page