Samsung Exynos7870 SoC clock controller
Schema identifier ($id): "http://devicetree.org/schemas/clock/samsung,exynos7870-cmu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kaustabh Chakraborty <kauschluss@disroot.org>"
Exynos7870 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.
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,exynos7870-cmu.h header.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,exynos7870-cmu-mif", "samsung,exynos7870-cmu-dispaud", "samsung,exynos7870-cmu-fsys", "samsung,exynos7870-cmu-g3d", "samsung,exynos7870-cmu-isp", "samsung,exynos7870-cmu-mfcmscl", "samsung,exynos7870-cmu-peri"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 10
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 10
#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 hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7870-cmu-mif"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,exynos7870-cmu-dispaud"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_DISPAUD bus clock (from CMU_MIF)
Item 3
DECON external clock (from CMU_MIF)
Item 4
DECON vertical clock (from CMU_MIF)
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):"decon_eclk"Item 4
Exact value (
const):"decon_vclk"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7870-cmu-fsys"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_FSYS bus clock (from CMU_MIF)
Item 3
USB20DRD clock (from CMU_MIF)
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):"usb20drd"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7870-cmu-g3d"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
G3D switch clock (from CMU_MIF)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"switch"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7870-cmu-isp"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
ISP camera clock (from CMU_MIF)
Item 3
ISP clock (from CMU_MIF)
Item 4
ISP VRA clock (from CMU_MIF)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"cam"Item 3
Exact value (
const):"isp"Item 4
Exact value (
const):"vra"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7870-cmu-mfcmscl"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
MSCL clock (from CMU_MIF)
Item 3
MFC clock (from CMU_MIF)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"oscclk"Item 2
Exact value (
const):"mfc"Item 3
Exact value (
const):"mscl"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7870-cmu-peri"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_PERI bus clock (from CMU_MIF)
Item 3
SPI0 clock (from CMU_MIF)
Item 4
SPI1 clock (from CMU_MIF)
Item 5
SPI2 clock (from CMU_MIF)
Item 6
SPI3 clock (from CMU_MIF)
Item 7
SPI4 clock (from CMU_MIF)
Item 8
UART0 clock (from CMU_MIF)
Item 9
UART1 clock (from CMU_MIF)
Item 10
UART2 clock (from CMU_MIF)
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):"spi0"Item 4
Exact value (
const):"spi1"Item 5
Exact value (
const):"spi2"Item 6
Exact value (
const):"spi3"Item 7
Exact value (
const):"spi4"Item 8
Exact value (
const):"uart0"Item 9
Exact value (
const):"uart1"Item 10
Exact value (
const):"uart2"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/samsung,exynos7870-cmu.h>
cmu_peri: clock-controller@101f0000 {
compatible = "samsung,exynos7870-cmu-peri";
reg = <0x101f0000 0x1000>;
#clock-cells = <1>;
clock-names = "oscclk", "bus", "spi0", "spi1", "spi2",
"spi3", "spi4", "uart0", "uart1", "uart2";
clocks = <&oscclk>,
<&cmu_mif CLK_GOUT_MIF_CMU_PERI_BUS>,
<&cmu_mif CLK_GOUT_MIF_CMU_PERI_SPI0>,
<&cmu_mif CLK_GOUT_MIF_CMU_PERI_SPI1>,
<&cmu_mif CLK_GOUT_MIF_CMU_PERI_SPI2>,
<&cmu_mif CLK_GOUT_MIF_CMU_PERI_SPI3>,
<&cmu_mif CLK_GOUT_MIF_CMU_PERI_SPI4>,
<&cmu_mif CLK_GOUT_MIF_CMU_PERI_UART0>,
<&cmu_mif CLK_GOUT_MIF_CMU_PERI_UART1>,
<&cmu_mif CLK_GOUT_MIF_CMU_PERI_UART2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)