Samsung Exynos Auto v9 SoC clock controller
Schema identifier ($id): "http://devicetree.org/schemas/clock/samsung,exynosautov9-clock.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chanho Park <chanho61.park@samsung.com>", "Chanwoo Choi <cw00.choi@samsung.com>", "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>", "Tomasz Figa <tomasz.figa@gmail.com>"
Exynos Auto v9 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 (26 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,exynosautov9.h' header.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,exynosautov9-cmu-top", "samsung,exynosautov9-cmu-busmc", "samsung,exynosautov9-cmu-core", "samsung,exynosautov9-cmu-dpum", "samsung,exynosautov9-cmu-fsys0", "samsung,exynosautov9-cmu-fsys1", "samsung,exynosautov9-cmu-fsys2", "samsung,exynosautov9-cmu-peric0", "samsung,exynosautov9-cmu-peric1", "samsung,exynosautov9-cmu-peris"
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 hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov9-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"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov9-cmu-busmc"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_BUSMC 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):"dout_clkcmu_busmc_bus"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov9-cmu-core"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_CORE 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):"dout_clkcmu_core_bus"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov9-cmu-dpum"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
DPU Main 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 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov9-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 pcie 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):"dout_clkcmu_fsys0_bus"Item 3
Exact value (
const):"dout_clkcmu_fsys0_pcie"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov9-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 mmc card clock (from CMU_TOP)
Item 4
CMU_FSYS1 usb 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):"dout_clkcmu_fsys1_bus"Item 3
Exact value (
const):"gout_clkcmu_fsys1_mmc_card"Item 4
Exact value (
const):"dout_clkcmu_fsys1_usbdrd"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov9-cmu-fsys2"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_FSYS2 bus clock (from CMU_TOP)
Item 3
UFS clock (from CMU_TOP)
Item 4
Ethernet 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):"dout_clkcmu_fsys2_bus"Item 3
Exact value (
const):"dout_fsys2_clkcmu_ufs_embd"Item 4
Exact value (
const):"dout_fsys2_clkcmu_ethernet"
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov9-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
PERIC0 IP 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):"dout_clkcmu_peric0_bus"Item 3
Exact value (
const):"dout_clkcmu_peric0_ip"
Rule 9 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov9-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
PERIC1 IP 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):"dout_clkcmu_peric1_bus"Item 3
Exact value (
const):"dout_clkcmu_peric1_ip"
Rule 10 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynosautov9-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):"dout_clkcmu_peris_bus"
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,exynosautov9.h>
cmu_fsys2: clock-controller@17c00000 {
compatible = "samsung,exynosautov9-cmu-fsys2";
reg = <0x17c00000 0x8000>;
#clock-cells = <1>;
clocks = <&xtcxo>,
<&cmu_top DOUT_CLKCMU_FSYS2_BUS>,
<&cmu_top DOUT_CLKCMU_FSYS2_UFS_EMBD>,
<&cmu_top DOUT_CLKCMU_FSYS2_ETHERNET>;
clock-names = "oscclk",
"dout_clkcmu_fsys2_bus",
"dout_fsys2_clkcmu_ufs_embd",
"dout_fsys2_clkcmu_ethernet";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 263: Clock controller node for CMU_FSYS2