Samsung Exynos8895 SoC clock controller
Schema identifier ($id): "http://devicetree.org/schemas/clock/samsung,exynos8895-clock.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>", "Chanwoo Choi <cw00.choi@samsung.com>", "Krzysztof Kozlowski <krzk@kernel.org>"
Exynos8895 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,exynos8895.h' header.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,exynos8895-cmu-fsys0", "samsung,exynos8895-cmu-fsys1", "samsung,exynos8895-cmu-peric0", "samsung,exynos8895-cmu-peric1", "samsung,exynos8895-cmu-peris", "samsung,exynos8895-cmu-top"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
#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", "reg", "#clock-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos8895-cmu-fsys0"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (26 MHz)
Item 2
CMU_FSYS0 BUS clock (from CMU_TOP)
Item 3
CMU_FSYS0 DPGTC clock (from CMU_TOP)
Item 4
CMU_FSYS0 MMC_EMBD clock (from CMU_TOP)
Item 5
CMU_FSYS0 UFS_EMBD clock (from CMU_TOP)
Item 6
CMU_FSYS0 USBDRD30 clock (from CMU_TOP)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"bus"Item 3
Exact value (
const):"dpgtc"Item 4
Exact value (
const):"mmc"Item 5
Exact value (
const):"ufs"Item 6
Exact value (
const):"usbdrd30"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos8895-cmu-fsys1"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (26 MHz)
Item 2
CMU_FSYS1 BUS clock (from CMU_TOP)
Item 3
CMU_FSYS1 PCIE clock (from CMU_TOP)
Item 4
CMU_FSYS1 UFS_CARD clock (from CMU_TOP)
Item 5
CMU_FSYS1 MMC_CARD clock (from CMU_TOP)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"bus"Item 3
Exact value (
const):"pcie"Item 4
Exact value (
const):"ufs"Item 5
Exact value (
const):"mmc"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos8895-cmu-peric0"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (26 MHz)
Item 2
CMU_PERIC0 BUS clock (from CMU_TOP)
Item 3
CMU_PERIC0 UART_DBG clock (from CMU_TOP)
Item 4
CMU_PERIC0 USI00 clock (from CMU_TOP)
Item 5
CMU_PERIC0 USI01 clock (from CMU_TOP)
Item 6
CMU_PERIC0 USI02 clock (from CMU_TOP)
Item 7
CMU_PERIC0 USI03 clock (from CMU_TOP)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"bus"Item 3
Exact value (
const):"uart"Item 4
Exact value (
const):"usi0"Item 5
Exact value (
const):"usi1"Item 6
Exact value (
const):"usi2"Item 7
Exact value (
const):"usi3"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos8895-cmu-peric1"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (26 MHz)
Item 2
CMU_PERIC1 BUS clock (from CMU_TOP)
Item 3
CMU_PERIC1 SPEEDY2 clock (from CMU_TOP)
Item 4
CMU_PERIC1 SPI_CAM0 clock (from CMU_TOP)
Item 5
CMU_PERIC1 SPI_CAM1 clock (from CMU_TOP)
Item 6
CMU_PERIC1 UART_BT clock (from CMU_TOP)
Item 7
CMU_PERIC1 USI04 clock (from CMU_TOP)
Item 8
CMU_PERIC1 USI05 clock (from CMU_TOP)
Item 9
CMU_PERIC1 USI06 clock (from CMU_TOP)
Item 10
CMU_PERIC1 USI07 clock (from CMU_TOP)
Item 11
CMU_PERIC1 USI08 clock (from CMU_TOP)
Item 12
CMU_PERIC1 USI09 clock (from CMU_TOP)
Item 13
CMU_PERIC1 USI10 clock (from CMU_TOP)
Item 14
CMU_PERIC1 USI11 clock (from CMU_TOP)
Item 15
CMU_PERIC1 USI12 clock (from CMU_TOP)
Item 16
CMU_PERIC1 USI13 clock (from CMU_TOP)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"bus"Item 3
Exact value (
const):"speedy"Item 4
Exact value (
const):"cam0"Item 5
Exact value (
const):"cam1"Item 6
Exact value (
const):"uart"Item 7
Exact value (
const):"usi4"Item 8
Exact value (
const):"usi5"Item 9
Exact value (
const):"usi6"Item 10
Exact value (
const):"usi7"Item 11
Exact value (
const):"usi8"Item 12
Exact value (
const):"usi9"Item 13
Exact value (
const):"usi10"Item 14
Exact value (
const):"usi11"Item 15
Exact value (
const):"usi12"Item 16
Exact value (
const):"usi13"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos8895-cmu-peris"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray 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 hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"bus"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos8895-cmu-top"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (26 MHz)
clock-names— not listed as required hereArray 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,exynos8895.h>
cmu_fsys1: clock-controller@11400000 {
compatible = "samsung,exynos8895-cmu-fsys1";
reg = <0x11400000 0x8000>;
#clock-cells = <1>;
clocks = <&oscclk>,
<&cmu_top CLK_DOUT_CMU_FSYS1_BUS>,
<&cmu_top CLK_DOUT_CMU_FSYS1_PCIE>,
<&cmu_top CLK_DOUT_CMU_FSYS1_UFS_CARD>,
<&cmu_top CLK_DOUT_CMU_FSYS1_MMC_CARD>;
clock-names = "oscclk", "bus", "pcie", "ufs", "mmc";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)